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
	<modelVersion>4.0.0</modelVersion>
9
	<artifactId>icm-iis-parent-container</artifactId>
10
	<packaging>pom</packaging>
11

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

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

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

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

    
760

    
761
	</repositories>
762
</project>
(3-3/3)