blob: c1ec0e2f9e260dbaed47cd9cf0c50a07176049d1 [file] [log] [blame]
ChrisC5e9feb22017-06-21 02:38:57 -07001<?xml version="1.0" encoding="UTF-8"?>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07002<!--
3 ============LICENSE_START=======================================================
4 ONAP CLAMP
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights
7 reserved.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
ChrisC6c9759e2017-08-30 01:13:58 -070012
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070013 http://www.apache.org/licenses/LICENSE-2.0
ChrisC6c9759e2017-08-30 01:13:58 -070014
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070015 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END============================================
21 ===================================================================
22 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23-->
24
ChrisC5e9feb22017-06-21 02:38:57 -070025<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.clamp</groupId>
29 <artifactId>clds</artifactId>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070030 <version>1.0.1-SNAPSHOT</version>
ChrisC5e9feb22017-06-21 02:38:57 -070031 <name>ONAP CLAMP</name>
32
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070033 <parent>
Determe, Sebastien (sd378r)a32aaed2017-08-09 04:43:29 -070034 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
36 <version>1.0.0-SNAPSHOT</version>
37 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070038
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070039 <description>
40 This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code.
41
42 By Default "mvn clean install" command will execute also the unit tests
43 and the integration tests. The integration tests require a docker engine running.
44
45 If you want to skip the intergation test you can by doing:
46 "mvn clean install -DskipITs=true"
47
48 For Spring it's possible to specify the application.properties location
49 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
50
51 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)50b6d182017-08-08 05:51:05 -070052 - org.onap.clamp.config.files.cldsReference=classpath:/clds/clds-reference.properties
53 - org.onap.clamp.config.files.cldsPolicyConfig=classpath:/clds/clds-policy-config.properties
54 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
55 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisC6c9759e2017-08-30 01:13:58 -070056
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070057 </description>
58
ChrisC5e9feb22017-06-21 02:38:57 -070059 <properties>
60 <maven.compiler.source>1.8</maven.compiler.source>
61 <maven.compiler.target>1.8</maven.compiler.target>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070063 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
64
65 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
ChrisC5e9feb22017-06-21 02:38:57 -070066 <sdk.java.common.logging>0.0.3-oss</sdk.java.common.logging>
67 <project.scm.id>git-server</project.scm.id>
ChrisC5e9feb22017-06-21 02:38:57 -070068 <java.version>1.8</java.version>
ChrisC5e9feb22017-06-21 02:38:57 -070069 <csi.logging>6.1.0.6-oss</csi.logging>
70 <sdk.camel.rest>6.2.0.6-oss</sdk.camel.rest>
71 <sdk.camunda.core>6.1.0.3-oss</sdk.camunda.core>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070072
ChrisC5e9feb22017-06-21 02:38:57 -070073 <sonar.language>java</sonar.language>
74 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
75 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
76 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
77 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
78 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
79 <sonar.projectVersion>${project.version}</sonar.projectVersion>
80
JulienBe027c3632017-06-22 12:04:24 +020081 <docker.push.registry>localhost:5000</docker.push.registry>
ChrisC5e9feb22017-06-21 02:38:57 -070082 <skip.docker.build>true</skip.docker.build>
ChrisC5e9feb22017-06-21 02:38:57 -070083 <skip.docker.push>true</skip.docker.push>
84 <skip.staging.artifacts>false</skip.staging.artifacts>
ChrisC5e9feb22017-06-21 02:38:57 -070085 </properties>
86
87 <distributionManagement>
88 <repository>
89 <id>ecomp-releases</id>
90 <name>Clamp Release Repository</name>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +020091 <url>https://nexus.onap.org/content/repositories/releases/</url>
ChrisC5e9feb22017-06-21 02:38:57 -070092 </repository>
93 <snapshotRepository>
94 <id>ecomp-snapshots</id>
95 <name>Clamp Snapshot Repository</name>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +020096 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
ChrisC5e9feb22017-06-21 02:38:57 -070097 </snapshotRepository>
98 <site>
99 <id>ecomp-site</id>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +0200100 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
ChrisC5e9feb22017-06-21 02:38:57 -0700101 </site>
102 </distributionManagement>
103
104 <repositories>
105 <repository>
106 <id>central</id>
107 <name>Maven 2 repository 2</name>
108 <url>http://repo2.maven.org/maven2/</url>
109 </repository>
110 <repository>
ChrisC5e9feb22017-06-21 02:38:57 -0700111 <id>ecomp-releases</id>
112 <name>ONAP Release Repository</name>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +0200113 <url>https://nexus.onap.org/content/repositories/releases/</url>
ChrisC5e9feb22017-06-21 02:38:57 -0700114 </repository>
115 <repository>
116 <id>ecomp-staging</id>
117 <name>ONAP Staging Repository</name>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +0200118 <url>https://nexus.onap.org/content/repositories/staging/</url>
ChrisC5e9feb22017-06-21 02:38:57 -0700119 </repository>
120 <repository>
121 <id>ecomp-snapshots</id>
122 <name>ONAP Snapshot Repository</name>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +0200123 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700124 <snapshots>
125 <enabled>true</enabled>
126 </snapshots>
127 <releases>
128 <enabled>false</enabled>
129 </releases>
ChrisC5e9feb22017-06-21 02:38:57 -0700130 </repository>
131 <repository>
132 <id>spring-repo</id>
133 <name>Spring repo</name>
134 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
135 </repository>
136 <repository>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700137 <id>repository.jboss.org-public</id>
138 <name>JBoss.org Maven repository</name>
139 <url>https://repository.jboss.org/nexus/content/groups/public</url>
ChrisC5e9feb22017-06-21 02:38:57 -0700140 </repository>
141 </repositories>
142
ChrisC5e9feb22017-06-21 02:38:57 -0700143 <dependencyManagement>
144 <dependencies>
145 <dependency>
146 <!-- Import dependency management from Spring Boot -->
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-dependencies</artifactId>
149 <version>1.4.1.RELEASE</version>
150 <type>pom</type>
151 <scope>import</scope>
152 </dependency>
153 </dependencies>
154 </dependencyManagement>
155
156 <dependencies>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700157
158 <dependency>
159 <groupId>com.googlecode.json-simple</groupId>
160 <artifactId>json-simple</artifactId>
161 <version>1.1</version>
162 </dependency>
163 <dependency>
164 <groupId>org.apache.commons</groupId>
165 <artifactId>commons-vfs2</artifactId>
166 <version>2.0</version>
167 </dependency>
168
169 <dependency>
170 <groupId>org.springframework.security</groupId>
171 <artifactId>spring-security-test</artifactId>
172
173 <scope>test</scope>
174 </dependency>
175
176
ChrisC5e9feb22017-06-21 02:38:57 -0700177 <!-- Dependencies of parent pom start -->
178 <dependency>
179 <groupId>com.att.ajsc</groupId>
180 <artifactId>sdk-java-common-logging</artifactId>
181 <version>${sdk.java.common.logging}</version>
182 </dependency>
183 <dependency>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-tomcat</artifactId>
186 <scope>compile</scope>
187 </dependency>
188 <dependency>
189 <groupId>org.springframework.boot</groupId>
190 <artifactId>spring-boot-starter-actuator</artifactId>
191 </dependency>
192 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700193 <groupId>org.springframework.boot</groupId>
194 <artifactId>spring-boot-starter-security</artifactId>
195 </dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700196 <dependency>
197 <groupId>org.springframework.boot</groupId>
198 <artifactId>spring-boot-starter-test</artifactId>
199 <scope>test</scope>
200 </dependency>
201 <dependency>
202 <groupId>joda-time</groupId>
203 <artifactId>joda-time</artifactId>
204 </dependency>
205 <dependency>
206 <groupId>org.springframework</groupId>
207 <artifactId>spring-context</artifactId>
208 </dependency>
209 <dependency>
210 <groupId>org.slf4j</groupId>
211 <artifactId>slf4j-api</artifactId>
212 </dependency>
213 <dependency>
214 <groupId>javax.ws.rs</groupId>
215 <artifactId>javax.ws.rs-api</artifactId>
216 <version>2.0</version>
217 </dependency>
218 <dependency>
219 <groupId>org.springframework</groupId>
220 <artifactId>spring-test</artifactId>
221 </dependency>
222 <dependency>
223 <groupId>junit</groupId>
224 <artifactId>junit</artifactId>
225 </dependency>
226 <dependency>
227 <groupId>org.mockito</groupId>
228 <artifactId>mockito-all</artifactId>
229 <version>1.9.5</version>
230 </dependency>
231 <dependency>
232 <groupId>commons-logging</groupId>
233 <artifactId>commons-logging</artifactId>
234 <version>1.1.1</version>
235 </dependency>
236 <dependency>
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-aspects</artifactId>
239 </dependency>
240 <dependency>
241 <groupId>com.fasterxml.jackson.core</groupId>
242 <artifactId>jackson-core</artifactId>
243 </dependency>
244 <dependency>
245 <groupId>com.fasterxml.jackson.core</groupId>
246 <artifactId>jackson-databind</artifactId>
247 </dependency>
248 <dependency>
249 <groupId>org.springframework</groupId>
250 <artifactId>spring-webmvc</artifactId>
251 </dependency>
252 <dependency>
253 <groupId>org.springframework.boot</groupId>
254 <artifactId>spring-boot-starter-web</artifactId>
255 </dependency>
256 <dependency>
257 <groupId>log4j</groupId>
258 <artifactId>log4j</artifactId>
259 <version>1.2.17</version>
260 </dependency>
261 <dependency>
262 <groupId>org.springframework.boot</groupId>
263 <artifactId>spring-boot</artifactId>
264 </dependency>
265 <dependency>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-autoconfigure</artifactId>
268 </dependency>
269 <dependency>
270 <groupId>javax.transaction</groupId>
271 <artifactId>jta</artifactId>
272 <version>1.1</version>
273 </dependency>
274 <dependency>
275 <groupId>javax.persistence</groupId>
276 <artifactId>persistence-api</artifactId>
277 <version>1.0.2</version>
278 </dependency>
279 <dependency>
280 <groupId>org.hibernate</groupId>
281 <artifactId>hibernate-annotations</artifactId>
282 <version>3.5.6-Final</version>
283 </dependency>
284 <dependency>
285 <groupId>org.apache.geronimo.specs</groupId>
286 <artifactId>geronimo-jpa_2.0_spec</artifactId>
287 <version>1.1</version>
288 </dependency>
289 <dependency>
290 <groupId>dom4j</groupId>
291 <artifactId>dom4j</artifactId>
292 <version>1.6.1</version>
293 </dependency>
294 <!-- Dependencies of parent pom end -->
295 <dependency>
296 <groupId>com.att.ajsc</groupId>
297 <artifactId>sdk-java-camel-rest</artifactId>
298 <version>${sdk.camel.rest}</version>
299 </dependency>
300 <dependency>
301 <groupId>io.swagger</groupId>
302 <artifactId>swagger-core</artifactId>
303 <version>1.5.8</version>
304 </dependency>
305 <dependency>
306 <groupId>io.swagger</groupId>
307 <artifactId>swagger-annotations</artifactId>
308 <version>1.5.8</version>
309 </dependency>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700310
ChrisC5e9feb22017-06-21 02:38:57 -0700311 <!-- Camunda Core -->
312 <dependency>
313 <groupId>com.att.ajsc</groupId>
314 <artifactId>sdk-java-camunda-core</artifactId>
315 <version>${sdk.camunda.core}</version>
316 </dependency>
317 <!-- Spring Mail -->
318 <dependency>
319 <groupId>org.springframework</groupId>
320 <artifactId>spring-context-support</artifactId>
321 </dependency>
322 <!-- CSI Logging -->
323 <dependency>
324 <groupId>com.att.ajsc</groupId>
325 <artifactId>sdk-java-common-interceptors</artifactId>
326 <version>${csi.logging}</version>
327 <exclusions>
328 <exclusion>
329 <groupId>org.eclipse.jetty.orbit</groupId>
330 <artifactId>javax.servlet</artifactId>
331 </exclusion>
332 <exclusion>
333 <groupId>com.att.ajsc</groupId>
334 <artifactId>ajsc-core</artifactId>
335 </exclusion>
336 </exclusions>
337 </dependency>
338 <!-- CSI Logging End -->
339 <dependency>
Pamela Dragosh17363362017-08-01 11:07:43 -0400340 <groupId>org.onap.policy.engine</groupId>
ChrisC5e9feb22017-06-21 02:38:57 -0700341 <artifactId>PolicyEngineAPI</artifactId>
342 <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>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700356 <exclusion>
357 <artifactId>jackson-databind</artifactId>
358 <groupId>com.fasterxml.jackson.core</groupId>
359 </exclusion>
ChrisC5e9feb22017-06-21 02:38:57 -0700360 </exclusions>
361 </dependency>
362 <dependency>
Pamela Dragosh17363362017-08-01 11:07:43 -0400363 <groupId>org.onap.policy.common</groupId>
364 <artifactId>ONAP-Logging</artifactId>
ChrisC5e9feb22017-06-21 02:38:57 -0700365 <version>1.1.0-SNAPSHOT</version>
366 <exclusions>
367 <exclusion>
368 <artifactId>log4j</artifactId>
369 <groupId>log4j</groupId>
370 </exclusion>
371 <exclusion>
372 <groupId>org.slf4j</groupId>
373 <artifactId>slf4j-log4j12</artifactId>
374 </exclusion>
375 <exclusion>
376 <artifactId>apache-log4j-extras</artifactId>
377 <groupId>log4j</groupId>
378 </exclusion>
379 </exclusions>
380 </dependency>
381 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700382 <groupId>org.onap.policy.engine</groupId>
383 <artifactId>ControlloopPolicy</artifactId>
384 <version>1.1.0-SNAPSHOT</version>
385 <exclusions>
386 <exclusion>
387 <artifactId>log4j</artifactId>
388 <groupId>log4j</groupId>
389 </exclusion>
390 <exclusion>
391 <groupId>org.slf4j</groupId>
392 <artifactId>slf4j-log4j12</artifactId>
393 </exclusion>
394 <exclusion>
395 <artifactId>apache-log4j-extras</artifactId>
396 <groupId>log4j</groupId>
397 </exclusion>
398 </exclusions>
399 </dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700400 <dependency>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700401 <groupId>com.fasterxml.jackson.core</groupId>
402 <artifactId>jackson-databind</artifactId>
403 <version>2.6.3</version>
404 </dependency>
405 <dependency>
ChrisC5e9feb22017-06-21 02:38:57 -0700406 <groupId>com.fasterxml.jackson.dataformat</groupId>
407 <artifactId>jackson-dataformat-yaml</artifactId>
ChrisC5e9feb22017-06-21 02:38:57 -0700408 <version>2.6.3</version>
409 </dependency>
410 <dependency>
411 <groupId>org.apache.commons</groupId>
412 <artifactId>commons-csv</artifactId>
413 <version>1.3</version>
414 </dependency>
415 <dependency>
416 <groupId>org.jboss.resteasy</groupId>
417 <artifactId>resteasy-client</artifactId>
418 <version>3.0.8.Final</version>
419 </dependency>
420 <dependency>
421 <groupId>com.sun.faces</groupId>
422 <artifactId>jsf-api</artifactId>
423 <version>2.1.7</version>
424 </dependency>
425 <dependency>
426 <groupId>com.sun.faces</groupId>
427 <artifactId>jsf-impl</artifactId>
428 <version>2.1.7</version>
429 </dependency>
430
431 </dependencies>
432
433 <build>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700434 <finalName>clamp</finalName>
435
ChrisC5e9feb22017-06-21 02:38:57 -0700436 <testResources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700437 <testResource>
438 <directory>src/test/resources</directory>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700439 <excludes>
440 <exclude>**/*.jks</exclude>
441 </excludes>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700442 <filtering>true</filtering>
443 </testResource>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700444 <testResource>
445 <directory>src/test/resources/https</directory>
446 <includes>
447 <include>**.jks</include>
448 </includes>
449 <filtering>false</filtering>
450 <targetPath>https</targetPath>
451 </testResource>
ChrisC5e9feb22017-06-21 02:38:57 -0700452 </testResources>
453 <resources>
454 <resource>
455 <directory>src/main/resources</directory>
456 <filtering>true</filtering>
457 </resource>
458 <resource>
ChrisC5e9feb22017-06-21 02:38:57 -0700459 <directory>src/main/docker</directory>
460 <includes>
461 <include>**/*</include>
462 </includes>
463 <filtering>true</filtering>
464 </resource>
ChrisC5e9feb22017-06-21 02:38:57 -0700465 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700466
ChrisC5e9feb22017-06-21 02:38:57 -0700467 <plugins>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700468 <plugin>
469 <groupId>org.apache.maven.plugins</groupId>
470 <artifactId>maven-jar-plugin</artifactId>
471 <version>3.0.2</version>
472 <executions>
473 <execution>
474 <id>jar-with-only-classes</id>
475 <phase>package</phase>
476 <goals>
477 <goal>jar</goal>
478 </goals>
479 <configuration>
480 <classifier>classes</classifier>
481 <includes>
482 <include>org/**</include>
483 </includes>
484 </configuration>
485 </execution>
486 </executions>
487 </plugin>
488 <plugin>
489 <groupId>com.github.kongchen</groupId>
490 <artifactId>swagger-maven-plugin</artifactId>
491 <version>3.1.5</version>
492 <executions>
493 <execution>
494 <phase>compile</phase>
495 <goals>
496 <goal>generate</goal>
497 </goals>
498 <configuration>
499 <apiSources>
500 <apiSource>
501 <locations>
502 <location>org.onap.clamp.clds.service</location>
503 </locations>
504 <basePath>/</basePath>
505 <info>
506 <title>${project.artifactId} Service</title>
507 <version>${project.version}</version>
508 </info>
509 <swaggerDirectory>${project.build.directory}/classes/META-INF/resources/icd</swaggerDirectory>
510 </apiSource>
511 </apiSources>
512 </configuration>
513 </execution>
514 </executions>
515 </plugin>
516 <plugin>
517 <groupId>org.codehaus.mojo</groupId>
518 <artifactId>build-helper-maven-plugin</artifactId>
519 <version>3.0.0</version>
520 <executions>
521 <execution>
522 <goals>
523 <goal>attach-artifact</goal>
524 </goals>
525 <phase>package</phase>
526 <configuration>
527 <artifacts>
528 <artifact>
529 <file>${project.build.directory}/clamp-classes.jar</file>
530 <type>jar</type>
531 <classifier>classes</classifier>
532 </artifact>
533 </artifacts>
534 </configuration>
535 </execution>
536 </executions>
537 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700538
539 <plugin>
540 <groupId>org.springframework.boot</groupId>
541 <artifactId>spring-boot-maven-plugin</artifactId>
542 <version>1.5.3.RELEASE</version>
543 <executions>
544 <execution>
545 <goals>
546 <goal>repackage</goal>
547 </goals>
548 <phase>package</phase>
549 </execution>
550 </executions>
551 </plugin>
552 <plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-gpg-plugin</artifactId>
555 <version>1.5</version>
556 <configuration>
557 <skip>true</skip>
558 </configuration>
559 <executions>
560 <execution>
561 <id>sign-artifacts</id>
562 <phase>verify</phase>
563 <goals>
564 <goal>sign</goal>
565 </goals>
566 </execution>
567 </executions>
568 </plugin>
569 <plugin>
570 <groupId>org.sonatype.plugins</groupId>
571 <artifactId>nexus-staging-maven-plugin</artifactId>
572 <version>1.6.7</version>
573 <extensions>true</extensions>
574 <configuration>
Determe, Sebastien (sd378r)c9058172017-08-31 13:43:36 +0200575 <nexusUrl>https://nexus.onap.org</nexusUrl>
Determe, Sebastien (sd378r)a32aaed2017-08-09 04:43:29 -0700576 <stagingProfileId>176c31dfe190a</stagingProfileId>
577 <serverId>ecomp-staging</serverId>
ChrisC5e9feb22017-06-21 02:38:57 -0700578 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
579 </configuration>
580 </plugin>
581 <plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700582 <groupId>com.spotify</groupId>
583 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)3c529b92017-08-09 06:02:55 -0700584 <version>1.0.0</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700585 <configuration>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700586 <imageName>onap/clamp</imageName>
ChrisC5e9feb22017-06-21 02:38:57 -0700587 <dockerDirectory>src/main/docker</dockerDirectory>
588 <serverId>docker-hub</serverId>
589 <imageTags>
590 <imageTag>${project.version}</imageTag>
591 <imageTag>latest</imageTag>
592 </imageTags>
593 <forceTags>true</forceTags>
594 <resources>
595 <resource>
596 <targetPath>/</targetPath>
597 <directory>${project.build.directory}</directory>
598 <include>${project.build.finalName}.jar</include>
599 </resource>
600 <resource>
601 <targetPath>/</targetPath>
602 <directory>${project.build.directory}</directory>
603 <include>etc/config/**</include>
604 </resource>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700605 <resource>
606 <targetPath>/</targetPath>
607 <directory>${project.build.directory}</directory>
608 <include>etc/keystore/**</include>
609 </resource>
ChrisC5e9feb22017-06-21 02:38:57 -0700610 </resources>
611 </configuration>
612 <executions>
613 <execution>
614 <id>build-image</id>
615 <phase>package</phase>
616 <goals>
617 <goal>build</goal>
618 </goals>
619 <configuration>
620 <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
621 <buildArgs>
622 <http_proxy>${env.HTTP_PROXY}</http_proxy>
623 <https_proxy>${env.HTTPS_PROXY}</https_proxy>
624 </buildArgs>
625 </configuration>
626 </execution>
627 <execution>
Determe, Sebastien (sd378r)a32aaed2017-08-09 04:43:29 -0700628 <id>tag-image</id>
629 <phase>package</phase>
630 <goals>
631 <goal>tag</goal>
632 </goals>
633 <configuration>
634 <image>onap/clamp</image>
635 <newName>${docker.push.registry}/onap/clamp</newName>
Determe, Sebastien (sd378r)d604f2e2017-08-09 05:53:56 -0700636 <skipDockerTag>${skip.docker.push}</skipDockerTag>
Determe, Sebastien (sd378r)a32aaed2017-08-09 04:43:29 -0700637 </configuration>
638 </execution>
Determe, Sebastien (sd378r)29ed4a92017-08-09 04:12:39 -0700639 <execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700640 <id>push-image</id>
641 <phase>deploy</phase>
642 <goals>
643 <goal>push</goal>
644 </goals>
645 <configuration>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700646 <imageName>${docker.push.registry}/onap/clamp</imageName>
ChrisC5e9feb22017-06-21 02:38:57 -0700647 <skipDockerPush>${skip.docker.push}</skipDockerPush>
648 </configuration>
649 </execution>
650 </executions>
651 </plugin>
652 <plugin>
653 <groupId>org.apache.maven.plugins</groupId>
654 <artifactId>maven-surefire-plugin</artifactId>
655 <version>2.19.1</version>
656 <configuration>
657 <forkCount>1</forkCount>
658 <reuseForks>false</reuseForks>
659 </configuration>
660 </plugin>
661
662 <plugin>
663 <groupId>org.apache.maven.plugins</groupId>
664 <artifactId>maven-failsafe-plugin</artifactId>
665 <version>2.16</version>
666
667 <executions>
668 <execution>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700669 <id>integration-tests</id>
ChrisC5e9feb22017-06-21 02:38:57 -0700670 <goals>
671 <goal>integration-test</goal>
672 <goal>verify</goal>
673 </goals>
674 <configuration>
675 <forkCount>1</forkCount>
676 <reuseForks>false</reuseForks>
677 </configuration>
678 </execution>
679 </executions>
680
681 </plugin>
682 <plugin>
683 <groupId>io.fabric8</groupId>
684 <artifactId>docker-maven-plugin</artifactId>
685 <version>0.16.5</version>
686 <configuration>
687 <verbose>true</verbose>
688 <apiVersion>1.23</apiVersion>
689 <images>
690 <image>
691 <name>mariadb:10.1.11</name>
692 <alias>mariadb</alias>
693 <run>
694 <env>
695 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
696 </env>
697 <hostname>mariadb</hostname>
698 <volumes>
699 <bind>
700 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
701 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
702 </bind>
703 </volumes>
704 <wait>
705 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
ChrisC6c9759e2017-08-30 01:13:58 -0700706 <time>600000</time>
ChrisC5e9feb22017-06-21 02:38:57 -0700707 </wait>
708 <ports>
709 <port>${docker.mariadb.port.host}:3306</port>
710 </ports>
711 </run>
712 </image>
713 </images>
714 </configuration>
715
716 <executions>
717 <execution>
718 <id>mariadb-start-for-it</id>
719 <phase>pre-integration-test</phase>
720 <goals>
721 <goal>start</goal>
722 </goals>
723 <configuration>
724 <skip>${skipITs}</skip>
725 </configuration>
726 </execution>
727 <execution>
728 <id>mariadb-stop-for-it</id>
729 <phase>post-integration-test</phase>
730 <goals>
731 <goal>stop</goal>
732 </goals>
733 <configuration>
734 <skip>${skipITs}</skip>
735 </configuration>
736 </execution>
737 </executions>
738 </plugin>
739
740 <plugin>
741 <groupId>org.jacoco</groupId>
742 <artifactId>jacoco-maven-plugin</artifactId>
743 <version>0.7.7.201606060606</version>
744 <configuration>
745 <dumpOnExit>true</dumpOnExit>
746 <includes>
747 <include>org.onap.clamp.*</include>
748 </includes>
749 </configuration>
750 <executions>
751 <execution>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700752 <id>pre-unit-test</id>
ChrisC5e9feb22017-06-21 02:38:57 -0700753 <goals>
754 <goal>prepare-agent</goal>
755 </goals>
756 <configuration>
757 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
758 <!-- <append>true</append> -->
759 </configuration>
760 </execution>
761 <execution>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700762 <id>pre-integration-test</id>
ChrisC5e9feb22017-06-21 02:38:57 -0700763 <phase>pre-integration-test</phase>
764 <goals>
765 <goal>prepare-agent</goal>
766 </goals>
767 <configuration>
768 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
769 <!-- <append>true</append> -->
770 </configuration>
771 </execution>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700772 <execution>
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -0700773 <goals>
774 <goal>merge</goal>
775 </goals>
776 <phase>post-integration-test</phase>
777 <configuration>
778 <fileSets>
779 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
780 <directory>${project.build.directory}/coverage-reports</directory>
781 <includes>
782 <include>*.exec</include>
783 </includes>
784 </fileSet>
785 </fileSets>
786 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
787 </configuration>
788 </execution>
ChrisC5e9feb22017-06-21 02:38:57 -0700789 </executions>
790 </plugin>
791
ChrisC5e9feb22017-06-21 02:38:57 -0700792 <!-- This plugin will be useful when we will have multi-modules project -->
793 <plugin>
794 <groupId>org.codehaus.mojo</groupId>
795 <artifactId>versions-maven-plugin</artifactId>
796 <version>1.3.1</version>
797 </plugin>
798 </plugins>
799 </build>
800 <profiles>
801 <profile>
802 <id>docker</id>
803 <properties>
804 <skip.staging.artifacts>true</skip.staging.artifacts>
805 <skip.docker.build>false</skip.docker.build>
JulienBed5d079c2017-08-10 18:35:07 +0200806 <skip.docker.tag>false</skip.docker.tag>
807 <skip.docker.push>false</skip.docker.push>
ChrisC5e9feb22017-06-21 02:38:57 -0700808 </properties>
809 </profile>
810 </profiles>
811</project>