blob: 57eb8045609c0a65edbbccb8ca66805c8eb4f6cc [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.onap.clamp</groupId>
6 <artifactId>clds</artifactId>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -07007 <version>1.0.1-SNAPSHOT</version>
ChrisC5e9feb22017-06-21 02:38:57 -07008 <name>ONAP CLAMP</name>
9
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070010 <description>
11 This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code.
12
13 By Default "mvn clean install" command will execute also the unit tests
14 and the integration tests. The integration tests require a docker engine running.
15
16 If you want to skip the intergation test you can by doing:
17 "mvn clean install -DskipITs=true"
18
19 For Spring it's possible to specify the application.properties location
20 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
21
22 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)50b6d182017-08-08 05:51:05 -070023 - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties
24 - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties
25 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
26 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
27
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070028 </description>
29
ChrisC5e9feb22017-06-21 02:38:57 -070030 <properties>
31 <maven.compiler.source>1.8</maven.compiler.source>
32 <maven.compiler.target>1.8</maven.compiler.target>
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070034 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
35
36 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
ChrisC5e9feb22017-06-21 02:38:57 -070037 <sdk.java.common.logging>0.0.3-oss</sdk.java.common.logging>
38 <project.scm.id>git-server</project.scm.id>
ChrisC5e9feb22017-06-21 02:38:57 -070039 <java.version>1.8</java.version>
ChrisC5e9feb22017-06-21 02:38:57 -070040 <csi.logging>6.1.0.6-oss</csi.logging>
41 <sdk.camel.rest>6.2.0.6-oss</sdk.camel.rest>
42 <sdk.camunda.core>6.1.0.3-oss</sdk.camunda.core>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070043
ChrisC5e9feb22017-06-21 02:38:57 -070044 <sonar.language>java</sonar.language>
45 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
47 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
48 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
49 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
50 <sonar.projectVersion>${project.version}</sonar.projectVersion>
51
JulienBe027c3632017-06-22 12:04:24 +020052 <docker.push.registry>localhost:5000</docker.push.registry>
ChrisC5e9feb22017-06-21 02:38:57 -070053 <skip.docker.build>true</skip.docker.build>
54 <skip.docker.tag>true</skip.docker.tag>
55 <skip.docker.push>true</skip.docker.push>
56 <skip.staging.artifacts>false</skip.staging.artifacts>
57
58 <nexusproxy>https://nexus.onap.org</nexusproxy>
59 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
60 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
61 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
62 <sitePath>/content/sites/site/org/onap/clamp/${project.version}</sitePath>
63 </properties>
64
65 <distributionManagement>
66 <repository>
67 <id>ecomp-releases</id>
68 <name>Clamp Release Repository</name>
69 <url>${nexusproxy}/${releaseNexusPath}</url>
70 </repository>
71 <snapshotRepository>
72 <id>ecomp-snapshots</id>
73 <name>Clamp Snapshot Repository</name>
74 <url>${nexusproxy}/${snapshotNexusPath}</url>
75 </snapshotRepository>
76 <site>
77 <id>ecomp-site</id>
78 <url>dav:${nexusproxy}${sitePath}</url>
79 </site>
80 </distributionManagement>
81
82 <repositories>
83 <repository>
84 <id>central</id>
85 <name>Maven 2 repository 2</name>
86 <url>http://repo2.maven.org/maven2/</url>
87 </repository>
88 <repository>
ChrisC5e9feb22017-06-21 02:38:57 -070089 <id>ecomp-releases</id>
90 <name>ONAP Release Repository</name>
91 <url>${nexusproxy}/${releaseNexusPath}</url>
92 </repository>
93 <repository>
94 <id>ecomp-staging</id>
95 <name>ONAP Staging Repository</name>
96 <url>${nexusproxy}/${stagingNexusPath}</url>
97 </repository>
98 <repository>
99 <id>ecomp-snapshots</id>
100 <name>ONAP Snapshot Repository</name>
101 <url>${nexusproxy}/${snapshotNexusPath}</url>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700102 <snapshots>
103 <enabled>true</enabled>
104 </snapshots>
105 <releases>
106 <enabled>false</enabled>
107 </releases>
ChrisC5e9feb22017-06-21 02:38:57 -0700108 </repository>
109 <repository>
110 <id>spring-repo</id>
111 <name>Spring repo</name>
112 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
113 </repository>
114 <repository>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700115 <id>repository.jboss.org-public</id>
116 <name>JBoss.org Maven repository</name>
117 <url>https://repository.jboss.org/nexus/content/groups/public</url>
ChrisC5e9feb22017-06-21 02:38:57 -0700118 </repository>
119 </repositories>
120
ChrisC5e9feb22017-06-21 02:38:57 -0700121 <dependencyManagement>
122 <dependencies>
123 <dependency>
124 <!-- Import dependency management from Spring Boot -->
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-dependencies</artifactId>
127 <version>1.4.1.RELEASE</version>
128 <type>pom</type>
129 <scope>import</scope>
130 </dependency>
131 </dependencies>
132 </dependencyManagement>
133
134 <dependencies>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700135
136 <dependency>
137 <groupId>com.googlecode.json-simple</groupId>
138 <artifactId>json-simple</artifactId>
139 <version>1.1</version>
140 </dependency>
141 <dependency>
142 <groupId>org.apache.commons</groupId>
143 <artifactId>commons-vfs2</artifactId>
144 <version>2.0</version>
145 </dependency>
146
147 <dependency>
148 <groupId>org.springframework.security</groupId>
149 <artifactId>spring-security-test</artifactId>
150
151 <scope>test</scope>
152 </dependency>
153
154
ChrisC5e9feb22017-06-21 02:38:57 -0700155 <!-- Dependencies of parent pom start -->
156 <dependency>
157 <groupId>com.att.ajsc</groupId>
158 <artifactId>sdk-java-common-logging</artifactId>
159 <version>${sdk.java.common.logging}</version>
160 </dependency>
161 <dependency>
162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-starter-tomcat</artifactId>
164 <scope>compile</scope>
165 </dependency>
166 <dependency>
167 <groupId>org.springframework.boot</groupId>
168 <artifactId>spring-boot-starter-actuator</artifactId>
169 </dependency>
170 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-starter-security</artifactId>
173 </dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700174 <dependency>
175 <groupId>org.springframework.boot</groupId>
176 <artifactId>spring-boot-starter-test</artifactId>
177 <scope>test</scope>
178 </dependency>
179 <dependency>
180 <groupId>joda-time</groupId>
181 <artifactId>joda-time</artifactId>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework</groupId>
185 <artifactId>spring-context</artifactId>
186 </dependency>
187 <dependency>
188 <groupId>org.slf4j</groupId>
189 <artifactId>slf4j-api</artifactId>
190 </dependency>
191 <dependency>
192 <groupId>javax.ws.rs</groupId>
193 <artifactId>javax.ws.rs-api</artifactId>
194 <version>2.0</version>
195 </dependency>
196 <dependency>
197 <groupId>org.springframework</groupId>
198 <artifactId>spring-test</artifactId>
199 </dependency>
200 <dependency>
201 <groupId>junit</groupId>
202 <artifactId>junit</artifactId>
203 </dependency>
204 <dependency>
205 <groupId>org.mockito</groupId>
206 <artifactId>mockito-all</artifactId>
207 <version>1.9.5</version>
208 </dependency>
209 <dependency>
210 <groupId>commons-logging</groupId>
211 <artifactId>commons-logging</artifactId>
212 <version>1.1.1</version>
213 </dependency>
214 <dependency>
215 <groupId>org.springframework</groupId>
216 <artifactId>spring-aspects</artifactId>
217 </dependency>
218 <dependency>
219 <groupId>com.fasterxml.jackson.core</groupId>
220 <artifactId>jackson-core</artifactId>
221 </dependency>
222 <dependency>
223 <groupId>com.fasterxml.jackson.core</groupId>
224 <artifactId>jackson-databind</artifactId>
225 </dependency>
226 <dependency>
227 <groupId>org.springframework</groupId>
228 <artifactId>spring-webmvc</artifactId>
229 </dependency>
230 <dependency>
231 <groupId>org.springframework.boot</groupId>
232 <artifactId>spring-boot-starter-web</artifactId>
233 </dependency>
234 <dependency>
235 <groupId>log4j</groupId>
236 <artifactId>log4j</artifactId>
237 <version>1.2.17</version>
238 </dependency>
239 <dependency>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot</artifactId>
242 </dependency>
243 <dependency>
244 <groupId>org.springframework.boot</groupId>
245 <artifactId>spring-boot-autoconfigure</artifactId>
246 </dependency>
247 <dependency>
248 <groupId>javax.transaction</groupId>
249 <artifactId>jta</artifactId>
250 <version>1.1</version>
251 </dependency>
252 <dependency>
253 <groupId>javax.persistence</groupId>
254 <artifactId>persistence-api</artifactId>
255 <version>1.0.2</version>
256 </dependency>
257 <dependency>
258 <groupId>org.hibernate</groupId>
259 <artifactId>hibernate-annotations</artifactId>
260 <version>3.5.6-Final</version>
261 </dependency>
262 <dependency>
263 <groupId>org.apache.geronimo.specs</groupId>
264 <artifactId>geronimo-jpa_2.0_spec</artifactId>
265 <version>1.1</version>
266 </dependency>
267 <dependency>
268 <groupId>dom4j</groupId>
269 <artifactId>dom4j</artifactId>
270 <version>1.6.1</version>
271 </dependency>
272 <!-- Dependencies of parent pom end -->
273 <dependency>
274 <groupId>com.att.ajsc</groupId>
275 <artifactId>sdk-java-camel-rest</artifactId>
276 <version>${sdk.camel.rest}</version>
277 </dependency>
278 <dependency>
279 <groupId>io.swagger</groupId>
280 <artifactId>swagger-core</artifactId>
281 <version>1.5.8</version>
282 </dependency>
283 <dependency>
284 <groupId>io.swagger</groupId>
285 <artifactId>swagger-annotations</artifactId>
286 <version>1.5.8</version>
287 </dependency>
288 <!-- Camunda Core -->
289 <dependency>
290 <groupId>com.att.ajsc</groupId>
291 <artifactId>sdk-java-camunda-core</artifactId>
292 <version>${sdk.camunda.core}</version>
293 </dependency>
294 <!-- Spring Mail -->
295 <dependency>
296 <groupId>org.springframework</groupId>
297 <artifactId>spring-context-support</artifactId>
298 </dependency>
299 <!-- CSI Logging -->
300 <dependency>
301 <groupId>com.att.ajsc</groupId>
302 <artifactId>sdk-java-common-interceptors</artifactId>
303 <version>${csi.logging}</version>
304 <exclusions>
305 <exclusion>
306 <groupId>org.eclipse.jetty.orbit</groupId>
307 <artifactId>javax.servlet</artifactId>
308 </exclusion>
309 <exclusion>
310 <groupId>com.att.ajsc</groupId>
311 <artifactId>ajsc-core</artifactId>
312 </exclusion>
313 </exclusions>
314 </dependency>
315 <!-- CSI Logging End -->
316 <dependency>
Pamela Dragosh17363362017-08-01 11:07:43 -0400317 <groupId>org.onap.policy.engine</groupId>
ChrisC5e9feb22017-06-21 02:38:57 -0700318 <artifactId>PolicyEngineAPI</artifactId>
319 <version>1.1.0-SNAPSHOT</version>
320 <exclusions>
321 <exclusion>
322 <artifactId>log4j</artifactId>
323 <groupId>log4j</groupId>
324 </exclusion>
325 <exclusion>
326 <groupId>org.slf4j</groupId>
327 <artifactId>slf4j-log4j12</artifactId>
328 </exclusion>
329 <exclusion>
330 <artifactId>apache-log4j-extras</artifactId>
331 <groupId>log4j</groupId>
332 </exclusion>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700333 <exclusion>
334 <artifactId>jackson-databind</artifactId>
335 <groupId>com.fasterxml.jackson.core</groupId>
336 </exclusion>
ChrisC5e9feb22017-06-21 02:38:57 -0700337 </exclusions>
338 </dependency>
339 <dependency>
Pamela Dragosh17363362017-08-01 11:07:43 -0400340 <groupId>org.onap.policy.common</groupId>
341 <artifactId>ONAP-Logging</artifactId>
ChrisC5e9feb22017-06-21 02:38:57 -0700342 <version>1.1.0-SNAPSHOT</version>
343 <exclusions>
344 <exclusion>
345 <artifactId>log4j</artifactId>
346 <groupId>log4j</groupId>
347 </exclusion>
348 <exclusion>
349 <groupId>org.slf4j</groupId>
350 <artifactId>slf4j-log4j12</artifactId>
351 </exclusion>
352 <exclusion>
353 <artifactId>apache-log4j-extras</artifactId>
354 <groupId>log4j</groupId>
355 </exclusion>
356 </exclusions>
357 </dependency>
358 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700359 <groupId>org.onap.policy.engine</groupId>
360 <artifactId>ControlloopPolicy</artifactId>
361 <version>1.1.0-SNAPSHOT</version>
362 <exclusions>
363 <exclusion>
364 <artifactId>log4j</artifactId>
365 <groupId>log4j</groupId>
366 </exclusion>
367 <exclusion>
368 <groupId>org.slf4j</groupId>
369 <artifactId>slf4j-log4j12</artifactId>
370 </exclusion>
371 <exclusion>
372 <artifactId>apache-log4j-extras</artifactId>
373 <groupId>log4j</groupId>
374 </exclusion>
375 </exclusions>
376 </dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700377
378 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700379 <groupId>com.fasterxml.jackson.core</groupId>
380 <artifactId>jackson-databind</artifactId>
381 <version>2.6.3</version>
382 </dependency>
383 <dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700384 <groupId>com.fasterxml.jackson.dataformat</groupId>
385 <artifactId>jackson-dataformat-yaml</artifactId>
ChrisC5e9feb22017-06-21 02:38:57 -0700386 <version>2.6.3</version>
387 </dependency>
388 <dependency>
389 <groupId>org.apache.commons</groupId>
390 <artifactId>commons-csv</artifactId>
391 <version>1.3</version>
392 </dependency>
393 <dependency>
394 <groupId>org.jboss.resteasy</groupId>
395 <artifactId>resteasy-client</artifactId>
396 <version>3.0.8.Final</version>
397 </dependency>
398 <dependency>
399 <groupId>com.sun.faces</groupId>
400 <artifactId>jsf-api</artifactId>
401 <version>2.1.7</version>
402 </dependency>
403 <dependency>
404 <groupId>com.sun.faces</groupId>
405 <artifactId>jsf-impl</artifactId>
406 <version>2.1.7</version>
407 </dependency>
408
409 </dependencies>
410
411 <build>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700412 <finalName>clamp</finalName>
413
ChrisC5e9feb22017-06-21 02:38:57 -0700414 <testResources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700415 <testResource>
416 <directory>src/test/resources</directory>
417 <includes>
418 <include>**/*</include>
419 </includes>
420 <filtering>true</filtering>
421 </testResource>
ChrisC5e9feb22017-06-21 02:38:57 -0700422 </testResources>
423 <resources>
424 <resource>
425 <directory>src/main/resources</directory>
426 <filtering>true</filtering>
427 </resource>
428 <resource>
ChrisC5e9feb22017-06-21 02:38:57 -0700429 <directory>src/main/docker</directory>
430 <includes>
431 <include>**/*</include>
432 </includes>
433 <filtering>true</filtering>
434 </resource>
435 <resource>
436 <directory>src/main/doxygen</directory>
437 <includes>
438 <include>**/*</include>
439 </includes>
440 <filtering>true</filtering>
441 </resource>
442 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700443
444
445
ChrisC5e9feb22017-06-21 02:38:57 -0700446 <plugins>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700447 <plugin>
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-jar-plugin</artifactId>
450 <version>3.0.2</version>
451 <executions>
452 <execution>
453 <id>jar-with-only-classes</id>
454 <phase>package</phase>
455 <goals>
456 <goal>jar</goal>
457 </goals>
458 <configuration>
459 <classifier>classes</classifier>
460 <includes>
461 <include>org/**</include>
462 </includes>
463 </configuration>
464 </execution>
465 </executions>
466 </plugin>
467 <plugin>
468 <groupId>com.github.kongchen</groupId>
469 <artifactId>swagger-maven-plugin</artifactId>
470 <version>3.1.5</version>
471 <executions>
472 <execution>
473 <phase>compile</phase>
474 <goals>
475 <goal>generate</goal>
476 </goals>
477 <configuration>
478 <apiSources>
479 <apiSource>
480 <locations>
481 <location>org.onap.clamp.clds.service</location>
482 </locations>
483 <basePath>/</basePath>
484 <info>
485 <title>${project.artifactId} Service</title>
486 <version>${project.version}</version>
487 </info>
488 <swaggerDirectory>${project.build.directory}/classes/META-INF/resources/icd</swaggerDirectory>
489 </apiSource>
490 </apiSources>
491 </configuration>
492 </execution>
493 </executions>
494 </plugin>
495 <plugin>
496 <groupId>org.codehaus.mojo</groupId>
497 <artifactId>build-helper-maven-plugin</artifactId>
498 <version>3.0.0</version>
499 <executions>
500 <execution>
501 <goals>
502 <goal>attach-artifact</goal>
503 </goals>
504 <phase>package</phase>
505 <configuration>
506 <artifacts>
507 <artifact>
508 <file>${project.build.directory}/clamp-classes.jar</file>
509 <type>jar</type>
510 <classifier>classes</classifier>
511 </artifact>
512 </artifacts>
513 </configuration>
514 </execution>
515 </executions>
516 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700517
518 <plugin>
519 <groupId>org.springframework.boot</groupId>
520 <artifactId>spring-boot-maven-plugin</artifactId>
521 <version>1.5.3.RELEASE</version>
522 <executions>
523 <execution>
524 <goals>
525 <goal>repackage</goal>
526 </goals>
527 <phase>package</phase>
528 </execution>
529 </executions>
530 </plugin>
531 <plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700532 <groupId>org.apache.maven.plugins</groupId>
533 <artifactId>maven-gpg-plugin</artifactId>
534 <version>1.5</version>
535 <configuration>
536 <skip>true</skip>
537 </configuration>
538 <executions>
539 <execution>
540 <id>sign-artifacts</id>
541 <phase>verify</phase>
542 <goals>
543 <goal>sign</goal>
544 </goals>
545 </execution>
546 </executions>
547 </plugin>
548 <plugin>
549 <groupId>org.sonatype.plugins</groupId>
550 <artifactId>nexus-staging-maven-plugin</artifactId>
551 <version>1.6.7</version>
552 <extensions>true</extensions>
553 <configuration>
554 <serverId>ossrhajsc</serverId>
555 <nexusUrl>https://oss.sonatype.org/</nexusUrl>
556 <autoReleaseAfterClose>true</autoReleaseAfterClose>
557 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
558 </configuration>
559 </plugin>
560 <plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700561 <groupId>com.spotify</groupId>
562 <artifactId>docker-maven-plugin</artifactId>
563 <version>0.4.11</version>
564 <configuration>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700565 <imageName>onap/clamp</imageName>
ChrisC5e9feb22017-06-21 02:38:57 -0700566 <dockerDirectory>src/main/docker</dockerDirectory>
567 <serverId>docker-hub</serverId>
568 <imageTags>
569 <imageTag>${project.version}</imageTag>
570 <imageTag>latest</imageTag>
571 </imageTags>
572 <forceTags>true</forceTags>
573 <resources>
574 <resource>
575 <targetPath>/</targetPath>
576 <directory>${project.build.directory}</directory>
577 <include>${project.build.finalName}.jar</include>
578 </resource>
579 <resource>
580 <targetPath>/</targetPath>
581 <directory>${project.build.directory}</directory>
582 <include>etc/config/**</include>
583 </resource>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700584 <resource>
585 <targetPath>/</targetPath>
586 <directory>${project.build.directory}</directory>
587 <include>etc/keystore/**</include>
588 </resource>
ChrisC5e9feb22017-06-21 02:38:57 -0700589 </resources>
590 </configuration>
591 <executions>
592 <execution>
593 <id>build-image</id>
594 <phase>package</phase>
595 <goals>
596 <goal>build</goal>
597 </goals>
598 <configuration>
599 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
600 <buildArgs>
601 <http_proxy>${env.HTTP_PROXY}</http_proxy>
602 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
603 </buildArgs>
604 </configuration>
605 </execution>
606 <execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700607 <id>push-image</id>
608 <phase>deploy</phase>
609 <goals>
610 <goal>push</goal>
611 </goals>
612 <configuration>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700613 <imageName>onap/clamp</imageName>
ChrisC5e9feb22017-06-21 02:38:57 -0700614 <skipDockerPush>${skip.docker.push}</skipDockerPush>
615 </configuration>
616 </execution>
617 </executions>
618 </plugin>
619 <plugin>
620 <groupId>org.apache.maven.plugins</groupId>
621 <artifactId>maven-surefire-plugin</artifactId>
622 <version>2.19.1</version>
623 <configuration>
624 <forkCount>1</forkCount>
625 <reuseForks>false</reuseForks>
626 </configuration>
627 </plugin>
628
629 <plugin>
630 <groupId>org.apache.maven.plugins</groupId>
631 <artifactId>maven-failsafe-plugin</artifactId>
632 <version>2.16</version>
633
634 <executions>
635 <execution>
636 <goals>
637 <goal>integration-test</goal>
638 <goal>verify</goal>
639 </goals>
640 <configuration>
641 <forkCount>1</forkCount>
642 <reuseForks>false</reuseForks>
643 </configuration>
644 </execution>
645 </executions>
646
647 </plugin>
648 <plugin>
649 <groupId>io.fabric8</groupId>
650 <artifactId>docker-maven-plugin</artifactId>
651 <version>0.16.5</version>
652 <configuration>
653 <verbose>true</verbose>
654 <apiVersion>1.23</apiVersion>
655 <images>
656 <image>
657 <name>mariadb:10.1.11</name>
658 <alias>mariadb</alias>
659 <run>
660 <env>
661 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
662 </env>
663 <hostname>mariadb</hostname>
664 <volumes>
665 <bind>
666 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
667 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
668 </bind>
669 </volumes>
670 <wait>
671 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Anaƫl Closson359b4ef2017-07-07 11:17:50 +0200672 <time>300000</time>
ChrisC5e9feb22017-06-21 02:38:57 -0700673 </wait>
674 <ports>
675 <port>${docker.mariadb.port.host}:3306</port>
676 </ports>
677 </run>
678 </image>
679 </images>
680 </configuration>
681
682 <executions>
683 <execution>
684 <id>mariadb-start-for-it</id>
685 <phase>pre-integration-test</phase>
686 <goals>
687 <goal>start</goal>
688 </goals>
689 <configuration>
690 <skip>${skipITs}</skip>
691 </configuration>
692 </execution>
693 <execution>
694 <id>mariadb-stop-for-it</id>
695 <phase>post-integration-test</phase>
696 <goals>
697 <goal>stop</goal>
698 </goals>
699 <configuration>
700 <skip>${skipITs}</skip>
701 </configuration>
702 </execution>
703 </executions>
704 </plugin>
705
706 <plugin>
707 <groupId>org.jacoco</groupId>
708 <artifactId>jacoco-maven-plugin</artifactId>
709 <version>0.7.7.201606060606</version>
710 <configuration>
711 <dumpOnExit>true</dumpOnExit>
712 <includes>
713 <include>org.onap.clamp.*</include>
714 </includes>
715 </configuration>
716 <executions>
717 <execution>
718 <id>jacoco-unit-tests</id>
719 <goals>
720 <goal>prepare-agent</goal>
721 </goals>
722 <configuration>
723 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
724 <!-- <append>true</append> -->
725 </configuration>
726 </execution>
727 <execution>
728 <id>jacoco-integration-tests</id>
729 <phase>pre-integration-test</phase>
730 <goals>
731 <goal>prepare-agent</goal>
732 </goals>
733 <configuration>
734 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
735 <!-- <append>true</append> -->
736 </configuration>
737 </execution>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700738 <execution>
739 <goals>
740 <goal>merge</goal>
741 </goals>
742 <phase>post-integration-test</phase>
743 <configuration>
744 <fileSets>
745 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
746 <directory>${project.build.directory}/coverage-reports</directory>
747 <includes>
748 <include>*.exec</include>
749 </includes>
750 </fileSet>
751 </fileSets>
752 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
753 </configuration>
754 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700755 </executions>
756 </plugin>
757
ChrisC5e9feb22017-06-21 02:38:57 -0700758 <!-- This plugin will be useful when we will have multi-modules project -->
759 <plugin>
760 <groupId>org.codehaus.mojo</groupId>
761 <artifactId>versions-maven-plugin</artifactId>
762 <version>1.3.1</version>
763 </plugin>
764 </plugins>
765 </build>
766 <profiles>
767 <profile>
768 <id>docker</id>
769 <properties>
770 <skip.staging.artifacts>true</skip.staging.artifacts>
771 <skip.docker.build>false</skip.docker.build>
772 </properties>
773 </profile>
774 </profiles>
775</project>