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>icm-iis-parent-container</artifactId>
7
		<version>1.0.0-SNAPSHOT</version>
8
	</parent>
9
	<modelVersion>4.0.0</modelVersion>
10
	<artifactId>icm-iis-citationmatching</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>eu.dnetlib</groupId>
20
			<artifactId>icm-iis-core</artifactId>
21
			<version>1.0.0-SNAPSHOT</version>
22
		</dependency>
23
		<dependency>
24
			<groupId>eu.dnetlib</groupId>
25
			<artifactId>icm-iis-core</artifactId>
26
			<version>1.0.0-SNAPSHOT</version>
27
			<type>test-jar</type>
28
			<scope>test</scope>
29
		</dependency>
30
        <dependency>
31
            <groupId>eu.dnetlib</groupId>
32
            <artifactId>icm-iis-schemas</artifactId>
33
            <version>1.0.0-SNAPSHOT</version>
34
        </dependency>
35
		<!-- Needed by Avro { -->
36
		<dependency>
37
			<groupId>org.apache.avro</groupId>
38
			<artifactId>avro</artifactId>
39
			<version>${iis.avro.version}</version>
40
		</dependency>
41
		<dependency>
42
			<groupId>org.apache.avro</groupId>
43
			<artifactId>avro-mapred</artifactId>
44
			<version>${iis.avro.version}</version>
45
			<classifier>hadoop2</classifier>
46
		</dependency>
47
		<!-- It seems that this dependency is needed, if it is not here,
48
		running Oozie tests of Avro-based map-reduce ends up with
49
		"java.lang.NoClassDefFoundError" exception and statement that
50
		"Paranamer" class is missing.-->
51
		<dependency>
52
			<groupId>com.thoughtworks.paranamer</groupId>
53
			<artifactId>paranamer</artifactId>
54
			<version>2.5.2</version>
55
		</dependency>
56
		<!-- Needed by Avro } -->
57
		<!-- Needed by Oozie tests { -->
58
		<dependency>
59
			<groupId>org.apache.oozie</groupId>
60
			<artifactId>oozie-core</artifactId>
61
			<version>${iis.oozie.version}</version>
62
			<type>test-jar</type>
63
			<scope>test</scope>
64
		</dependency>
65
		<dependency>
66
			<groupId>org.apache.hadoop</groupId>
67
			<artifactId>hadoop-hdfs</artifactId>
68
			<version>${iis.hadoop.hdfs.version}</version>
69
			<type>test-jar</type>
70
			<scope>test</scope>
71
		</dependency>
72
		<dependency>
73
			<groupId>org.apache.hadoop</groupId>
74
			<artifactId>hadoop-test</artifactId>
75
			<version>${iis.hadoop.test.version}</version>
76
			<scope>test</scope>
77
		</dependency>
78
		<dependency>
79
			<groupId>org.apache.hadoop</groupId>
80
			<artifactId>hadoop-common</artifactId>
81
			<version>${iis.hadoop.common.version}</version>
82
			<type>test-jar</type>
83
			<scope>test</scope>
84
		</dependency>
85
        <!-- Needed by Oozie tests } -->
86
        <dependency>
87
            <groupId>pl.edu.icm.coansys</groupId>
88
            <artifactId>models</artifactId>
89
            <version>${iis.coansys.version}</version>
90
        </dependency>
91
        <dependency>
92
            <groupId>pl.edu.icm.coansys</groupId>
93
            <artifactId>citations-impl</artifactId>
94
            <version>${iis.coansys.version}</version>
95
            <exclusions>
96
                <exclusion>
97
                    <groupId>org.apache.avro</groupId>
98
                    <artifactId>avro-mapred</artifactId>
99
                </exclusion>
100
                <!-- excluding all hadoop libs which are 'provided' by environment -->
101
                <exclusion>
102
                    <groupId>org.apache.hadoop</groupId>
103
                    <artifactId>hadoop-client</artifactId>
104
                </exclusion>
105
                <exclusion>
106
                    <groupId>org.apache.hadoop</groupId>
107
                    <artifactId>hadoop-core</artifactId>
108
                </exclusion>
109
            </exclusions>
110
        </dependency>
111
        <!-- proper version of hadoop client -->
112
        <dependency>
113
        	<groupId>org.apache.hadoop</groupId>
114
            <artifactId>hadoop-client</artifactId>
115
            <version>${iis.hadoop.mr1.version}</version>
116
            <scope>provided</scope>
117
        </dependency>
118
        <!-- proper version of hadoop common -->
119
        <dependency>
120
            <groupId>org.apache.hadoop</groupId>
121
            <artifactId>hadoop-core</artifactId>
122
            <version>${iis.hadoop.core.version}</version>
123
            <scope>provided</scope>
124
        </dependency>
125
        <!-- required after introducing 'provided' scope for hadoop libs -->
126
		<dependency>
127
			<groupId>org.apache.oozie</groupId>
128
			<artifactId>oozie-core</artifactId>
129
			<version>${iis.oozie.version}</version>
130
			<scope>provided</scope>
131
		</dependency>
132
		
133
        <!-- coansys containing citationmatching workflow -->
134
		 <dependency>
135
            <groupId>pl.edu.icm.coansys</groupId>
136
            <artifactId>citations-core-workflow</artifactId>
137
            <version>${iis.coansys.version}</version>
138
            <classifier>oozie-job</classifier>
139
            <type>tar.gz</type>
140
        </dependency>
141
	</dependencies>
142
	<build>
143
		<plugins>
144
			<!-- Plugin that generates Java classes from Avro schemas -->
145
			<plugin>
146
				<groupId>org.apache.avro</groupId>
147
				<artifactId>avro-maven-plugin</artifactId>
148
				<version>${iis.avro.version}</version>
149
				<executions>
150
					<execution>
151
						<phase>generate-sources</phase>
152
						<goals>
153
							<goal>schema</goal>
154
							<goal>idl-protocol</goal>
155
						</goals>
156
						<configuration>
157
							<sourceDirectory>${project.basedir}/src/main/resources/</sourceDirectory>
158
							<outputDirectory>${project.basedir}/target/generated-sources/java/</outputDirectory>
159
						</configuration>
160
					</execution>
161
				</executions>
162
			</plugin>
163
			<!-- This plugin makes the Maven->Update Project Configuration not forget
164
				about the "target/generated-sources/java" source path -->
165
			<plugin>
166
				<groupId>org.codehaus.mojo</groupId>
167
				<artifactId>build-helper-maven-plugin</artifactId>
168
				<executions>
169
					<execution>
170
						<id>add-source</id>
171
						<phase>generate-sources</phase>
172
						<goals>
173
							<goal>add-source</goal>
174
						</goals>
175
						<configuration>
176
							<sources>
177
								<source>${project.build.directory}/generated-sources/java/</source>
178
							</sources>
179
						</configuration>
180
					</execution>
181
				</executions>
182
			</plugin>
183
		</plugins>
184
		<pluginManagement>
185
			<plugins>
186
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
187
				<plugin>
188
					<groupId>org.eclipse.m2e</groupId>
189
					<artifactId>lifecycle-mapping</artifactId>
190
					<version>1.0.0</version>
191
					<configuration>
192
						<lifecycleMappingMetadata>
193
							<pluginExecutions>
194
								<pluginExecution>
195
									<pluginExecutionFilter>
196
										<groupId>
197
											org.codehaus.mojo
198
										</groupId>
199
										<artifactId>
200
											build-helper-maven-plugin
201
										</artifactId>
202
										<versionRange>
203
											[1.7,)
204
										</versionRange>
205
										<goals>
206
											<goal>add-source</goal>
207
										</goals>
208
									</pluginExecutionFilter>
209
									<action>
210
										<ignore></ignore>
211
									</action>
212
								</pluginExecution>
213
								<pluginExecution>
214
									<pluginExecutionFilter>
215
										<groupId>
216
											org.apache.avro
217
										</groupId>
218
										<artifactId>
219
											avro-maven-plugin
220
										</artifactId>
221
										<versionRange>
222
											[1.7.4,)
223
										</versionRange>
224
										<goals>
225
											<goal>idl-protocol</goal>
226
											<goal>schema</goal>
227
										</goals>
228
									</pluginExecutionFilter>
229
									<action>
230
										<ignore></ignore>
231
									</action>
232
								</pluginExecution>
233
							</pluginExecutions>
234
						</lifecycleMappingMetadata>
235
					</configuration>
236
				</plugin>
237
			</plugins>
238
		</pluginManagement>
239
	</build>
240
	<repositories>
241
        <!-- We get CoAnSys parts from there -->
242
        <repository>
243
            <id>yadda</id>
244
            <name>Yadda project repository</name>
245
            <url>http://maven.icm.edu.pl/artifactory/repo</url>
246
        </repository>
247
	</repositories>
248
</project>
(2-2/2)