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"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<parent>
5
    		<groupId>eu.dnetlib</groupId>
6
	        <artifactId>dnet-hadoop-parent</artifactId>
7
            <version>1.0.0-SNAPSHOT</version>
8
	</parent>
9
	<modelVersion>4.0.0</modelVersion>
10
	<artifactId>icm-iis-schemas</artifactId>
11
	<packaging>jar</packaging>
12
	<version>1.0.0-SNAPSHOT</version>
13

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