Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
	<parent>
4
    		<groupId>eu.dnetlib</groupId>
5
	        <artifactId>dnet-hadoop-parent</artifactId>
6
            <version>1.0.1-CDH-5.3.0-SNAPSHOT</version>
7
	</parent>
8
	<modelVersion>4.0.0</modelVersion>
9
	<artifactId>icm-iis-schemas</artifactId>
10
	<packaging>jar</packaging>
11
	<version>1.0.1-CDH-5.3.0-SNAPSHOT</version>
12

    
13
	<scm>
14
	  <developerConnection>
15
	    scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/icm-iis-schemas/trunk
16
	  </developerConnection>
17
	</scm>
18
	
19
	<properties>
20
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21
	</properties>
22
	<dependencies>
23
		<dependency>
24
			<groupId>org.apache.avro</groupId>
25
			<artifactId>avro</artifactId>
26
			<version>${iis.avro.version}</version>
27
		</dependency>
28
	</dependencies>
29
	<build>
30
		<plugins>
31
			<!-- Plugin that generates Java classes from Avro schemas -->
32
			<plugin>
33
				<groupId>org.apache.avro</groupId>
34
				<artifactId>avro-maven-plugin</artifactId>
35
				<version>${iis.avro.version}</version>
36
				<executions>
37
					<execution>
38
						<phase>generate-sources</phase>
39
						<goals>
40
							<goal>schema</goal>
41
							<goal>idl-protocol</goal>
42
						</goals>
43
						<configuration>
44
							<excludes>
45
                                <exclude>**/schemas/avro/**</exclude>
46
                                <exclude>**/schemas/protobuf/**</exclude>
47
                            </excludes>
48
							<sourceDirectory>${project.basedir}/src/main/resources/eu/dnetlib/iis/</sourceDirectory>
49
							<outputDirectory>${project.basedir}/target/generated-sources/java/</outputDirectory>
50
						</configuration>
51
					</execution>
52
				</executions>
53
			</plugin>
54
			<!-- This plugin makes the Maven->Update Project Configuration 
55
			not forget about the "target/generated-sources/java" source path-->
56
			<plugin>
57
			    <groupId>org.codehaus.mojo</groupId>
58
			    <artifactId>build-helper-maven-plugin</artifactId>
59
			    <executions>
60
			        <execution>
61
			            <id>add-source</id>
62
			            <phase>generate-sources</phase>
63
			            <goals>
64
			                <goal>add-source</goal>
65
			            </goals>
66
			            <configuration>
67
			                <sources>
68
			                    <source>${project.build.directory}/generated-sources/java/</source>
69
			                </sources>
70
			            </configuration>
71
			        </execution>
72
			    </executions>
73
			 </plugin>
74
		</plugins>
75
		<pluginManagement>
76
			<plugins>
77
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
78
				<plugin>
79
					<groupId>org.eclipse.m2e</groupId>
80
					<artifactId>lifecycle-mapping</artifactId>
81
					<version>1.0.0</version>
82
					<configuration>
83
						<lifecycleMappingMetadata>
84
							<pluginExecutions>
85
								<pluginExecution>
86
									<pluginExecutionFilter>
87
										<groupId>
88
											org.apache.avro
89
										</groupId>
90
										<artifactId>
91
											avro-maven-plugin
92
										</artifactId>
93
										<versionRange>
94
											[1.7.4,)
95
										</versionRange>
96
										<goals>
97
											<goal>idl-protocol</goal>
98
											<goal>schema</goal>
99
										</goals>
100
									</pluginExecutionFilter>
101
									<action>
102
										<ignore />
103
									</action>
104
								</pluginExecution>
105
								<pluginExecution>
106
									<pluginExecutionFilter>
107
										<groupId>
108
											org.codehaus.mojo
109
										</groupId>
110
										<artifactId>
111
											build-helper-maven-plugin
112
										</artifactId>
113
										<versionRange>
114
											[1.7,)
115
										</versionRange>
116
										<goals>
117
											<goal>add-source</goal>
118
										</goals>
119
									</pluginExecutionFilter>
120
									<action>
121
										<ignore />
122
									</action>
123
								</pluginExecution>
124
							</pluginExecutions>
125
						</lifecycleMappingMetadata>
126
					</configuration>
127
				</plugin>
128
			</plugins>
129
		</pluginManagement>
130
	</build>
131
	<repositories>
132
	</repositories>
133
</project>
(3-3/3)