blob: 297b0a10c474b397ea7b31d05a819aaf678c363e [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>
sebdetb650caf2018-12-20 13:28:43 +010027 <version>4.0.0-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>
sebdet70efa492018-12-19 17:36:33 +0100691 <name>clamp.it.tests.http-redirected</name>
692 </port>
693 <port>
sebdeta6649942018-12-11 12:39:11 +0100694 <name>clamp.it.tests.https</name>
695 </port>
696 <port>
697 <name>clamp.it.tests.http</name>
698 </port>
699 </ports>
700 </configuration>
701 </execution>
702 </executions>
703 </plugin>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200704 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
705 generate a list of .adoc files containing the APIs info in more structured
706 way -->
707 <plugin>
708 <groupId>io.github.swagger2markup</groupId>
709 <artifactId>swagger2markup-maven-plugin</artifactId>
710 <version>1.3.3</version>
711 <dependencies>
712 <dependency>
713 <groupId>io.github.swagger2markup</groupId>
714 <artifactId>swagger2markup-import-files-ext</artifactId>
715 <version>1.3.3</version>
716 </dependency>
717 <dependency>
718 <groupId>io.github.swagger2markup</groupId>
719 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
720 <version>1.3.3</version>
721 </dependency>
722 </dependencies>
723 <configuration>
724 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
725 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
726 <config>
727 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
728 </config>
729 </configuration>
730 <executions>
731 <execution>
732 <phase>post-integration-test</phase>
733 <goals>
734 <goal>convertSwagger2markup</goal>
735 </goals>
736 </execution>
737 </executions>
738 </plugin>
739
740 <!-- Run the generated asciidoc through Asciidoctor to generate other
741 documentation types, such as PDFs or HTML5 -->
742 <plugin>
743 <groupId>org.asciidoctor</groupId>
744 <artifactId>asciidoctor-maven-plugin</artifactId>
745 <version>1.5.6</version>
746 <dependencies>
747 <dependency>
748 <groupId>org.asciidoctor</groupId>
749 <artifactId>asciidoctorj-pdf</artifactId>
750 <version>1.5.0-alpha.10.1</version>
751 </dependency>
752 <dependency>
753 <groupId>org.jruby</groupId>
754 <artifactId>jruby-complete</artifactId>
755 <version>1.7.21</version>
756 </dependency>
757 </dependencies>
758 <configuration>
759 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
760 <sourceDocumentName>swagger.adoc</sourceDocumentName>
761 <attributes>
762 <doctype>book</doctype>
763 <toc>left</toc>
764 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700765 <numbered/>
766 <hardbreaks/>
767 <sectlinks/>
768 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200769 <generated>${project.build.directory}/asciidoc/generated</generated>
770 </attributes>
771 </configuration>
772
773 <executions>
774 <execution>
775 <id>output-html</id>
776 <phase>post-integration-test</phase>
777 <goals>
778 <goal>process-asciidoc</goal>
779 </goals>
780 <configuration>
781 <backend>html5</backend>
782 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
783 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
784 </configuration>
785 </execution>
786 <execution>
787 <id>output-pdf</id>
788 <phase>post-integration-test</phase>
789 <goals>
790 <goal>process-asciidoc</goal>
791 </goals>
792 <configuration>
793 <backend>pdf</backend>
794 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
795 </configuration>
796 </execution>
797 </executions>
798 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100799 <plugin>
800 <groupId>org.codehaus.groovy.maven</groupId>
801 <artifactId>gmaven-plugin</artifactId>
802 <version>1.0</version>
803 <executions>
804 <execution>
805 <phase>validate</phase>
806 <goals>
807 <goal>execute</goal>
808 </goals>
809 <configuration>
810 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
811 </configuration>
812 </execution>
813 </executions>
814 </plugin>
815 <plugin>
816 <groupId>org.apache.maven.plugins</groupId>
817 <artifactId>maven-jar-plugin</artifactId>
818 <version>3.0.2</version>
819 <executions>
820 <execution>
821 <id>jar-with-only-classes</id>
822 <phase>package</phase>
823 <goals>
824 <goal>jar</goal>
825 </goals>
826 <configuration>
827 <classifier>classes</classifier>
828 <includes>
829 <include>org/**</include>
830 </includes>
831 </configuration>
832 </execution>
833 </executions>
834 </plugin>
835 <plugin>
836 <groupId>org.codehaus.mojo</groupId>
837 <artifactId>build-helper-maven-plugin</artifactId>
838 <version>3.0.0</version>
839 <executions>
840 <execution>
841 <goals>
842 <goal>attach-artifact</goal>
843 </goals>
844 <phase>package</phase>
845 <configuration>
846 <artifacts>
847 <artifact>
848 <file>${project.build.directory}/clamp-classes.jar</file>
849 <type>jar</type>
850 <classifier>classes</classifier>
851 </artifact>
852 </artifacts>
853 </configuration>
854 </execution>
855 </executions>
856 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700857
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100858 <plugin>
859 <groupId>org.springframework.boot</groupId>
860 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200861 <!-- Temporary fix -->
862 <version>1.5.13.RELEASE</version>
863 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100864 <executions>
865 <execution>
866 <goals>
867 <goal>repackage</goal>
868 </goals>
869 <phase>package</phase>
870 </execution>
871 </executions>
872 </plugin>
873 <plugin>
874 <groupId>org.sonatype.plugins</groupId>
875 <artifactId>nexus-staging-maven-plugin</artifactId>
876 <version>1.6.7</version>
877 <extensions>true</extensions>
878 <configuration>
879 <nexusUrl>https://nexus.onap.org</nexusUrl>
880 <stagingProfileId>176c31dfe190a</stagingProfileId>
881 <serverId>ecomp-staging</serverId>
882 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
883 </configuration>
884 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200885
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100886 <plugin>
887 <groupId>org.apache.maven.plugins</groupId>
888 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100889 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100890 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100891 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100892 <reuseForks>true</reuseForks>
893 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100894 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100895 </configuration>
896 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200897
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100898 <plugin>
899 <groupId>org.apache.maven.plugins</groupId>
900 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100901 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100902 <executions>
903 <execution>
904 <id>integration-tests</id>
905 <goals>
906 <goal>integration-test</goal>
907 <goal>verify</goal>
908 </goals>
909 <configuration>
sebdet25793862018-11-08 17:11:10 +0100910 <additionalClasspathElements>
911 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
912 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100913 <includes>
914 <include>**/*ItCase.java</include>
915 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100916 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100917 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100918 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100919 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100920 </configuration>
921 </execution>
922 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200923
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100924 </plugin>
925 <plugin>
926 <groupId>io.fabric8</groupId>
927 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100928 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100929 <dependencies>
930 <dependency>
931 <groupId>org.apache.httpcomponents</groupId>
932 <artifactId>httpclient</artifactId>
933 <version>4.5.5</version>
934 </dependency>
935 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100936 <configuration>
937 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100938 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100939 <images>
940 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200941 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100942 <alias>mariadb</alias>
943 <run>
944 <env>
945 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
946 </env>
947 <hostname>mariadb</hostname>
948 <volumes>
949 <bind>
950 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
951 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
952 </bind>
953 </volumes>
954 <wait>
955 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100956 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100957 </wait>
958 <ports>
959 <port>${docker.mariadb.port.host}:3306</port>
960 </ports>
961 </run>
962 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100963 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200964 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100965 <alias>python</alias>
966 <run>
967 <hostname>python</hostname>
968 <volumes>
969 <bind>
970 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100971 <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 +0100972 </bind>
973 </volumes>
974 <wait>
975 <tcp>
976 <ports>
977 <port>8080</port>
978 </ports>
979 <mode>direct</mode>
980 </tcp>
981 <time>120000</time>
982 </wait>
983 <ports>
984 <port>${docker.http-cache.port.host}:8080</port>
985 </ports>
986 <workingDir>/usr/src/http-cache-app</workingDir>
987 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200988 <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 +0100989 </cmd>
990 </run>
991 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200992 <image>
993 <name>onap/clamp</name>
994 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200995 <run>
996 <skip>true</skip>
997 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200998 <build>
999 <cleanup>true</cleanup>
1000 <tags>
1001 <tag>latest</tag>
1002 <tag>${project.docker.latesttagtimestamp.version}</tag>
1003 <tag>${project.docker.latesttag.version}</tag>
1004 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001005 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1006 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001007 <dockerFile>Dockerfile</dockerFile>
1008 <assembly>
1009 <descriptor>assembly/clamp-files.xml</descriptor>
1010 <name>onap-clamp</name>
1011 </assembly>
1012 </build>
1013 </image>
ac255096f162e2018-09-18 10:07:58 +02001014 <image>
1015 <name>onap/clamp-dashboard-logstash</name>
1016 <alias>onap-clamp-dashboard-logstash</alias>
1017 <run>
1018 <skip>true</skip>
1019 </run>
1020 <build>
1021 <cleanup>true</cleanup>
1022 <tags>
1023 <tag>latest</tag>
1024 <tag>${project.docker.latesttagtimestamp.version}</tag>
1025 <tag>${project.docker.latesttag.version}</tag>
1026 </tags>
ac2550a61b86e2018-10-10 13:54:08 +02001027 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001028 </build>
1029 </image>
ac2550ead10512018-10-05 13:50:23 +02001030 <image>
1031 <name>onap/clamp-dashboard-kibana</name>
1032 <alias>onap-clamp-dashboard-kibana</alias>
1033 <run>
1034 <skip>true</skip>
1035 </run>
1036 <build>
1037 <cleanup>true</cleanup>
1038 <tags>
1039 <tag>latest</tag>
1040 <tag>${project.docker.latesttagtimestamp.version}</tag>
1041 <tag>${project.docker.latesttag.version}</tag>
1042 </tags>
1043 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1044 </build>
1045 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001046 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001047 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001048
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001049 <executions>
1050 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001051 <id>generate-images</id>
1052 <phase>install</phase>
1053 <goals>
1054 <goal>build</goal>
1055 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001056 </execution>
1057 <execution>
1058 <id>push-images</id>
1059 <phase>deploy</phase>
1060 <goals>
1061 <goal>push</goal>
1062 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001063 </execution>
1064 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001065 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001066 <phase>pre-integration-test</phase>
1067 <goals>
1068 <goal>start</goal>
1069 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001070 </execution>
1071 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001072 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001073 <phase>post-integration-test</phase>
1074 <goals>
1075 <goal>stop</goal>
1076 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001077 </execution>
1078 </executions>
1079 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001080
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001081 <plugin>
1082 <groupId>org.jacoco</groupId>
1083 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001084 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001085 <configuration>
1086 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001087 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001088 <includes>
1089 <include>org.onap.clamp.*</include>
1090 </includes>
1091 </configuration>
1092 <executions>
1093 <execution>
1094 <id>pre-unit-test</id>
1095 <goals>
1096 <goal>prepare-agent</goal>
1097 </goals>
1098 <configuration>
1099 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001100 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001101 <!-- <append>true</append> -->
1102 </configuration>
1103 </execution>
1104 <execution>
1105 <id>pre-integration-test</id>
1106 <phase>pre-integration-test</phase>
1107 <goals>
1108 <goal>prepare-agent</goal>
1109 </goals>
1110 <configuration>
1111 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001112 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001113 <!-- <append>true</append> -->
1114 </configuration>
1115 </execution>
1116 <execution>
1117 <goals>
1118 <goal>merge</goal>
1119 </goals>
1120 <phase>post-integration-test</phase>
1121 <configuration>
1122 <fileSets>
1123 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1124 <directory>${project.build.directory}/coverage-reports</directory>
1125 <includes>
1126 <include>*.exec</include>
1127 </includes>
1128 </fileSet>
1129 </fileSets>
1130 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1131 </configuration>
1132 </execution>
1133 </executions>
1134 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001135
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001136 <!-- This plugin will be useful when we will have multi-modules project -->
1137 <plugin>
1138 <groupId>org.codehaus.mojo</groupId>
1139 <artifactId>versions-maven-plugin</artifactId>
1140 <version>1.3.1</version>
1141 </plugin>
sebdete4422002018-10-16 17:47:54 +02001142
1143 <plugin>
1144 <groupId>com.github.eirslett</groupId>
1145 <artifactId>frontend-maven-plugin</artifactId>
1146 <version>1.6</version>
1147 <configuration>
1148 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1149 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1150 <skip>${maven.test.skip}</skip>
1151 </configuration>
1152
1153 <executions>
1154 <execution>
1155 <id>install_node_and_npm</id>
1156 <goals>
1157 <goal>install-node-and-npm</goal>
1158 </goals>
1159 <phase>test</phase>
1160 <configuration>
1161 <nodeVersion>v8.11.1</nodeVersion>
1162 <npmVersion>5.6.0</npmVersion>
1163 </configuration>
1164 </execution>
1165 <execution>
1166 <id>npm_install</id>
1167 <goals>
1168 <goal>npm</goal>
1169 </goals>
1170 <phase>test</phase>
1171 <configuration>
1172 <arguments>install</arguments>
1173 </configuration>
1174 </execution>
1175 <execution>
1176 <id>npm_test</id>
1177 <goals>
1178 <goal>npm</goal>
1179 </goals>
1180 <phase>test</phase>
1181 <configuration>
1182 <arguments>run-script test:coverage</arguments>
1183 </configuration>
1184 </execution>
1185
1186 </executions>
1187 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001188 </plugins>
1189 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001190</project>