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-SNAPSHOT</version>
7
	</parent>
8
	
9
	<version>1.0.1-SNAPSHOT</version>
10
	<modelVersion>4.0.0</modelVersion>
11
	<artifactId>icm-iis-parent-container</artifactId>
12
	<packaging>pom</packaging>
13

    
14
	<scm>
15
	  <developerConnection>
16
	    scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/icm-iis-parent-container/trunk
17
	  </developerConnection>
18
	</scm>
19

    
20
	<properties>
21
		<maven.build.timestamp.format>yyyy-MM-dd_HH_mm</maven.build.timestamp.format>
22
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
        <oozie.data.dir>${project.build.directory}/test-data</oozie.data.dir>
24
        <!-- default Oozie installer properties requred to be defined at pom.xml level -->
25
        <!-- other project properties are defined in project-default.properties -->
26
        <oozie.package.file.name>oozie-package</oozie.package.file.name>
27
        <!-- notice: sandboxName is generated based on workflow.source.dir property -->
28
        <workflow.source.dir>src/test/resources/define/path/pointing/to/directory/holding/oozie_app</workflow.source.dir>
29
        <iis.hadoop.frontend.user.name>${user.name}</iis.hadoop.frontend.user.name>
30
        <iis.hadoop.frontend.home.dir>/mnt/tmp</iis.hadoop.frontend.home.dir>
31
        <iis.hadoop.master.host.name>localhost</iis.hadoop.master.host.name>
32
        <iis.hadoop.frontend.host.name>localhost</iis.hadoop.frontend.host.name>
33
        <oozieServiceLoc>http://${iis.hadoop.master.host.name}:11000/oozie</oozieServiceLoc>
34
        <oozieAppDir>oozie_app</oozieAppDir>
35
        <nameNode>hdfs://${iis.hadoop.master.host.name}:8020</nameNode>
36
        <jobTracker>${iis.hadoop.master.host.name}:8021</jobTracker>
37
        <queueName>default</queueName>
38
        <primed.dir>primed</primed.dir>
39
        <oozie.package.dependencies.scope>runtime</oozie.package.dependencies.scope>
40
        <oozie.execution.log.file.location>target/extract-and-run-on-remote-host.log</oozie.execution.log.file.location>
41
		<output.dir.name>${maven.build.timestamp}</output.dir.name>        
42
	</properties>
43

    
44
	<pluginRepositories>                                                                                                                                                                          
45
	    <pluginRepository>                                                                                                                                                                          
46
			<id>dnet4-bootstrap-release-plugin</id>                                                                                                                                                             
47
			<name>dnet4 bootstrap release plugin</name>                                                                                                                                                         
48
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-release</url>                                                                                             
49
			<layout>default</layout>
50
	    </pluginRepository>
51
	    <pluginRepository>
52
	      <id>org.tmatesoft</id>
53
	      <name>Subversion 1.8 Compatibility</name>
54
	      <url>http://maven.tmatesoft.com/content/repositories/releases/</url>
55
	      <layout>default</layout>
56
	    </pluginRepository>
57
	</pluginRepositories>
58

    
59
	<dependencies>
60
		<dependency>
61
			<groupId>eu.dnetlib</groupId>
62
			<artifactId>icm-iis-assembly-resources</artifactId>
63
			<version>[1.0.0,2.0.0)</version>
64
		</dependency>
65
	</dependencies>
66
	
67
	<profiles>
68
		<profile>
69
			<!-- This profiles provides test resources for oozie package. 
70
				 To be used only with 'oozie' profile -->
71
			<id>attach-test-resources</id>
72
			<properties>
73
				<!--overriding default scope (set to 'runtime') with the 'test' value. 
74
					Test resources attached to oozie package requires all test dependancies. -->
75
				<oozie.package.dependencies.scope>test</oozie.package.dependencies.scope>
76
			</properties>
77
			<build>
78
				<plugins>
79
					<plugin>
80
						<groupId>org.apache.maven.plugins</groupId>
81
						<artifactId>maven-compiler-plugin</artifactId>
82
						<executions>
83
							<execution>
84
								<id>attach-test-resources-compile</id>
85
								<phase>test-compile</phase>
86
								<goals>
87
									<goal>testCompile</goal>
88
								</goals>
89
							</execution>
90
						</executions>
91
					</plugin>
92
					<plugin>
93
						<groupId>org.apache.maven.plugins</groupId>
94
						<artifactId>maven-jar-plugin</artifactId>
95
						<executions>
96
							<execution>
97
								<id>attach-test-resources-package</id>
98
								<phase>prepare-package</phase>
99
								<goals>
100
									<goal>test-jar</goal>
101
								</goals>
102
							</execution>
103
						</executions>
104
					</plugin>
105
				</plugins>
106
			</build>
107
		</profile>
108
		
109
		<profile>
110
			<id>oozie-package</id>
111
			<build>
112
				<plugins>
113
					<plugin>
114
		                <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
115
		                <artifactId>svn-revision-number-maven-plugin</artifactId>
116
		                <version>1.13</version>
117
		                <dependencies>
118
							<dependency>
119
							    <groupId>org.tmatesoft.svnkit</groupId>
120
							    <artifactId>svnkit</artifactId>
121
								<version>1.8.5</version>
122
							</dependency>
123
						</dependencies>
124
		                <executions>
125
		                    <execution>
126
		                        <goals>
127
		                            <goal>revision</goal>
128
		                        </goals>
129
		                    </execution>
130
		                </executions>
131
		                <configuration>
132
		                    <entries>
133
		                        <entry>
134
		                            <prefix>svn</prefix>
135
		                        </entry>
136
		                    </entries>
137
		                </configuration>
138
		            </plugin>
139
					<plugin>
140
						<groupId>org.apache.maven.plugins</groupId>
141
						<artifactId>maven-dependency-plugin</artifactId>
142
						<executions>
143
							<execution>
144
									<id>copy dependencies</id>
145
									<phase>prepare-package</phase>
146
									<goals>
147
										<goal>copy-dependencies</goal>
148
									</goals>
149
									<configuration>
150
										<includeScope>${oozie.package.dependencies.scope}</includeScope>
151
									</configuration>
152
							</execution>
153
						</executions>
154
					</plugin>
155
					<plugin>
156
		                <groupId>eu.dnetlib</groupId>
157
		                <artifactId>icm-iis-primer-maven-plugin</artifactId>
158
		                <executions>
159
		                    <execution>
160
		                        <id>priming</id>
161
		                        <phase>prepare-package</phase>
162
		                        <goals><goal>prime</goal></goals>
163
		                        <configuration>
164
		                            <classProviderFiles>
165
		                                <classProviderFile>${project.build.directory}/dependency/*.jar</classProviderFile>
166
		                                <classProviderFile>${project.build.directory}/*-tests.jar</classProviderFile>
167
		                                <classProviderFile>${project.build.directory}/classes</classProviderFile>
168
		                            </classProviderFiles>
169
		                            <coansysPackageDir>${project.build.directory}/dependency</coansysPackageDir>
170
		                            <destination>${project.build.directory}/${primed.dir}</destination>
171
		                            <classpath>${workflow.source.dir}</classpath>
172
		                        </configuration>
173
		                    </execution>
174
		                </executions>
175
		            </plugin>
176
					<!-- reading job.properties to use them in .sh scripts -->
177
					<plugin>
178
						<groupId>org.kuali.maven.plugins</groupId>
179
						<artifactId>properties-maven-plugin</artifactId>
180
						<version>1.3.2</version>
181
						<dependencies>
182
							<dependency>
183
								<groupId>eu.dnetlib</groupId>
184
								<artifactId>icm-iis-assembly-resources</artifactId>
185
								<version>[1.0.0,2.0.0)</version>
186
								<!-- contains project-default.properties -->
187
							</dependency>
188
						</dependencies>
189
						<executions>
190
							<execution>
191
								<id>read-default-properties</id>
192
								<phase>initialize</phase>
193
								<goals>
194
									<goal>read-project-properties</goal>
195
								</goals>
196
								<configuration>
197
									<locations>
198
										<param>classpath:project-default.properties</param>
199
									</locations>
200
									<quiet>true</quiet>
201
								</configuration>
202
							</execution>
203
							<execution>
204
								<id>read-job-properties</id>
205
								<phase>prepare-package</phase>
206
								<goals>
207
									<goal>read-project-properties</goal>
208
								</goals>
209
								<configuration>
210
									<locations>
211
										<param>${project.build.directory}/${primed.dir}/job.properties</param>
212
										<param>job-override.properties</param>
213
									</locations>
214
									<quiet>true</quiet>
215
								</configuration>
216
							</execution>
217
						</executions>
218
					</plugin>
219
					
220
					<plugin>
221
						<groupId>eu.dnetlib</groupId>
222
						<artifactId>icm-iis-properties-maven-plugin</artifactId>
223
						<executions>
224
							<execution>
225
		                        <phase>validate</phase>
226
		                        <goals>
227
		                            <goal>generate-properties</goal>
228
		                            <!-- generates sandboxName based on workflow.source.dir 
229
		                            	when not specified as commandline parameter -->
230
		                        </goals>
231
		                        <configuration>
232
		                        </configuration>
233
		                    </execution>
234
							<execution>
235
								<id>write-job-properties</id>
236
								<phase>prepare-package</phase>
237
								<goals>
238
									<goal>write-project-properties</goal>
239
								</goals>
240
								<configuration>
241
									<outputFile>target/${oozie.package.file.name}/job.properties</outputFile>
242
									<!-- notice: dots are not allowed for job.properties! -->
243
									<include>nameNode,jobTracker,queueName,
244
									workingDir,oozie.wf.application.path</include>
245
									<includeSystemProperties>true</includeSystemProperties>
246
									<includePropertyKeysFromFiles>
247
										<!-- 
248
										<param>${workflow.source.dir}/job.properties</param>
249
										 -->
250
										<param>${project.build.directory}/${primed.dir}/job.properties</param>
251
										<param>job-override.properties</param>
252
									</includePropertyKeysFromFiles>
253
								</configuration>
254
							</execution>
255
							<execution>
256
								<id>write-version-properties</id>
257
								<phase>prepare-package</phase>
258
								<goals>
259
									<goal>write-project-properties</goal>
260
								</goals>
261
								<configuration>
262
									<outputFile>target/${oozie.package.file.name}/${oozieAppDir}/version.properties</outputFile>
263
									<include>svn.revision,svn.repository,svn.path</include>
264
								</configuration>
265
							</execution>
266
						</executions>
267
					</plugin>
268
					<plugin>
269
						<groupId>org.apache.maven.plugins</groupId>
270
						<artifactId>maven-assembly-plugin</artifactId>
271
						<version>2.3</version>
272
						<dependencies>
273
							<dependency>
274
								<groupId>eu.dnetlib</groupId>
275
								<artifactId>icm-iis-assembly-resources</artifactId>
276
								<version>[1.0.0,2.0.0)</version>
277
							</dependency>
278
						</dependencies>
279
						<executions>
280
							<execution>
281
								<id>assembly-oozie-installer</id>
282
								<phase>package</phase>
283
								<goals>
284
									<goal>single</goal>
285
								</goals>
286
								<configuration>
287
									<appendAssemblyId>false</appendAssemblyId>
288
		        					<finalName>${oozie.package.file.name}_shell_scripts</finalName>
289
		        					<descriptorRefs>
290
							        	<descriptorRef>oozie-installer</descriptorRef>
291
							       	</descriptorRefs>
292
								</configuration>
293
							</execution>
294
						</executions>
295
					</plugin>
296
					
297
					<plugin>
298
						<!-- this plugin prepares oozie installer package-->
299
						<artifactId>maven-antrun-plugin</artifactId>
300
						<executions>
301
							<!-- extracting shared resources phase -->
302
							<execution>
303
					          <id>installer-copy-custom</id>
304
					          <phase>process-resources</phase>
305
					          <goals>
306
					              <goal>run</goal>
307
					          </goals>
308
					          <configuration>
309
					              <tasks>
310
					                  <property name="assembly-resources.loc" value="${maven.dependency.eu.dnetlib.icm-iis-assembly-resources.jar.path}" />
311
					                  <unjar src="${assembly-resources.loc}" dest="${project.build.directory}/assembly-resources" />                                                                     
312
					              </tasks>
313
					          </configuration>
314
					      	</execution>
315
							<!-- packaging phase -->
316
							<execution>
317
								<phase>package</phase>
318
								<configuration>
319
									<tasks>
320
										<!-- copying workflow resources -->
321
										<mkdir dir="target/${oozie.package.file.name}" />
322
										<mkdir dir="target/${oozie.package.file.name}/${oozieAppDir}" />
323
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}">
324
											<!-- 
325
											<fileset dir="${workflow.source.dir}/${oozieAppDir}" />
326
											replacing with primed dir location
327
											 -->
328
											<fileset dir="target/${primed.dir}/${oozieAppDir}" />
329
										</copy>
330
										<!-- copying all jars to oozie lib directory -->
331
										<mkdir dir="target/${oozie.package.file.name}/${oozieAppDir}/lib" />
332
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}/lib">
333
											<fileset dir="${project.build.directory}/dependency" />
334
										</copy>
335
										<!-- copying current module lib -->
336
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}/lib">
337
											<fileset dir="${project.build.directory}">
338
												<include name="*.jar" />
339
											</fileset>
340
										</copy>
341
										
342
										<!-- creating tar.gz package -->
343
										<tar destfile="target/${oozie.package.file.name}.tar.gz" compression="gzip">
344
											<tarfileset dir="target/${oozie.package.file.name}" />
345
											<tarfileset dir="target/${oozie.package.file.name}_shell_scripts" filemode="0755">
346
												<include name="**/*.sh" />
347
											</tarfileset>
348
											<tarfileset dir="target/${oozie.package.file.name}_shell_scripts" filemode="0644">
349
												<exclude name="**/*.sh" />
350
											</tarfileset>
351
										</tar>
352
										<!-- cleanup -->
353
										<delete dir="target/${oozie.package.file.name}" />
354
										<delete dir="target/${oozie.package.file.name}_shell_scripts" />
355
									</tasks>
356
								</configuration>
357
								<goals>
358
									<goal>run</goal>
359
								</goals>
360
							</execution>
361
						</executions>
362
					</plugin>
363
				</plugins>
364
			</build>
365
		</profile>
366
		
367
		<profile>
368
			<id>deploy</id>
369
			<build>
370
				<plugins>
371
			        <plugin>
372
					  <groupId>org.codehaus.mojo</groupId>
373
					  <artifactId>exec-maven-plugin</artifactId>
374
					  <version>1.3.2</version>
375
					  <executions>
376
					  	<execution>
377
				          <id>create-target-dir</id>
378
				          <phase>package</phase>
379
				          <goals>
380
				            <goal>exec</goal>
381
				          </goals>
382
				          <configuration>
383
				          	<executable>ssh</executable>
384
						    <arguments>
385
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
386
								<argument>rm -rf ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; mkdir -p ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/</argument>
387
						    </arguments>
388
				          </configuration>
389
				        </execution>
390
					  	<execution>
391
				          <id>upload-oozie-package</id>
392
				          <phase>package</phase>
393
				          <goals>
394
				            <goal>exec</goal>
395
				          </goals>
396
				          <configuration>
397
				          	<executable>scp</executable>
398
						    <arguments>
399
								<argument>target/${oozie.package.file.name}.tar.gz</argument>
400
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}:${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/${oozie.package.file.name}.tar.gz</argument>
401
						    </arguments>
402
				          </configuration>
403
				        </execution>
404
					  
405
					    <execution>
406
					      <id>extract-and-upload-to-hdfs</id>
407
					      <phase>package</phase>
408
					      <goals>
409
					        <goal>exec</goal>
410
					      </goals>
411
					      <configuration>
412
						    <executable>ssh</executable>
413
						    <arguments>
414
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
415
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
416
								<argument>tar -zxvf oozie-package.tar.gz; </argument>
417
								<argument>rm ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/oozie-package.tar.gz; </argument>
418
								<argument>./upload_workflow.sh</argument> 
419
						    </arguments>
420
						  </configuration>
421
					    </execution>
422
					  </executions>
423
					</plugin>
424
				</plugins>
425
			</build>
426
		</profile>
427
		
428
		<profile>
429
			<id>run</id>
430
			<build>
431
				<plugins>
432
			        <plugin>
433
					  <groupId>org.codehaus.mojo</groupId>
434
					  <artifactId>exec-maven-plugin</artifactId>
435
					  <version>1.3.2</version>
436
					  <executions>
437
					    <execution>
438
					      <id>run-job</id>
439
					      <phase>package</phase>
440
					      <goals>
441
					        <goal>exec</goal>
442
					      </goals>
443
					      <configuration>
444
						    <executable>ssh</executable>
445
						    <!-- this file will be used by test verification profile reading job identifier -->
446
						    <outputFile>${oozie.execution.log.file.location}</outputFile>
447
						    <arguments>
448
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
449
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
450
								<argument>./run_workflow.sh</argument>
451
						    </arguments>
452
						  </configuration>
453
					    </execution>
454
					    
455
					    <execution>
456
					      <id>show-run-log-on-stdout</id>
457
					      <phase>package</phase>
458
					      <goals>
459
					        <goal>exec</goal>
460
					      </goals>
461
					      <configuration>
462
						    <executable>cat</executable>
463
						    <arguments>
464
								<argument>${oozie.execution.log.file.location}</argument>
465
						    </arguments>
466
						  </configuration>
467
					    </execution>
468
					  </executions>
469
					</plugin>
470
				</plugins>
471
			</build>
472
		</profile>
473
		
474
		<profile>
475
			<id>monitor</id>
476
			<build>
477
				<plugins>
478
			        <plugin>
479
						<groupId>eu.dnetlib</groupId>
480
						<artifactId>icm-iis-oozie-maven-plugin</artifactId>
481
						<executions>
482
							<execution>
483
								<id>read-job-id</id>
484
		                        <phase>package</phase>
485
		                        <goals>
486
		                            <goal>read-job-id</goal>
487
		                        </goals>
488
		                        <configuration>
489
		                        	<logFileLocation>${oozie.execution.log.file.location}</logFileLocation>
490
		                        </configuration>
491
		                    </execution>
492
		                    <execution>
493
								<id>check-job-status</id>
494
		                        <phase>package</phase>
495
		                        <goals>
496
		                            <goal>check-job-status</goal>
497
		                        </goals>
498
		                        <configuration>
499
		                        	<jobId>${oozieJobId}</jobId>
500
		                        	<oozieLocation>${oozieServiceLoc}</oozieLocation>
501
		                        	<maxExecutionTimeMins>60</maxExecutionTimeMins>
502
		                        	<checkIntervalSecs>5</checkIntervalSecs>
503
		                        </configuration>
504
		                    </execution>
505
						</executions>
506
					</plugin>
507
				</plugins>
508
			</build>
509
		</profile>
510
		
511
		<profile>
512
			<id>deploy-local</id>
513
			<build>
514
				<plugins>
515
			        <plugin>
516
					  <groupId>org.codehaus.mojo</groupId>
517
					  <artifactId>exec-maven-plugin</artifactId>
518
					  <version>1.3.2</version>
519
					  <executions>
520
					  	<execution>
521
					      <id>mkdir</id>
522
					      <phase>package</phase>
523
					      <goals>
524
					        <goal>exec</goal>
525
					      </goals>
526
					      <configuration>
527
						    <executable>mkdir</executable>
528
						    <arguments>
529
								<argument>target/local-upload</argument>
530
						    </arguments>
531
						  </configuration>
532
					    </execution>
533
					    <execution>
534
					      <id>untar</id>
535
					      <phase>package</phase>
536
					      <goals>
537
					        <goal>exec</goal>
538
					      </goals>
539
					      <configuration>
540
						    <executable>tar</executable>
541
						    <arguments>
542
								<argument>-zxvf</argument>
543
								<argument>${project.build.directory}/${oozie.package.file.name}.tar.gz</argument>
544
								<argument>-C</argument>
545
								<argument>${project.build.directory}/local-upload</argument>
546
						    </arguments>
547
						  </configuration>
548
					    </execution>
549
					    <execution>
550
					      <id>upload-to-local-cluster</id>
551
					      <phase>package</phase>
552
					      <goals>
553
					        <goal>exec</goal>
554
					      </goals>
555
					      <configuration>
556
						    <executable>sh</executable>
557
						    <arguments>
558
						    	<argument>${project.build.directory}/local-upload/upload_workflow.sh</argument>
559
						    	<argument>${project.build.directory}/local-upload</argument>
560
						    </arguments>
561
						  </configuration>
562
					    </execution>
563
					  </executions>
564
					</plugin>
565
				</plugins>
566
			</build>
567
		</profile>
568
		
569
		<profile>
570
			<id>run-local</id>
571
			<build>
572
				<plugins>
573
			        <plugin>
574
					  <groupId>org.codehaus.mojo</groupId>
575
					  <artifactId>exec-maven-plugin</artifactId>
576
					  <version>1.3.2</version>
577
					  <executions>
578
					    <execution>
579
					      <id>run-on-local-cluster</id>
580
					      <phase>package</phase>
581
					      <goals>
582
					        <goal>exec</goal>
583
					      </goals>
584
					      <configuration>
585
						    <executable>sh</executable>
586
						    <arguments>
587
						    	<argument>${project.build.directory}/local-upload/run_workflow.sh</argument>
588
						    	<argument>${project.build.directory}/local-upload</argument>
589
						    </arguments>
590
						  </configuration>
591
					    </execution>
592
					  </executions>
593
					</plugin>
594
				</plugins>
595
			</build>
596
		</profile>
597
		
598
		<profile>
599
			<!-- this profile is handling unit and integration test definitions 
600
				of all child modules -->
601
			<id>child-tests</id>
602
			<build>
603
			<plugins>
604
				<!-- integration tests related --> 
605
				<plugin>
606
					<groupId>org.apache.maven.plugins</groupId>
607
					<artifactId>maven-compiler-plugin</artifactId>
608
					<executions>
609
						<execution>
610
							<id>integration-test-compile</id>
611
							<phase>integration-test</phase>
612
							<goals>
613
								<goal>testCompile</goal>
614
							</goals>
615
						</execution>
616
					</executions>
617
				</plugin>
618
				<plugin>
619
					<groupId>org.apache.maven.plugins</groupId>
620
					<artifactId>maven-jar-plugin</artifactId>
621
					<executions>
622
						<execution>
623
							<id>integration-test-package</id>
624
							<phase>integration-test</phase>
625
							<goals>
626
								<goal>test-jar</goal>
627
							</goals>
628
						</execution>
629
					</executions>
630
				</plugin>
631
				<plugin>
632
					<groupId>org.apache.maven.plugins</groupId>
633
					<artifactId>maven-dependency-plugin</artifactId>
634
					<executions>
635
						<execution>
636
							<id>integration-test-copy-dependencies</id>
637
							<phase>integration-test</phase>
638
							<goals>
639
								<goal>copy-dependencies</goal>
640
							</goals>
641
						</execution>
642
					</executions>
643
				</plugin>
644
				
645
				<plugin>
646
	                <groupId>eu.dnetlib</groupId>
647
	                <artifactId>icm-iis-primer-maven-plugin</artifactId>
648
	                <executions>
649
	                    <execution>
650
	                        <id>integration-test-priming</id>
651
	                        <phase>integration-test</phase>
652
	                        <goals><goal>prime</goal></goals>
653
	                        <configuration>
654
	                            <classProviderFiles>
655
	                                <classProviderFile>${project.build.directory}/dependency/*.jar</classProviderFile>
656
	                                <classProviderFile>${project.build.directory}/*-tests.jar</classProviderFile>
657
	                                <classProviderFile>${project.build.directory}/classes</classProviderFile>
658
	                            </classProviderFiles>
659
	                            <coansysPackageDir>${project.build.directory}/dependency</coansysPackageDir>
660
	                            <destination>${project.build.directory}/${primed.dir}</destination>
661
	                        </configuration>
662
	                    </execution>
663
	                </executions>
664
	            </plugin>
665
	            <!--  -->
666
				<!-- end of plugins required by integration test priming -->
667
				<plugin>
668
					<groupId>org.apache.maven.plugins</groupId>
669
					<artifactId>maven-surefire-plugin</artifactId>
670
					<version>2.11</version>
671
					<dependencies>
672
						<dependency>
673
							<groupId>org.apache.maven.surefire</groupId>
674
							<artifactId>surefire-junit47</artifactId>
675
							<version>2.12</version>
676
						</dependency>
677
					</dependencies>
678
					<configuration>
679
						<skip>true</skip>
680
					</configuration>
681
					<executions>
682
						<execution>
683
							<id>unit-test</id>
684
							<phase>test</phase>
685
							<goals>
686
								<goal>test</goal>
687
							</goals>
688
							<configuration>
689
								<skip>false</skip>
690
								<excludedGroups>eu.dnetlib.iis.IntegrationTest</excludedGroups>
691
							</configuration>
692
						</execution>
693
						<execution>
694
							<id>integration-test</id>
695
							<phase>integration-test</phase>
696
							<goals>
697
								<goal>test</goal>
698
							</goals>
699
							<configuration>
700
								<skip>false</skip>
701
								<forkMode>always</forkMode>
702
								<argLine>-Xmx1024m</argLine>
703
								<systemPropertiesVariables>
704
									<hadoop.log.dir>/tmp</hadoop.log.dir>
705
									<oozie.data.dir>${oozie.data.dir}</oozie.data.dir>
706
								</systemPropertiesVariables>
707
								<groups>eu.dnetlib.iis.IntegrationTest</groups>
708
							</configuration>
709
						</execution>
710
					</executions>
711
				</plugin>
712
			</plugins>
713
			</build>
714
			<activation>
715
				<file>
716
					<missing>src/main/resources/parent.marker</missing>
717
				</file>
718
			</activation>
719
		</profile>
720
	</profiles>
721
	
722
	<build>
723
		<plugins>
724
		</plugins>
725
		<pluginManagement>
726
			<plugins>
727
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
728
				<plugin>
729
					<groupId>org.eclipse.m2e</groupId>
730
					<artifactId>lifecycle-mapping</artifactId>
731
					<version>1.0.0</version>
732
					<configuration>
733
						<lifecycleMappingMetadata>
734
							<pluginExecutions>
735
								<pluginExecution>
736
									<pluginExecutionFilter>
737
										<groupId>
738
											org.kuali.maven.plugins
739
										</groupId>
740
										<artifactId>
741
											properties-maven-plugin
742
										</artifactId>
743
										<versionRange>
744
											[1.3.2,)
745
										</versionRange>
746
										<goals>
747
											<goal>
748
												read-project-properties
749
											</goal>
750
											<goal>
751
												write-project-properties
752
											</goal>
753
										</goals>
754
									</pluginExecutionFilter>
755
									<action>
756
										<ignore />
757
									</action>
758
								</pluginExecution>
759
								<!-- copy-dependency plugin -->
760
			                    <pluginExecution>
761
			                        <pluginExecutionFilter>
762
			                            <groupId>org.apache.maven.plugins</groupId>
763
			                            <artifactId>maven-dependency-plugin</artifactId>
764
			                            <versionRange>[1.0.0,)</versionRange>
765
			                            <goals>
766
			                                <goal>copy-dependencies</goal>
767
			                            </goals>
768
			                        </pluginExecutionFilter>
769
			                        <action>
770
			                            <ignore />
771
			                        </action>
772
                    </pluginExecution>
773
							</pluginExecutions>
774
						</lifecycleMappingMetadata>
775
					</configuration>
776
				</plugin>
777
			</plugins>
778
		</pluginManagement>
779
	</build>
780
	
781
	<repositories>
782
		<repository>
783
			<id>cloudera</id>
784
			<name>Cloudera Repository</name>
785
			<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
786
			<releases>
787
				<enabled>true</enabled>
788
			</releases>
789
			<snapshots>
790
				<enabled>false</enabled>
791
			</snapshots>
792
		</repository>	
793
	</repositories>
794
</project>
(3-3/3)