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