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

    
38
	<pluginRepositories>                                                                                                                                                                          
39
	    <pluginRepository>                                                                                                                                                                          
40
			<id>dnet4-bootstrap-snapshot-plugin</id>                                                                                                                                                             
41
			<name>dnet4 bootstrap snapshot plugin</name>                                                                                                                                                         
42
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-bootstrap-snapshot</url>                                                                                             
43
			<layout>default</layout>
44
	    </pluginRepository>
45
	    <pluginRepository>
46
	      <id>org.tmatesoft</id>
47
	      <name>Subversion 1.8 Compatibility</name>
48
	      <url>http://maven.tmatesoft.com/content/repositories/releases/</url>
49
	      <layout>default</layout>
50
	    </pluginRepository>
51
	</pluginRepositories>
52

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