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