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
        
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</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
			<properties>
366
				<output.dir.name>${maven.build.timestamp}</output.dir.name>
367
			</properties>
368
			<build>
369
				<plugins>
370
			        <plugin>
371
					  <groupId>org.codehaus.mojo</groupId>
372
					  <artifactId>exec-maven-plugin</artifactId>
373
					  <version>1.3.2</version>
374
					  <executions>
375
					  	<execution>
376
				          <id>create-target-dir</id>
377
				          <phase>package</phase>
378
				          <goals>
379
				            <goal>exec</goal>
380
				          </goals>
381
				          <configuration>
382
				          	<executable>ssh</executable>
383
						    <arguments>
384
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
385
								<argument>mkdir -p ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/</argument>
386
						    </arguments>
387
				          </configuration>
388
				        </execution>
389
					  	<execution>
390
				          <id>upload-oozie-package</id>
391
				          <phase>package</phase>
392
				          <goals>
393
				            <goal>exec</goal>
394
				          </goals>
395
				          <configuration>
396
				          	<executable>scp</executable>
397
						    <arguments>
398
								<argument>target/${oozie.package.file.name}.tar.gz</argument>
399
								<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>
400
						    </arguments>
401
				          </configuration>
402
				        </execution>
403
					  
404
					    <execution>
405
					      <id>extract-and-run-on-remote-host</id>
406
					      <phase>package</phase>
407
					      <goals>
408
					        <goal>exec</goal>
409
					      </goals>
410
					      <configuration>
411
						    <executable>ssh</executable>
412
						    <!-- this file will be used by test verification profile reading job identifier -->
413
						    <outputFile>${oozie.execution.log.file.location}</outputFile>
414
						    <arguments>
415
								<argument>${iis.hadoop.frontend.user.name}@${iis.hadoop.frontend.host.name}</argument>
416
								<argument>cd ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/; </argument>
417
								<argument>tar -zxvf oozie-package.tar.gz; </argument>
418
								<argument>rm ${iis.hadoop.frontend.home.dir}/${iis.hadoop.frontend.user.name}/oozie-packages/${sandboxName}/${output.dir.name}/oozie-package.tar.gz; </argument>
419
								<argument>./upload_workflow.sh; </argument> 
420
								<argument>./run_workflow.sh</argument>
421
						    </arguments>
422
						  </configuration>
423
					    </execution>
424
					    
425
					    <execution>
426
					      <id>show-run-log-on-stdout</id>
427
					      <phase>package</phase>
428
					      <goals>
429
					        <goal>exec</goal>
430
					      </goals>
431
					      <configuration>
432
						    <executable>cat</executable>
433
						    <arguments>
434
								<argument>${oozie.execution.log.file.location}</argument>
435
						    </arguments>
436
						  </configuration>
437
					    </execution>
438
					  </executions>
439
					</plugin>
440
				</plugins>
441
			</build>
442
		</profile>
443
		
444
		<profile>
445
			<id>monitor</id>
446
			<build>
447
				<plugins>
448
			        <plugin>
449
						<groupId>eu.dnetlib</groupId>
450
						<artifactId>icm-iis-oozie-maven-plugin</artifactId>
451
						<version>0.0.1-SNAPSHOT</version>
452
						<executions>
453
							<execution>
454
								<id>read-job-id</id>
455
		                        <phase>package</phase>
456
		                        <goals>
457
		                            <goal>read-job-id</goal>
458
		                        </goals>
459
		                        <configuration>
460
		                        	<logFileLocation>${oozie.execution.log.file.location}</logFileLocation>
461
		                        </configuration>
462
		                    </execution>
463
		                    <execution>
464
								<id>check-job-status</id>
465
		                        <phase>package</phase>
466
		                        <goals>
467
		                            <goal>check-job-status</goal>
468
		                        </goals>
469
		                        <configuration>
470
		                        	<jobId>${oozieJobId}</jobId>
471
		                        	<oozieLocation>${oozieServiceLoc}</oozieLocation>
472
		                        	<maxExecutionTimeMins>60</maxExecutionTimeMins>
473
		                        	<checkIntervalSecs>5</checkIntervalSecs>
474
		                        </configuration>
475
		                    </execution>
476
						</executions>
477
					</plugin>
478
				</plugins>
479
			</build>
480
		</profile>
481
		
482
		<profile>
483
			<id>deploy-local</id>
484
			<build>
485
				<plugins>
486
			        <plugin>
487
					  <groupId>org.codehaus.mojo</groupId>
488
					  <artifactId>exec-maven-plugin</artifactId>
489
					  <version>1.3.2</version>
490
					  <executions>
491
					  	<execution>
492
					      <id>mkdir</id>
493
					      <phase>package</phase>
494
					      <goals>
495
					        <goal>exec</goal>
496
					      </goals>
497
					      <configuration>
498
						    <executable>mkdir</executable>
499
						    <arguments>
500
								<argument>target/local-upload</argument>
501
						    </arguments>
502
						  </configuration>
503
					    </execution>
504
					    <execution>
505
					      <id>untar</id>
506
					      <phase>package</phase>
507
					      <goals>
508
					        <goal>exec</goal>
509
					      </goals>
510
					      <configuration>
511
						    <executable>tar</executable>
512
						    <arguments>
513
								<argument>-zxvf</argument>
514
								<argument>${project.build.directory}/${oozie.package.file.name}.tar.gz</argument>
515
								<argument>-C</argument>
516
								<argument>${project.build.directory}/local-upload</argument>
517
						    </arguments>
518
						  </configuration>
519
					    </execution>
520
					    <execution>
521
					      <id>upload-to-local-cluster</id>
522
					      <phase>package</phase>
523
					      <goals>
524
					        <goal>exec</goal>
525
					      </goals>
526
					      <configuration>
527
						    <executable>sh</executable>
528
						    <arguments>
529
						    	<argument>${project.build.directory}/local-upload/upload_workflow.sh</argument>
530
						    	<argument>${project.build.directory}/local-upload</argument>
531
						    </arguments>
532
						  </configuration>
533
					    </execution>
534
					    <execution>
535
					      <id>run-on-local-cluster</id>
536
					      <phase>package</phase>
537
					      <goals>
538
					        <goal>exec</goal>
539
					      </goals>
540
					      <configuration>
541
						    <executable>sh</executable>
542
						    <arguments>
543
						    	<argument>${project.build.directory}/local-upload/run_workflow.sh</argument>
544
						    	<argument>${project.build.directory}/local-upload</argument>
545
						    </arguments>
546
						  </configuration>
547
					    </execution>
548
					  </executions>
549
					</plugin>
550
				</plugins>
551
			</build>
552
		</profile>
553
		
554
		<profile>
555
			<!-- this profile is handling unit and integration test definitions 
556
				of all child modules -->
557
			<id>child-tests</id>
558
			<build>
559
			<plugins>
560
				<!-- integration tests related --> 
561
				<plugin>
562
					<groupId>org.apache.maven.plugins</groupId>
563
					<artifactId>maven-compiler-plugin</artifactId>
564
					<executions>
565
						<execution>
566
							<id>integration-test-compile</id>
567
							<phase>integration-test</phase>
568
							<goals>
569
								<goal>testCompile</goal>
570
							</goals>
571
						</execution>
572
					</executions>
573
				</plugin>
574
				<plugin>
575
					<groupId>org.apache.maven.plugins</groupId>
576
					<artifactId>maven-jar-plugin</artifactId>
577
					<executions>
578
						<execution>
579
							<id>integration-test-package</id>
580
							<phase>integration-test</phase>
581
							<goals>
582
								<goal>test-jar</goal>
583
							</goals>
584
						</execution>
585
					</executions>
586
				</plugin>
587
				<plugin>
588
					<groupId>org.apache.maven.plugins</groupId>
589
					<artifactId>maven-dependency-plugin</artifactId>
590
					<executions>
591
						<execution>
592
							<id>integration-test-copy-dependencies</id>
593
							<phase>integration-test</phase>
594
							<goals>
595
								<goal>copy-dependencies</goal>
596
							</goals>
597
						</execution>
598
					</executions>
599
				</plugin>
600
				
601
				<plugin>
602
	                <groupId>eu.dnetlib</groupId>
603
	                <artifactId>icm-iis-primer-maven-plugin</artifactId>
604
	                <executions>
605
	                    <execution>
606
	                        <id>integration-test-priming</id>
607
	                        <phase>integration-test</phase>
608
	                        <goals><goal>prime</goal></goals>
609
	                        <configuration>
610
	                            <classProviderFiles>
611
	                                <classProviderFile>${project.build.directory}/dependency/*.jar</classProviderFile>
612
	                                <classProviderFile>${project.build.directory}/*-tests.jar</classProviderFile>
613
	                                <classProviderFile>${project.build.directory}/classes</classProviderFile>
614
	                            </classProviderFiles>
615
	                            <coansysPackageDir>${project.build.directory}/dependency</coansysPackageDir>
616
	                            <destination>${project.build.directory}/${primed.dir}</destination>
617
	                        </configuration>
618
	                    </execution>
619
	                </executions>
620
	            </plugin>
621
	            <!--  -->
622
				<!-- end of plugins required by integration test priming -->
623
				<plugin>
624
					<groupId>org.apache.maven.plugins</groupId>
625
					<artifactId>maven-surefire-plugin</artifactId>
626
					<version>2.11</version>
627
					<dependencies>
628
						<dependency>
629
							<groupId>org.apache.maven.surefire</groupId>
630
							<artifactId>surefire-junit47</artifactId>
631
							<version>2.12</version>
632
						</dependency>
633
					</dependencies>
634
					<configuration>
635
						<skip>true</skip>
636
					</configuration>
637
					<executions>
638
						<execution>
639
							<id>unit-test</id>
640
							<phase>test</phase>
641
							<goals>
642
								<goal>test</goal>
643
							</goals>
644
							<configuration>
645
								<skip>false</skip>
646
								<excludedGroups>eu.dnetlib.iis.IntegrationTest</excludedGroups>
647
							</configuration>
648
						</execution>
649
						<execution>
650
							<id>integration-test</id>
651
							<phase>integration-test</phase>
652
							<goals>
653
								<goal>test</goal>
654
							</goals>
655
							<configuration>
656
								<skip>false</skip>
657
								<forkMode>always</forkMode>
658
								<argLine>-Xmx1024m</argLine>
659
								<systemPropertiesVariables>
660
									<hadoop.log.dir>/tmp</hadoop.log.dir>
661
									<oozie.data.dir>${oozie.data.dir}</oozie.data.dir>
662
								</systemPropertiesVariables>
663
								<groups>eu.dnetlib.iis.IntegrationTest</groups>
664
							</configuration>
665
						</execution>
666
					</executions>
667
				</plugin>
668
			</plugins>
669
			</build>
670
			<activation>
671
				<file>
672
					<missing>src/main/resources/parent.marker</missing>
673
				</file>
674
			</activation>
675
		</profile>
676
	</profiles>
677
	
678
	<build>
679
		<plugins>
680
		</plugins>
681
		<pluginManagement>
682
			<plugins>
683
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
684
				<plugin>
685
					<groupId>org.eclipse.m2e</groupId>
686
					<artifactId>lifecycle-mapping</artifactId>
687
					<version>1.0.0</version>
688
					<configuration>
689
						<lifecycleMappingMetadata>
690
							<pluginExecutions>
691
								<pluginExecution>
692
									<pluginExecutionFilter>
693
										<groupId>
694
											org.kuali.maven.plugins
695
										</groupId>
696
										<artifactId>
697
											properties-maven-plugin
698
										</artifactId>
699
										<versionRange>
700
											[1.3.2,)
701
										</versionRange>
702
										<goals>
703
											<goal>
704
												read-project-properties
705
											</goal>
706
											<goal>
707
												write-project-properties
708
											</goal>
709
										</goals>
710
									</pluginExecutionFilter>
711
									<action>
712
										<ignore/>
713
									</action>
714
								</pluginExecution>
715
								<!-- copy-dependency plugin -->
716
			                    <pluginExecution>
717
			                        <pluginExecutionFilter>
718
			                            <groupId>org.apache.maven.plugins</groupId>
719
			                            <artifactId>maven-dependency-plugin</artifactId>
720
			                            <versionRange>[1.0.0,)</versionRange>
721
			                            <goals>
722
			                                <goal>copy-dependencies</goal>
723
			                            </goals>
724
			                        </pluginExecutionFilter>
725
			                        <action>
726
			                            <ignore />
727
			                        </action>
728
                    </pluginExecution>
729
							</pluginExecutions>
730
						</lifecycleMappingMetadata>
731
					</configuration>
732
				</plugin>
733
			</plugins>
734
		</pluginManagement>
735
	</build>
736
	
737
	<repositories>
738
		<!-- dnet4-snapshots is required because all CNR libs are published to this repository from now on, not to dnet-spring-snapshots -->
739
		<!-- 
740
		<repository>
741
			<id>dnet4-snapshots</id>
742
			<name>dnet4-snapshots</name>
743
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet4-snapshots</url>
744
			<layout>default</layout>
745
			<snapshots>
746
				<enabled>true</enabled>
747
			</snapshots>
748
		</repository>
749
		 -->
750

    
751
		<!-- Sandro removed this repository from parent pom, need to define here until moving artifacts from dnet-snapshot to dnet-spring-snapshot repository -->
752
		<repository>
753
			<id>dnet-snapshots</id>
754
			<name>dnet-snapshots</name>
755
			<url>http://maven.research-infrastructures.eu/nexus/content/repositories/dnet-snapshots</url>
756
			<layout>default</layout>
757
			<snapshots>
758
				<enabled>true</enabled>
759
			</snapshots>
760
		</repository>
761

    
762

    
763
	</repositories>
764
</project>
(3-3/3)