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