blob: 8e7f6aabb7ac29e9d2de70436b6b34047af799d2 [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 ================================================================================
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +01006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -07007 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 ===================================================================
Determe, Sebastien (sd378r)e35744d2017-08-29 04:21:41 -070022-->
Gary Wu3a0d0272018-08-24 15:18:20 -070023<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/xsd/maven-4.0.0.xsd">
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010024 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.clamp</groupId>
26 <artifactId>clds</artifactId>
sebdeteff88972018-11-01 16:28:00 +010027 <version>3.0.3-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010028 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070029
sebdet6bcae192018-10-22 13:09:13 +020030 <parent>
31 <groupId>org.onap.oparent</groupId>
32 <artifactId>oparent</artifactId>
33 <version>1.2.0</version>
34 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070035
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010037 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070038
39 By Default "mvn clean install" command will execute also the unit tests
40 and the integration tests. The integration tests require a docker engine running.
41
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020042 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070043 "mvn clean install -DskipITs=true"
44
45 For Spring it's possible to specify the application.properties location
46 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
47
48 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010049 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
50 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080051
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010052 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070053
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010054 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070055 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <clamp.project.version>${project.version}</clamp.project.version>
57 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
58 <maven.compiler.source>1.8</maven.compiler.source>
59 <maven.compiler.target>1.8</maven.compiler.target>
60 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070062
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010063 <project.scm.id>git-server</project.scm.id>
64 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010065
66 <eelf.core.version>1.0.0</eelf.core.version>
sebdeta6649942018-12-11 12:39:11 +010067 <camel.version>2.22.1</camel.version>
sebdet7fcbe522018-10-22 14:45:34 +020068 <springboot.version>2.0.6.RELEASE</springboot.version>
sebdet2f224052018-10-23 17:44:36 +020069
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010070 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
71 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
72 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
73 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
74 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
75 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sebdet2f224052018-10-23 17:44:36 +020076 <!-- Enable language to disable javascript analysis -->
77 <sonar.language>java</sonar.language>
78 <!-- Parameters for Javascript coverage
79 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
80 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
81 -->
sebdete4422002018-10-16 17:47:54 +020082 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
ChrisC5e9feb22017-06-21 02:38:57 -070083
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010084 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020085 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020086 <docker.skip.build>true</docker.skip.build>
87 <docker.skip.push>true</docker.skip.push>
88 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010089 <skip.staging.artifacts>false</skip.staging.artifacts>
Gary Wu3a0d0272018-08-24 15:18:20 -070090 <python.http.proxy.param/>
sebdetce46c2d2018-10-24 17:22:36 +020091 <tomcat.version>8.5.34</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010092 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070093
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020094 <profiles>
95 <profile>
96 <id>without-test</id>
97 <activation>
98 <property>
99 <name>maven.test.skip</name>
100 <value>true</value>
101 </property>
102 </activation>
103 <properties>
104 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200105 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200106 </properties>
107 </profile>
108 <profile>
109 <id>without-IT-only</id>
110 <activation>
111 <property>
112 <name>skipITs</name>
113 <value>true</value>
114 </property>
115 </activation>
116 <properties>
117 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200118 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200119 </properties>
120 </profile>
121 <profile>
122 <id>without-IT-only2</id>
123 <activation>
124 <property>
125 <name>skipTests</name>
126 <value>true</value>
127 </property>
128 </activation>
129 <properties>
130 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200131 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200132 </properties>
133 </profile>
134 <profile>
135 <id>docker</id>
136 <properties>
137 <skip.staging.artifacts>true</skip.staging.artifacts>
138 <docker.skip.build>false</docker.skip.build>
139 <docker.skip.tag>false</docker.skip.tag>
140 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200141 <docker.skip>false</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200142 </properties>
143 </profile>
144 </profiles>
145
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100146 <distributionManagement>
147 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200148 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100149 <name>Clamp Release Repository</name>
150 <url>https://nexus.onap.org/content/repositories/releases/</url>
151 </repository>
152 <snapshotRepository>
sebdet4d1e6b92018-10-23 16:54:02 +0200153 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100154 <name>Clamp Snapshot Repository</name>
155 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
156 </snapshotRepository>
157 <site>
sebdet4d1e6b92018-10-23 16:54:02 +0200158 <id>onap-site</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100159 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
160 </site>
161 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700162
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100163 <repositories>
164 <repository>
165 <id>central</id>
166 <name>Maven 2 repository 2</name>
167 <url>http://repo2.maven.org/maven2/</url>
168 </repository>
169 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200170 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100171 <name>ONAP Release Repository</name>
172 <url>https://nexus.onap.org/content/repositories/releases/</url>
173 </repository>
174 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200175 <id>onap-staging</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100176 <name>ONAP Staging Repository</name>
177 <url>https://nexus.onap.org/content/repositories/staging/</url>
178 </repository>
179 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200180 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100181 <name>ONAP Snapshot Repository</name>
182 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
183 <snapshots>
184 <enabled>true</enabled>
185 </snapshots>
186 <releases>
187 <enabled>false</enabled>
188 </releases>
189 </repository>
190 <repository>
191 <id>spring-repo</id>
192 <name>Spring repo</name>
193 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
194 </repository>
195 <repository>
196 <id>repository.jboss.org-public</id>
197 <name>JBoss.org Maven repository</name>
198 <url>https://repository.jboss.org/nexus/content/groups/public</url>
199 </repository>
200 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700201
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100202 <dependencyManagement>
203 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100204 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100205 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100206 <groupId>org.springframework.boot</groupId>
207 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100208 <version>${springboot.version}</version>
209 <type>pom</type>
210 <scope>import</scope>
211 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100212 <!-- Camel BOM -->
213 <dependency>
214 <groupId>org.apache.camel</groupId>
215 <artifactId>camel-spring-boot-dependencies</artifactId>
216 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100217 <type>pom</type>
218 <scope>import</scope>
219 </dependency>
220 </dependencies>
221 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700222
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100223 <dependencies>
224 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100225 <groupId>com.att.eelf</groupId>
226 <artifactId>eelf-core</artifactId>
227 <version>${eelf.core.version}</version>
228 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200229 <dependency>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200230 <groupId>org.codehaus.janino</groupId>
231 <artifactId>janino</artifactId>
232 <version>3.0.8</version>
233 </dependency>
234 <dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200235 <groupId>org.apache.tomcat.embed</groupId>
236 <artifactId>tomcat-embed-core</artifactId>
237 <version>${tomcat.version}</version>
238 </dependency>
239 <dependency>
240 <groupId>org.apache.tomcat.embed</groupId>
241 <artifactId>tomcat-embed-el</artifactId>
242 <version>${tomcat.version}</version>
243 </dependency>
244 <dependency>
245 <groupId>org.apache.tomcat.embed</groupId>
246 <artifactId>tomcat-embed-websocket</artifactId>
247 <version>${tomcat.version}</version>
248 </dependency>
249 <dependency>
250 <groupId>org.apache.tomcat</groupId>
251 <artifactId>tomcat-annotations-api</artifactId>
252 <version>${tomcat.version}</version>
253 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100254 <!-- For CAMEL -->
255 <dependency>
256 <groupId>org.apache.camel</groupId>
257 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100258 </dependency>
259 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100260 <groupId>org.apache.camel</groupId>
261 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100262 </dependency>
263 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100264 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100265 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100266 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200267 <dependency>
xg353y054f1d12018-07-23 16:02:28 +0200268 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200269 <artifactId>camel-jackson-starter</artifactId>
270 </dependency>
271 <dependency>
272 <groupId>org.apache.camel</groupId>
273 <artifactId>camel-swagger-java-starter</artifactId>
274 <exclusions>
275 <exclusion>
276 <groupId>javax.ws.rs</groupId>
277 <artifactId>jsr311-api</artifactId>
278 </exclusion>
Determe, Sebastien (sd378r)db25b622018-08-06 15:30:35 +0200279 <exclusion>
280 <groupId>org.slf4j</groupId>
281 <artifactId>slf4j-ext</artifactId>
282 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200283 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200284 </dependency>
285 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200286 <groupId>javax.xml.bind</groupId>
287 <artifactId>jaxb-api</artifactId>
288 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200289 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200290 <dependency>
291 <groupId>org.glassfish.jersey.core</groupId>
292 <artifactId>jersey-common</artifactId>
293 <version>2.27</version>
294 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100295 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100296 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100297 <groupId>org.springframework.boot</groupId>
298 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100299 </dependency>
300 <dependency>
301 <groupId>org.springframework.boot</groupId>
302 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100303 </dependency>
304 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100305 <groupId>org.springframework</groupId>
306 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100307 </dependency>
308 <dependency>
309 <groupId>org.springframework.boot</groupId>
310 <artifactId>spring-boot-starter-security</artifactId>
311 </dependency>
312 <dependency>
313 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200314 <artifactId>spring-boot-autoconfigure</artifactId>
315 </dependency>
316 <dependency>
317 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100318 <artifactId>spring-boot-starter-test</artifactId>
319 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100320 <exclusions>
321 <exclusion>
322 <groupId>com.vaadin.external.google</groupId>
323 <artifactId>android-json</artifactId>
324 </exclusion>
325 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100326 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100327 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100328 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200329 <groupId>org.onap.aaf.authz</groupId>
330 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200331 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200332 <exclusions>
333 <exclusion>
334 <groupId>javax.servlet</groupId>
335 <artifactId>servlet-api</artifactId>
336 </exclusion>
337 </exclusions>
338 </dependency>
339 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100340 <groupId>ch.qos.logback</groupId>
341 <artifactId>logback-core</artifactId>
342 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100343 </dependency>
344 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100345 <groupId>ch.qos.logback</groupId>
346 <artifactId>logback-classic</artifactId>
347 <version>1.2.3</version>
348 </dependency>
349 <dependency>
350 <groupId>commons-dbcp</groupId>
351 <artifactId>commons-dbcp</artifactId>
352 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100353 </dependency>
354 <dependency>
355 <groupId>commons-io</groupId>
356 <artifactId>commons-io</artifactId>
357 <version>2.6</version>
358 </dependency>
359 <dependency>
360 <groupId>com.googlecode.json-simple</groupId>
361 <artifactId>json-simple</artifactId>
362 </dependency>
363 <dependency>
364 <groupId>org.apache.commons</groupId>
365 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100366 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100367 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100368 <dependency>
369 <groupId>joda-time</groupId>
370 <artifactId>joda-time</artifactId>
371 </dependency>
372 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100373 <groupId>org.slf4j</groupId>
374 <artifactId>slf4j-api</artifactId>
375 </dependency>
376 <dependency>
377 <groupId>javax.ws.rs</groupId>
378 <artifactId>javax.ws.rs-api</artifactId>
379 <version>2.0</version>
380 </dependency>
381 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100382 <groupId>junit</groupId>
383 <artifactId>junit</artifactId>
384 </dependency>
385 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100386 <groupId>javax.transaction</groupId>
387 <artifactId>jta</artifactId>
388 <version>1.1</version>
389 </dependency>
390 <dependency>
391 <groupId>javax.persistence</groupId>
392 <artifactId>persistence-api</artifactId>
393 <version>1.0.2</version>
394 </dependency>
395 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100396 <groupId>org.onap.policy.engine</groupId>
397 <artifactId>PolicyEngineAPI</artifactId>
sebdetd72d0d02018-12-01 15:09:54 +0100398 <version>1.3.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100399 <exclusions>
400 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500401 <groupId>com.google.guava</groupId>
402 <artifactId>guava</artifactId>
403 </exclusion>
404 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100405 <artifactId>log4j</artifactId>
406 <groupId>log4j</groupId>
407 </exclusion>
408 <exclusion>
409 <groupId>org.slf4j</groupId>
410 <artifactId>slf4j-log4j12</artifactId>
411 </exclusion>
412 <exclusion>
413 <artifactId>apache-log4j-extras</artifactId>
414 <groupId>log4j</groupId>
415 </exclusion>
416 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100417 <groupId>mysql</groupId>
418 <artifactId>mysql-connector-java</artifactId>
419 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100420 <exclusion>
421 <groupId>commons-io</groupId>
422 <artifactId>commons-io</artifactId>
423 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200424 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200425 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200426 <groupId>org.glassfish.grizzly</groupId>
427 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200428 <exclusion>
429 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
430 <artifactId>dmaapClient</artifactId>
431 </exclusion>
432 <exclusion>
433 <groupId>org.onap.policy.common</groupId>
434 <artifactId>integrity-monitor</artifactId>
435 </exclusion>
436 <exclusion>
437 <groupId>org.onap.policy.common</groupId>
438 <artifactId>integrity-audit</artifactId>
439 </exclusion>
440 <exclusion>
441 <groupId>org.onap.aaf.cadi</groupId>
442 <artifactId>cadi-aaf</artifactId>
443 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200444 <exclusion>
445 <groupId>javax.jms</groupId>
446 <artifactId>jms</artifactId>
447 </exclusion>
sebdet7fcbe522018-10-22 14:45:34 +0200448 <exclusion>
449 <groupId>commons-fileupload</groupId>
450 <artifactId>commons-fileupload</artifactId>
451 </exclusion>
sebdetac4958a2018-11-05 14:12:48 +0100452 <exclusion>
453 <groupId>com.att.research.xacml</groupId>
454 <artifactId>xacml</artifactId>
455 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100456 </exclusions>
457 </dependency>
458 <dependency>
459 <groupId>org.onap.policy.common</groupId>
460 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200461 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100462 <exclusions>
463 <exclusion>
464 <artifactId>log4j</artifactId>
465 <groupId>log4j</groupId>
466 </exclusion>
467 <exclusion>
468 <groupId>org.slf4j</groupId>
469 <artifactId>slf4j-log4j12</artifactId>
470 </exclusion>
471 <exclusion>
472 <artifactId>apache-log4j-extras</artifactId>
473 <groupId>log4j</groupId>
474 </exclusion>
475 </exclusions>
476 </dependency>
477 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200478 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100479 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200480 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100481 <exclusions>
482 <exclusion>
483 <artifactId>log4j</artifactId>
484 <groupId>log4j</groupId>
485 </exclusion>
486 <exclusion>
487 <groupId>org.slf4j</groupId>
488 <artifactId>slf4j-log4j12</artifactId>
489 </exclusion>
490 <exclusion>
491 <artifactId>apache-log4j-extras</artifactId>
492 <groupId>log4j</groupId>
493 </exclusion>
494 </exclusions>
495 </dependency>
496 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200497 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100498 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200499 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100500 <exclusions>
501 <exclusion>
502 <artifactId>log4j</artifactId>
503 <groupId>log4j</groupId>
504 </exclusion>
505 <exclusion>
506 <groupId>org.slf4j</groupId>
507 <artifactId>slf4j-log4j12</artifactId>
508 </exclusion>
509 <exclusion>
510 <artifactId>apache-log4j-extras</artifactId>
511 <groupId>log4j</groupId>
512 </exclusion>
513 </exclusions>
514 </dependency>
515 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200516 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100517 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200518 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100519 <exclusions>
520 <exclusion>
521 <artifactId>log4j</artifactId>
522 <groupId>log4j</groupId>
523 </exclusion>
524 <exclusion>
525 <groupId>org.slf4j</groupId>
526 <artifactId>slf4j-log4j12</artifactId>
527 </exclusion>
528 <exclusion>
529 <artifactId>apache-log4j-extras</artifactId>
530 <groupId>log4j</groupId>
531 </exclusion>
532 </exclusions>
533 </dependency>
534 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100535 <groupId>org.apache.commons</groupId>
536 <artifactId>commons-csv</artifactId>
537 <version>1.3</version>
538 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100539 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
540 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200541 <groupId>org.codehaus.plexus</groupId>
542 <artifactId>plexus-utils</artifactId>
543 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100544 </dependency>
545 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200546 <groupId>org.jboss.spec.javax.ws.rs</groupId>
547 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
548 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100549 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200550 <dependency>
551 <groupId>com.google.guava</groupId>
552 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200553 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100554 <!-- Remove the MYSQL connector and replace it by Mariadb -->
555 <dependency>
556 <groupId>org.mariadb.jdbc</groupId>
557 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100558 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100559 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100560 <!-- For SDC Controller -->
561 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200562 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100563 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200564 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100565 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100566 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200567 <groupId>org.onap.sdc.sdc-tosca</groupId>
568 <artifactId>sdc-tosca</artifactId>
osgn422w999cc722018-08-27 18:11:16 +0200569 <version>1.4.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100570 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200571 <!-- TESTING -->
572 <dependency>
573 <groupId>org.assertj</groupId>
574 <artifactId>assertj-core</artifactId>
575 <version>3.10.0</version>
576 <scope>test</scope>
577 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200578 <dependency>
579 <groupId>org.mockito</groupId>
580 <artifactId>mockito-core</artifactId>
581 <version>1.10.19</version>
582 <scope>test</scope>
583 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200584 </dependencies>
585 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200586 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200587 <id>central-for-plugins</id>
588 <name>Maven 2 repository 2</name>
589 <url>http://repo2.maven.org/maven2/</url>
590 </pluginRepository>
591 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200592 <snapshots>
593 <enabled>false</enabled>
594 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200595 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200596 <name>jcenter</name>
597 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200598 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200599 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100600 <build>
601 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700602
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100603 <testResources>
604 <testResource>
605 <directory>src/test/resources</directory>
606 <excludes>
607 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100608 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100609 </excludes>
610 <filtering>true</filtering>
611 </testResource>
612 <testResource>
613 <directory>src/test/resources/https</directory>
614 <includes>
615 <include>**.jks</include>
616 </includes>
617 <filtering>false</filtering>
618 <targetPath>https</targetPath>
619 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200620 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100621 <directory>src/test/resources/example/sdc</directory>
622 <includes>
623 <include>**.csar</include>
624 </includes>
625 <filtering>false</filtering>
626 <targetPath>example/sdc</targetPath>
627 </testResource>
sebdete4422002018-10-16 17:47:54 +0200628
629 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
630 <testResource>
631 <directory>src/test/javascript</directory>
632 <includes>
633 <include>**/**.json</include>
634 </includes>
635 <filtering>true</filtering>
636 <targetPath>${project.build.directory}/clamp-ui</targetPath>
637 </testResource>
638 <testResource>
639 <directory>src/main/resources/META-INF/resources/designer</directory>
640 <filtering>false</filtering>
641 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
642 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100643 </testResources>
644 <resources>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200645 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
646 Otherwise they will be broken and unreadable
647 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100648 <resource>
649 <directory>src/main/resources</directory>
650 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200651 <excludes>
652 <exclude>clds/aaf/**</exclude>
653 </excludes>
654 </resource>
655 <resource>
656 <directory>src/main/resources</directory>
657 <filtering>false</filtering>
658 <includes>
659 <include>clds/aaf/**</include>
660 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100661 </resource>
662 <resource>
663 <directory>src/main/docker</directory>
664 <includes>
665 <include>**/*</include>
666 </includes>
667 <filtering>true</filtering>
668 </resource>
669 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700670
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100671 <plugins>
sebdeta6649942018-12-11 12:39:11 +0100672 <plugin>
673 <groupId>org.sonatype.plugins</groupId>
674 <artifactId>port-allocator-maven-plugin</artifactId>
675 <version>1.2</version>
676 <executions>
677 <execution>
678 <phase>validate</phase>
679 <goals>
680 <goal>allocate-ports</goal>
681 </goals>
682 <configuration>
683 <ports>
684 <port>
685 <name>docker.mariadb.port.host</name>
686 </port>
687 <port>
688 <name>docker.http-cache.port.host</name>
689 </port>
690 <port>
691 <name>clamp.it.tests.https</name>
692 </port>
693 <port>
694 <name>clamp.it.tests.http</name>
695 </port>
696 </ports>
697 </configuration>
698 </execution>
699 </executions>
700 </plugin>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200701 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
702 generate a list of .adoc files containing the APIs info in more structured
703 way -->
704 <plugin>
705 <groupId>io.github.swagger2markup</groupId>
706 <artifactId>swagger2markup-maven-plugin</artifactId>
707 <version>1.3.3</version>
708 <dependencies>
709 <dependency>
710 <groupId>io.github.swagger2markup</groupId>
711 <artifactId>swagger2markup-import-files-ext</artifactId>
712 <version>1.3.3</version>
713 </dependency>
714 <dependency>
715 <groupId>io.github.swagger2markup</groupId>
716 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
717 <version>1.3.3</version>
718 </dependency>
719 </dependencies>
720 <configuration>
721 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
722 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
723 <config>
724 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
725 </config>
726 </configuration>
727 <executions>
728 <execution>
729 <phase>post-integration-test</phase>
730 <goals>
731 <goal>convertSwagger2markup</goal>
732 </goals>
733 </execution>
734 </executions>
735 </plugin>
736
737 <!-- Run the generated asciidoc through Asciidoctor to generate other
738 documentation types, such as PDFs or HTML5 -->
739 <plugin>
740 <groupId>org.asciidoctor</groupId>
741 <artifactId>asciidoctor-maven-plugin</artifactId>
742 <version>1.5.6</version>
743 <dependencies>
744 <dependency>
745 <groupId>org.asciidoctor</groupId>
746 <artifactId>asciidoctorj-pdf</artifactId>
747 <version>1.5.0-alpha.10.1</version>
748 </dependency>
749 <dependency>
750 <groupId>org.jruby</groupId>
751 <artifactId>jruby-complete</artifactId>
752 <version>1.7.21</version>
753 </dependency>
754 </dependencies>
755 <configuration>
756 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
757 <sourceDocumentName>swagger.adoc</sourceDocumentName>
758 <attributes>
759 <doctype>book</doctype>
760 <toc>left</toc>
761 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700762 <numbered/>
763 <hardbreaks/>
764 <sectlinks/>
765 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200766 <generated>${project.build.directory}/asciidoc/generated</generated>
767 </attributes>
768 </configuration>
769
770 <executions>
771 <execution>
772 <id>output-html</id>
773 <phase>post-integration-test</phase>
774 <goals>
775 <goal>process-asciidoc</goal>
776 </goals>
777 <configuration>
778 <backend>html5</backend>
779 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
780 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
781 </configuration>
782 </execution>
783 <execution>
784 <id>output-pdf</id>
785 <phase>post-integration-test</phase>
786 <goals>
787 <goal>process-asciidoc</goal>
788 </goals>
789 <configuration>
790 <backend>pdf</backend>
791 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
792 </configuration>
793 </execution>
794 </executions>
795 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100796 <plugin>
797 <groupId>org.codehaus.groovy.maven</groupId>
798 <artifactId>gmaven-plugin</artifactId>
799 <version>1.0</version>
800 <executions>
801 <execution>
802 <phase>validate</phase>
803 <goals>
804 <goal>execute</goal>
805 </goals>
806 <configuration>
807 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
808 </configuration>
809 </execution>
810 </executions>
811 </plugin>
812 <plugin>
813 <groupId>org.apache.maven.plugins</groupId>
814 <artifactId>maven-jar-plugin</artifactId>
815 <version>3.0.2</version>
816 <executions>
817 <execution>
818 <id>jar-with-only-classes</id>
819 <phase>package</phase>
820 <goals>
821 <goal>jar</goal>
822 </goals>
823 <configuration>
824 <classifier>classes</classifier>
825 <includes>
826 <include>org/**</include>
827 </includes>
828 </configuration>
829 </execution>
830 </executions>
831 </plugin>
832 <plugin>
833 <groupId>org.codehaus.mojo</groupId>
834 <artifactId>build-helper-maven-plugin</artifactId>
835 <version>3.0.0</version>
836 <executions>
837 <execution>
838 <goals>
839 <goal>attach-artifact</goal>
840 </goals>
841 <phase>package</phase>
842 <configuration>
843 <artifacts>
844 <artifact>
845 <file>${project.build.directory}/clamp-classes.jar</file>
846 <type>jar</type>
847 <classifier>classes</classifier>
848 </artifact>
849 </artifacts>
850 </configuration>
851 </execution>
852 </executions>
853 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700854
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100855 <plugin>
856 <groupId>org.springframework.boot</groupId>
857 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200858 <!-- Temporary fix -->
859 <version>1.5.13.RELEASE</version>
860 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100861 <executions>
862 <execution>
863 <goals>
864 <goal>repackage</goal>
865 </goals>
866 <phase>package</phase>
867 </execution>
868 </executions>
869 </plugin>
870 <plugin>
871 <groupId>org.sonatype.plugins</groupId>
872 <artifactId>nexus-staging-maven-plugin</artifactId>
873 <version>1.6.7</version>
874 <extensions>true</extensions>
875 <configuration>
876 <nexusUrl>https://nexus.onap.org</nexusUrl>
877 <stagingProfileId>176c31dfe190a</stagingProfileId>
878 <serverId>ecomp-staging</serverId>
879 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
880 </configuration>
881 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200882
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100883 <plugin>
884 <groupId>org.apache.maven.plugins</groupId>
885 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100886 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100887 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100888 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100889 <reuseForks>true</reuseForks>
890 <useSystemClassLoader>false</useSystemClassLoader>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100891 </configuration>
892 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200893
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100894 <plugin>
895 <groupId>org.apache.maven.plugins</groupId>
896 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100897 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100898 <executions>
899 <execution>
900 <id>integration-tests</id>
901 <goals>
902 <goal>integration-test</goal>
903 <goal>verify</goal>
904 </goals>
905 <configuration>
sebdet25793862018-11-08 17:11:10 +0100906 <additionalClasspathElements>
907 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
908 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100909 <includes>
910 <include>**/*ItCase.java</include>
911 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100912 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100913 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100914 <useSystemClassLoader>false</useSystemClassLoader>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100915 </configuration>
916 </execution>
917 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200918
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100919 </plugin>
920 <plugin>
921 <groupId>io.fabric8</groupId>
922 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100923 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100924 <dependencies>
925 <dependency>
926 <groupId>org.apache.httpcomponents</groupId>
927 <artifactId>httpclient</artifactId>
928 <version>4.5.5</version>
929 </dependency>
930 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100931 <configuration>
932 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100933 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100934 <images>
935 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200936 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100937 <alias>mariadb</alias>
938 <run>
939 <env>
940 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
941 </env>
942 <hostname>mariadb</hostname>
943 <volumes>
944 <bind>
945 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
946 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
947 </bind>
948 </volumes>
949 <wait>
950 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100951 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100952 </wait>
953 <ports>
954 <port>${docker.mariadb.port.host}:3306</port>
955 </ports>
956 </run>
957 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100958 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200959 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100960 <alias>python</alias>
961 <run>
962 <hostname>python</hostname>
963 <volumes>
964 <bind>
965 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100966 <volume>${project.basedir}/src/test/resources/http-cache/example/:/usr/src/http-cache-app/data-cache</volume>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100967 </bind>
968 </volumes>
969 <wait>
970 <tcp>
971 <ports>
972 <port>8080</port>
973 </ports>
974 <mode>direct</mode>
975 </tcp>
976 <time>120000</time>
sebdetd72d0d02018-12-01 15:09:54 +0100977 <kill>5000</kill>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100978 </wait>
979 <ports>
980 <port>${docker.http-cache.port.host}:8080</port>
981 </ports>
982 <workingDir>/usr/src/http-cache-app</workingDir>
983 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200984 <shell>./start_http_cache.sh ${python.http.proxy.param} --python_proxyaddress=localhost:${docker.http-cache.port.host}</shell>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100985 </cmd>
986 </run>
987 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200988 <image>
989 <name>onap/clamp</name>
990 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200991 <run>
992 <skip>true</skip>
993 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200994 <build>
995 <cleanup>true</cleanup>
996 <tags>
997 <tag>latest</tag>
998 <tag>${project.docker.latesttagtimestamp.version}</tag>
999 <tag>${project.docker.latesttag.version}</tag>
1000 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001001 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1002 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001003 <dockerFile>Dockerfile</dockerFile>
1004 <assembly>
1005 <descriptor>assembly/clamp-files.xml</descriptor>
1006 <name>onap-clamp</name>
1007 </assembly>
1008 </build>
1009 </image>
ac255096f162e2018-09-18 10:07:58 +02001010 <image>
1011 <name>onap/clamp-dashboard-logstash</name>
1012 <alias>onap-clamp-dashboard-logstash</alias>
1013 <run>
1014 <skip>true</skip>
1015 </run>
1016 <build>
1017 <cleanup>true</cleanup>
1018 <tags>
1019 <tag>latest</tag>
1020 <tag>${project.docker.latesttagtimestamp.version}</tag>
1021 <tag>${project.docker.latesttag.version}</tag>
1022 </tags>
ac2550a61b86e2018-10-10 13:54:08 +02001023 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001024 </build>
1025 </image>
ac2550ead10512018-10-05 13:50:23 +02001026 <image>
1027 <name>onap/clamp-dashboard-kibana</name>
1028 <alias>onap-clamp-dashboard-kibana</alias>
1029 <run>
1030 <skip>true</skip>
1031 </run>
1032 <build>
1033 <cleanup>true</cleanup>
1034 <tags>
1035 <tag>latest</tag>
1036 <tag>${project.docker.latesttagtimestamp.version}</tag>
1037 <tag>${project.docker.latesttag.version}</tag>
1038 </tags>
1039 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1040 </build>
1041 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001042 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001043 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001044
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001045 <executions>
1046 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001047 <id>generate-images</id>
1048 <phase>install</phase>
1049 <goals>
1050 <goal>build</goal>
1051 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001052 </execution>
1053 <execution>
1054 <id>push-images</id>
1055 <phase>deploy</phase>
1056 <goals>
1057 <goal>push</goal>
1058 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001059 </execution>
1060 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001061 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001062 <phase>pre-integration-test</phase>
1063 <goals>
1064 <goal>start</goal>
1065 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001066 </execution>
1067 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001068 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001069 <phase>post-integration-test</phase>
1070 <goals>
1071 <goal>stop</goal>
1072 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001073 </execution>
1074 </executions>
1075 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001076
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001077 <plugin>
1078 <groupId>org.jacoco</groupId>
1079 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001080 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001081 <configuration>
1082 <dumpOnExit>true</dumpOnExit>
1083 <includes>
1084 <include>org.onap.clamp.*</include>
1085 </includes>
sebdetf1d69902018-11-12 07:38:45 +01001086 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001087 </configuration>
1088 <executions>
1089 <execution>
1090 <id>pre-unit-test</id>
1091 <goals>
1092 <goal>prepare-agent</goal>
1093 </goals>
1094 <configuration>
1095 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1096 <!-- <append>true</append> -->
1097 </configuration>
1098 </execution>
1099 <execution>
1100 <id>pre-integration-test</id>
1101 <phase>pre-integration-test</phase>
1102 <goals>
1103 <goal>prepare-agent</goal>
1104 </goals>
1105 <configuration>
1106 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1107 <!-- <append>true</append> -->
1108 </configuration>
1109 </execution>
1110 <execution>
1111 <goals>
1112 <goal>merge</goal>
1113 </goals>
1114 <phase>post-integration-test</phase>
1115 <configuration>
1116 <fileSets>
1117 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1118 <directory>${project.build.directory}/coverage-reports</directory>
1119 <includes>
1120 <include>*.exec</include>
1121 </includes>
1122 </fileSet>
1123 </fileSets>
1124 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1125 </configuration>
1126 </execution>
1127 </executions>
1128 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001129
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001130 <!-- This plugin will be useful when we will have multi-modules project -->
1131 <plugin>
1132 <groupId>org.codehaus.mojo</groupId>
1133 <artifactId>versions-maven-plugin</artifactId>
1134 <version>1.3.1</version>
1135 </plugin>
sebdete4422002018-10-16 17:47:54 +02001136
1137 <plugin>
1138 <groupId>com.github.eirslett</groupId>
1139 <artifactId>frontend-maven-plugin</artifactId>
1140 <version>1.6</version>
1141 <configuration>
1142 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1143 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1144 <skip>${maven.test.skip}</skip>
1145 </configuration>
1146
1147 <executions>
1148 <execution>
1149 <id>install_node_and_npm</id>
1150 <goals>
1151 <goal>install-node-and-npm</goal>
1152 </goals>
1153 <phase>test</phase>
1154 <configuration>
1155 <nodeVersion>v8.11.1</nodeVersion>
1156 <npmVersion>5.6.0</npmVersion>
1157 </configuration>
1158 </execution>
1159 <execution>
1160 <id>npm_install</id>
1161 <goals>
1162 <goal>npm</goal>
1163 </goals>
1164 <phase>test</phase>
1165 <configuration>
1166 <arguments>install</arguments>
1167 </configuration>
1168 </execution>
1169 <execution>
1170 <id>npm_test</id>
1171 <goals>
1172 <goal>npm</goal>
1173 </goals>
1174 <phase>test</phase>
1175 <configuration>
1176 <arguments>run-script test:coverage</arguments>
1177 </configuration>
1178 </execution>
1179
1180 </executions>
1181 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001182 </plugins>
1183 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001184</project>