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
        <iis.hadoop.frontend.port.ssh>22</iis.hadoop.frontend.port.ssh>
34
        <oozieServiceLoc>http://${iis.hadoop.master.host.name}:11000/oozie</oozieServiceLoc>
35
        <oozieAppDir>oozie_app</oozieAppDir>
36
        <nameNode>hdfs://${iis.hadoop.master.host.name}:8020</nameNode>
37
        <jobTracker>${iis.hadoop.master.host.name}:8021</jobTracker>
38
        <queueName>default</queueName>
39
        <primed.dir>primed</primed.dir>
40
        <oozie.package.dependencies.scope>runtime</oozie.package.dependencies.scope>
41
        <oozie.execution.log.file.location>target/extract-and-run-on-remote-host.log</oozie.execution.log.file.location>
42
		<output.dir.name>${maven.build.timestamp}</output.dir.name>        
43
	</properties>
44

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

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