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