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
				<executions>
36
					<execution>
37
						<phase>generate-sources</phase>
38
						<goals>
39
							<goal>schema</goal>
40
							<goal>idl-protocol</goal>
41
						</goals>
42
						<configuration>
43
							<excludes>
44
                                <exclude>**/schemas/avro/**</exclude>
45
                                <exclude>**/schemas/protobuf/**</exclude>
46
                            </excludes>
47
							<sourceDirectory>${project.basedir}/src/main/resources/eu/dnetlib/iis/</sourceDirectory>
48
							<outputDirectory>${project.basedir}/target/generated-sources/java/</outputDirectory>
49
						</configuration>
50
					</execution>
51
				</executions>
52
			</plugin>
53
			<!-- This plugin makes the Maven->Update Project Configuration 
54
			not forget about the "target/generated-sources/java" source path-->
55
			<plugin>
56
			    <groupId>org.codehaus.mojo</groupId>
57
			    <artifactId>build-helper-maven-plugin</artifactId>
58
			    <executions>
59
			        <execution>
60
			            <id>add-source</id>
61
			            <phase>generate-sources</phase>
62
			            <goals>
63
			                <goal>add-source</goal>
64
			            </goals>
65
			            <configuration>
66
			                <sources>
67
			                    <source>${project.build.directory}/generated-sources/java/</source>
68
			                </sources>
69
			            </configuration>
70
			        </execution>
71
			    </executions>
72
			 </plugin>
73
		</plugins>
74
		<pluginManagement>
75
			<plugins>
76
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
77
				<plugin>
78
					<groupId>org.eclipse.m2e</groupId>
79
					<artifactId>lifecycle-mapping</artifactId>
80
					<version>1.0.0</version>
81
					<configuration>
82
						<lifecycleMappingMetadata>
83
							<pluginExecutions>
84
								<pluginExecution>
85
									<pluginExecutionFilter>
86
										<groupId>
87
											org.apache.avro
88
										</groupId>
89
										<artifactId>
90
											avro-maven-plugin
91
										</artifactId>
92
										<versionRange>
93
											[1.7.4,)
94
										</versionRange>
95
										<goals>
96
											<goal>idl-protocol</goal>
97
											<goal>schema</goal>
98
										</goals>
99
									</pluginExecutionFilter>
100
									<action>
101
										<ignore />
102
									</action>
103
								</pluginExecution>
104
								<pluginExecution>
105
									<pluginExecutionFilter>
106
										<groupId>
107
											org.codehaus.mojo
108
										</groupId>
109
										<artifactId>
110
											build-helper-maven-plugin
111
										</artifactId>
112
										<versionRange>
113
											[1.7,)
114
										</versionRange>
115
										<goals>
116
											<goal>add-source</goal>
117
										</goals>
118
									</pluginExecutionFilter>
119
									<action>
120
										<ignore />
121
									</action>
122
								</pluginExecution>
123
							</pluginExecutions>
124
						</lifecycleMappingMetadata>
125
					</configuration>
126
				</plugin>
127
			</plugins>
128
		</pluginManagement>
129
	</build>
130
	<repositories>
131
	</repositories>
132
</project>
(3-3/3)