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.0-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-snapshot-plugin</id>                                                                                                                                                             
47
			<name>dnet4 bootstrap snapshot plugin</name>                                                                                                                                                         
48
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-snapshot</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-SNAPSHOT</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-SNAPSHOT</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
						<version>0.0.1-SNAPSHOT</version>
224
						<executions>
225
							<execution>
226
		                        <phase>validate</phase>
227
		                        <goals>
228
		                            <goal>generate-properties</goal>
229
		                            <!-- generates sandboxName based on workflow.source.dir 
230
		                            	when not specified as commandline parameter -->
231
		                        </goals>
232
		                        <configuration>
233
		                        </configuration>
234
		                    </execution>
235
							<execution>
236
								<id>write-job-properties</id>
237
								<phase>prepare-package</phase>
238
								<goals>
239
									<goal>write-project-properties</goal>
240
								</goals>
241
								<configuration>
242
									<outputFile>target/${oozie.package.file.name}/job.properties</outputFile>
243
									<!-- notice: dots are not allowed for job.properties! -->
244
									<include>nameNode,jobTracker,queueName,
245
									workingDir,oozie.wf.application.path</include>
246
									<includeSystemProperties>true</includeSystemProperties>
247
									<includePropertyKeysFromFiles>
248
										<!-- 
249
										<param>${workflow.source.dir}/job.properties</param>
250
										 -->
251
										<param>${project.build.directory}/${primed.dir}/job.properties</param>
252
										<param>job-override.properties</param>
253
									</includePropertyKeysFromFiles>
254
								</configuration>
255
							</execution>
256
							<execution>
257
								<id>write-version-properties</id>
258
								<phase>prepare-package</phase>
259
								<goals>
260
									<goal>write-project-properties</goal>
261
								</goals>
262
								<configuration>
263
									<outputFile>target/${oozie.package.file.name}/${oozieAppDir}/version.properties</outputFile>
264
									<include>svn.revision,svn.repository,svn.path</include>
265
								</configuration>
266
							</execution>
267
						</executions>
268
					</plugin>
269
					<plugin>
270
						<groupId>org.apache.maven.plugins</groupId>
271
						<artifactId>maven-assembly-plugin</artifactId>
272
						<version>2.3</version>
273
						<dependencies>
274
							<dependency>
275
								<groupId>eu.dnetlib</groupId>
276
								<artifactId>icm-iis-assembly-resources</artifactId>
277
								<version>1.0.0-SNAPSHOT</version>
278
							</dependency>
279
						</dependencies>
280
						<executions>
281
							<execution>
282
								<id>assembly-oozie-installer</id>
283
								<phase>package</phase>
284
								<goals>
285
									<goal>single</goal>
286
								</goals>
287
								<configuration>
288
									<appendAssemblyId>false</appendAssemblyId>
289
		        					<finalName>${oozie.package.file.name}_shell_scripts</finalName>
290
		        					<descriptorRefs>
291
							        	<descriptorRef>oozie-installer</descriptorRef>
292
							       	</descriptorRefs>
293
								</configuration>
294
							</execution>
295
						</executions>
296
					</plugin>
297
					
298
					<plugin>
299
						<!-- this plugin prepares oozie installer package-->
300
						<artifactId>maven-antrun-plugin</artifactId>
301
						<executions>
302
							<!-- extracting shared resources phase -->
303
							<execution>
304
					          <id>installer-copy-custom</id>
305
					          <phase>process-resources</phase>
306
					          <goals>
307
					              <goal>run</goal>
308
					          </goals>
309
					          <configuration>
310
					              <tasks>
311
					                  <property name="assembly-resources.loc"
312
					                  value="${maven.dependency.eu.dnetlib.icm-iis-assembly-resources.jar.path}"/>
313
					                  <unjar src="${assembly-resources.loc}" dest="${project.build.directory}/assembly-resources"/>                                                                     
314
					              </tasks>
315
					          </configuration>
316
					      	</execution>
317
							<!-- packaging phase -->
318
							<execution>
319
								<phase>package</phase>
320
								<configuration>
321
									<tasks>
322
										<!-- copying workflow resources -->
323
										<mkdir dir="target/${oozie.package.file.name}"/>
324
										<mkdir dir="target/${oozie.package.file.name}/${oozieAppDir}"/>
325
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}">
326
											<!-- 
327
											<fileset dir="${workflow.source.dir}/${oozieAppDir}"/>
328
											replacing with primed dir location
329
											 -->
330
											<fileset dir="target/${primed.dir}/${oozieAppDir}"/>
331
										</copy>
332
										<!-- copying all jars to oozie lib directory -->
333
										<mkdir dir="target/${oozie.package.file.name}/${oozieAppDir}/lib"/>
334
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}/lib">
335
											<fileset dir="${project.build.directory}/dependency"/>
336
										</copy>
337
										<!-- copying current module lib -->
338
										<copy todir="target/${oozie.package.file.name}/${oozieAppDir}/lib">
339
											<fileset dir="${project.build.directory}">
340
												<include name="*.jar"/>
341
											</fileset>
342
										</copy>
343
										
344
										<!-- creating tar.gz package -->
345
										<tar destfile="target/${oozie.package.file.name}.tar.gz" compression="gzip">
346
											<tarfileset dir="target/${oozie.package.file.name}"/>
347
											<tarfileset dir="target/${oozie.package.file.name}_shell_scripts" filemode="0755">
348
												<include name="**/*.sh"/>
349
											</tarfileset>
350
											<tarfileset dir="target/${oozie.package.file.name}_shell_scripts" filemode="0644">
351
												<exclude name="**/*.sh"/>
352
											</tarfileset>
353
										</tar>
354
										<!-- cleanup -->
355
										<delete dir="target/${oozie.package.file.name}"/>
356
										<delete dir="target/${oozie.package.file.name}_shell_scripts"/>
357
									</tasks>
358
								</configuration>
359
								<goals>
360
									<goal>run</goal>
361
								</goals>
362
							</execution>
363
						</executions>
364
					</plugin>
365
				</plugins>
366
			</build>
367
		</profile>
368
		
369
		<profile>
370
			<id>deploy</id>
371
			<build>
372
				<plugins>
373
			        <plugin>
374
					  <groupId>org.codehaus.mojo</groupId>
375
					  <artifactId>exec-maven-plugin</artifactId>
376
					  <version>1.3.2</version>
377
					  <executions>
378
					  	<execution>
379
				          <id>create-target-dir</id>
380
				          <phase>package</phase>
381
				          <goals>
382
				            <goal>exec</goal>
383
				          </goals>
384
				          <configuration>
385
				          	<executable>ssh</executable>
386
						    <arguments>
387
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
388
								<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>
389
						    </arguments>
390
				          </configuration>
391
				        </execution>
392
					  	<execution>
393
				          <id>upload-oozie-package</id>
394
				          <phase>package</phase>
395
				          <goals>
396
				            <goal>exec</goal>
397
				          </goals>
398
				          <configuration>
399
				          	<executable>scp</executable>
400
						    <arguments>
401
								<argument>target/${oozie.package.file.name}.tar.gz</argument>
402
								<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>
403
						    </arguments>
404
				          </configuration>
405
				        </execution>
406
					  
407
					    <execution>
408
					      <id>extract-and-upload-to-hdfs</id>
409
					      <phase>package</phase>
410
					      <goals>
411
					        <goal>exec</goal>
412
					      </goals>
413
					      <configuration>
414
						    <executable>ssh</executable>
415
						    <arguments>
416
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
417
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
418
								<argument>tar -zxvf oozie-package.tar.gz; </argument>
419
								<argument>rm ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/oozie-package.tar.gz; </argument>
420
								<argument>./upload_workflow.sh</argument> 
421
						    </arguments>
422
						  </configuration>
423
					    </execution>
424
					  </executions>
425
					</plugin>
426
				</plugins>
427
			</build>
428
		</profile>
429
		
430
		<profile>
431
			<id>run</id>
432
			<build>
433
				<plugins>
434
			        <plugin>
435
					  <groupId>org.codehaus.mojo</groupId>
436
					  <artifactId>exec-maven-plugin</artifactId>
437
					  <version>1.3.2</version>
438
					  <executions>
439
					    <execution>
440
					      <id>run-job</id>
441
					      <phase>package</phase>
442
					      <goals>
443
					        <goal>exec</goal>
444
					      </goals>
445
					      <configuration>
446
						    <executable>ssh</executable>
447
						    <!-- this file will be used by test verification profile reading job identifier -->
448
						    <outputFile>${oozie.execution.log.file.location}</outputFile>
449
						    <arguments>
450
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
451
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
452
								<argument>./run_workflow.sh</argument>
453
						    </arguments>
454
						  </configuration>
455
					    </execution>
456
					    
457
					    <execution>
458
					      <id>show-run-log-on-stdout</id>
459
					      <phase>package</phase>
460
					      <goals>
461
					        <goal>exec</goal>
462
					      </goals>
463
					      <configuration>
464
						    <executable>cat</executable>
465
						    <arguments>
466
								<argument>${oozie.execution.log.file.location}</argument>
467
						    </arguments>
468
						  </configuration>
469
					    </execution>
470
					  </executions>
471
					</plugin>
472
				</plugins>
473
			</build>
474
		</profile>
475
		
476
		<profile>
477
			<id>monitor</id>
478
			<build>
479
				<plugins>
480
			        <plugin>
481
						<groupId>eu.dnetlib</groupId>
482
						<artifactId>icm-iis-oozie-maven-plugin</artifactId>
483
						<version>0.0.1-SNAPSHOT</version>
484
						<executions>
485
							<execution>
486
								<id>read-job-id</id>
487
		                        <phase>package</phase>
488
		                        <goals>
489
		                            <goal>read-job-id</goal>
490
		                        </goals>
491
		                        <configuration>
492
		                        	<logFileLocation>${oozie.execution.log.file.location}</logFileLocation>
493
		                        </configuration>
494
		                    </execution>
495
		                    <execution>
496
								<id>check-job-status</id>
497
		                        <phase>package</phase>
498
		                        <goals>
499
		                            <goal>check-job-status</goal>
500
		                        </goals>
501
		                        <configuration>
502
		                        	<jobId>${oozieJobId}</jobId>
503
		                        	<oozieLocation>${oozieServiceLoc}</oozieLocation>
504
		                        	<maxExecutionTimeMins>60</maxExecutionTimeMins>
505
		                        	<checkIntervalSecs>5</checkIntervalSecs>
506
		                        </configuration>
507
		                    </execution>
508
						</executions>
509
					</plugin>
510
				</plugins>
511
			</build>
512
		</profile>
513
		
514
		<profile>
515
			<id>deploy-local</id>
516
			<build>
517
				<plugins>
518
			        <plugin>
519
					  <groupId>org.codehaus.mojo</groupId>
520
					  <artifactId>exec-maven-plugin</artifactId>
521
					  <version>1.3.2</version>
522
					  <executions>
523
					  	<execution>
524
					      <id>mkdir</id>
525
					      <phase>package</phase>
526
					      <goals>
527
					        <goal>exec</goal>
528
					      </goals>
529
					      <configuration>
530
						    <executable>mkdir</executable>
531
						    <arguments>
532
								<argument>target/local-upload</argument>
533
						    </arguments>
534
						  </configuration>
535
					    </execution>
536
					    <execution>
537
					      <id>untar</id>
538
					      <phase>package</phase>
539
					      <goals>
540
					        <goal>exec</goal>
541
					      </goals>
542
					      <configuration>
543
						    <executable>tar</executable>
544
						    <arguments>
545
								<argument>-zxvf</argument>
546
								<argument>${project.build.directory}/${oozie.package.file.name}.tar.gz</argument>
547
								<argument>-C</argument>
548
								<argument>${project.build.directory}/local-upload</argument>
549
						    </arguments>
550
						  </configuration>
551
					    </execution>
552
					    <execution>
553
					      <id>upload-to-local-cluster</id>
554
					      <phase>package</phase>
555
					      <goals>
556
					        <goal>exec</goal>
557
					      </goals>
558
					      <configuration>
559
						    <executable>sh</executable>
560
						    <arguments>
561
						    	<argument>${project.build.directory}/local-upload/upload_workflow.sh</argument>
562
						    	<argument>${project.build.directory}/local-upload</argument>
563
						    </arguments>
564
						  </configuration>
565
					    </execution>
566
					  </executions>
567
					</plugin>
568
				</plugins>
569
			</build>
570
		</profile>
571
		
572
		<profile>
573
			<id>run-local</id>
574
			<build>
575
				<plugins>
576
			        <plugin>
577
					  <groupId>org.codehaus.mojo</groupId>
578
					  <artifactId>exec-maven-plugin</artifactId>
579
					  <version>1.3.2</version>
580
					  <executions>
581
					    <execution>
582
					      <id>run-on-local-cluster</id>
583
					      <phase>package</phase>
584
					      <goals>
585
					        <goal>exec</goal>
586
					      </goals>
587
					      <configuration>
588
						    <executable>sh</executable>
589
						    <arguments>
590
						    	<argument>${project.build.directory}/local-upload/run_workflow.sh</argument>
591
						    	<argument>${project.build.directory}/local-upload</argument>
592
						    </arguments>
593
						  </configuration>
594
					    </execution>
595
					  </executions>
596
					</plugin>
597
				</plugins>
598
			</build>
599
		</profile>
600
		
601
		<profile>
602
			<!-- this profile is handling unit and integration test definitions 
603
				of all child modules -->
604
			<id>child-tests</id>
605
			<build>
606
			<plugins>
607
				<!-- integration tests related --> 
608
				<plugin>
609
					<groupId>org.apache.maven.plugins</groupId>
610
					<artifactId>maven-compiler-plugin</artifactId>
611
					<executions>
612
						<execution>
613
							<id>integration-test-compile</id>
614
							<phase>integration-test</phase>
615
							<goals>
616
								<goal>testCompile</goal>
617
							</goals>
618
						</execution>
619
					</executions>
620
				</plugin>
621
				<plugin>
622
					<groupId>org.apache.maven.plugins</groupId>
623
					<artifactId>maven-jar-plugin</artifactId>
624
					<executions>
625
						<execution>
626
							<id>integration-test-package</id>
627
							<phase>integration-test</phase>
628
							<goals>
629
								<goal>test-jar</goal>
630
							</goals>
631
						</execution>
632
					</executions>
633
				</plugin>
634
				<plugin>
635
					<groupId>org.apache.maven.plugins</groupId>
636
					<artifactId>maven-dependency-plugin</artifactId>
637
					<executions>
638
						<execution>
639
							<id>integration-test-copy-dependencies</id>
640
							<phase>integration-test</phase>
641
							<goals>
642
								<goal>copy-dependencies</goal>
643
							</goals>
644
						</execution>
645
					</executions>
646
				</plugin>
647
				
648
				<plugin>
649
	                <groupId>eu.dnetlib</groupId>
650
	                <artifactId>icm-iis-primer-maven-plugin</artifactId>
651
	                <executions>
652
	                    <execution>
653
	                        <id>integration-test-priming</id>
654
	                        <phase>integration-test</phase>
655
	                        <goals><goal>prime</goal></goals>
656
	                        <configuration>
657
	                            <classProviderFiles>
658
	                                <classProviderFile>${project.build.directory}/dependency/*.jar</classProviderFile>
659
	                                <classProviderFile>${project.build.directory}/*-tests.jar</classProviderFile>
660
	                                <classProviderFile>${project.build.directory}/classes</classProviderFile>
661
	                            </classProviderFiles>
662
	                            <coansysPackageDir>${project.build.directory}/dependency</coansysPackageDir>
663
	                            <destination>${project.build.directory}/${primed.dir}</destination>
664
	                        </configuration>
665
	                    </execution>
666
	                </executions>
667
	            </plugin>
668
	            <!--  -->
669
				<!-- end of plugins required by integration test priming -->
670
				<plugin>
671
					<groupId>org.apache.maven.plugins</groupId>
672
					<artifactId>maven-surefire-plugin</artifactId>
673
					<version>2.11</version>
674
					<dependencies>
675
						<dependency>
676
							<groupId>org.apache.maven.surefire</groupId>
677
							<artifactId>surefire-junit47</artifactId>
678
							<version>2.12</version>
679
						</dependency>
680
					</dependencies>
681
					<configuration>
682
						<skip>true</skip>
683
					</configuration>
684
					<executions>
685
						<execution>
686
							<id>unit-test</id>
687
							<phase>test</phase>
688
							<goals>
689
								<goal>test</goal>
690
							</goals>
691
							<configuration>
692
								<skip>false</skip>
693
								<excludedGroups>eu.dnetlib.iis.IntegrationTest</excludedGroups>
694
							</configuration>
695
						</execution>
696
						<execution>
697
							<id>integration-test</id>
698
							<phase>integration-test</phase>
699
							<goals>
700
								<goal>test</goal>
701
							</goals>
702
							<configuration>
703
								<skip>false</skip>
704
								<forkMode>always</forkMode>
705
								<argLine>-Xmx1024m</argLine>
706
								<systemPropertiesVariables>
707
									<hadoop.log.dir>/tmp</hadoop.log.dir>
708
									<oozie.data.dir>${oozie.data.dir}</oozie.data.dir>
709
								</systemPropertiesVariables>
710
								<groups>eu.dnetlib.iis.IntegrationTest</groups>
711
							</configuration>
712
						</execution>
713
					</executions>
714
				</plugin>
715
			</plugins>
716
			</build>
717
			<activation>
718
				<file>
719
					<missing>src/main/resources/parent.marker</missing>
720
				</file>
721
			</activation>
722
		</profile>
723
	</profiles>
724
	
725
	<build>
726
		<plugins>
727
		</plugins>
728
		<pluginManagement>
729
			<plugins>
730
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
731
				<plugin>
732
					<groupId>org.eclipse.m2e</groupId>
733
					<artifactId>lifecycle-mapping</artifactId>
734
					<version>1.0.0</version>
735
					<configuration>
736
						<lifecycleMappingMetadata>
737
							<pluginExecutions>
738
								<pluginExecution>
739
									<pluginExecutionFilter>
740
										<groupId>
741
											org.kuali.maven.plugins
742
										</groupId>
743
										<artifactId>
744
											properties-maven-plugin
745
										</artifactId>
746
										<versionRange>
747
											[1.3.2,)
748
										</versionRange>
749
										<goals>
750
											<goal>
751
												read-project-properties
752
											</goal>
753
											<goal>
754
												write-project-properties
755
											</goal>
756
										</goals>
757
									</pluginExecutionFilter>
758
									<action>
759
										<ignore/>
760
									</action>
761
								</pluginExecution>
762
								<!-- copy-dependency plugin -->
763
			                    <pluginExecution>
764
			                        <pluginExecutionFilter>
765
			                            <groupId>org.apache.maven.plugins</groupId>
766
			                            <artifactId>maven-dependency-plugin</artifactId>
767
			                            <versionRange>[1.0.0,)</versionRange>
768
			                            <goals>
769
			                                <goal>copy-dependencies</goal>
770
			                            </goals>
771
			                        </pluginExecutionFilter>
772
			                        <action>
773
			                            <ignore />
774
			                        </action>
775
                    </pluginExecution>
776
							</pluginExecutions>
777
						</lifecycleMappingMetadata>
778
					</configuration>
779
				</plugin>
780
			</plugins>
781
		</pluginManagement>
782
	</build>
783
	
784
	<repositories>
785
		<repository>
786
			<id>cloudera</id>
787
			<name>Cloudera Repository</name>
788
			<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
789
			<releases>
790
				<enabled>true</enabled>
791
			</releases>
792
			<snapshots>
793
				<enabled>false</enabled>
794
			</snapshots>
795
		</repository>	
796
	</repositories>
797
</project>
(3-3/3)