blob: bb59a882a16f8bedf2478ee6e281b6e36e09e74f [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>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +010069
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>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +010078 <!-- Parameters for Javascript coverage
sebdet2f224052018-10-23 17:44:36 +020079 <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>
sebdet1a6b7192019-02-22 08:28:47 +0100148 <id>ecomp-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>
sebdet1a6b7192019-02-22 08:28:47 +0100153 <id>ecomp-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>
sebdet1a6b7192019-02-22 08:28:47 +0100158 <id>ecomp-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>
sebdet1a6b7192019-02-22 08:28:47 +0100170 <id>ecomp-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>
sebdet1a6b7192019-02-22 08:28:47 +0100175 <id>ecomp-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>
sebdet1a6b7192019-02-22 08:28:47 +0100180 <id>ecomp-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>
sebdet00109a02019-02-15 15:30:05 +0100268 <groupId>org.apache.camel</groupId>
269 <artifactId>camel-gson-starter</artifactId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200270 </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>
sebdet00109a02019-02-15 15:30:05 +0100283 <exclusion>
284 <groupId>com.fasterxml.jackson.core</groupId>
285 <artifactId>jackson-databind</artifactId>
286 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200287 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200288 </dependency>
289 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200290 <groupId>javax.xml.bind</groupId>
291 <artifactId>jaxb-api</artifactId>
292 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200293 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200294 <dependency>
295 <groupId>org.glassfish.jersey.core</groupId>
296 <artifactId>jersey-common</artifactId>
297 <version>2.27</version>
298 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100299 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100300 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100301 <groupId>org.springframework.boot</groupId>
302 <artifactId>spring-boot-starter-web</artifactId>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100303 <exclusions>
304 <exclusion>
305 <groupId>org.springframework.boot</groupId>
306 <artifactId>spring-boot-starter-json</artifactId>
307 </exclusion>
308 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100309 </dependency>
310 <dependency>
311 <groupId>org.springframework.boot</groupId>
312 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100313 </dependency>
314 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100315 <groupId>org.springframework</groupId>
316 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100317 </dependency>
318 <dependency>
319 <groupId>org.springframework.boot</groupId>
320 <artifactId>spring-boot-starter-security</artifactId>
321 </dependency>
322 <dependency>
323 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200324 <artifactId>spring-boot-autoconfigure</artifactId>
325 </dependency>
326 <dependency>
327 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100328 <artifactId>spring-boot-starter-test</artifactId>
329 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100330 <exclusions>
331 <exclusion>
332 <groupId>com.vaadin.external.google</groupId>
333 <artifactId>android-json</artifactId>
334 </exclusion>
335 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100336 </dependency>
sebdetc2bcf2a2019-02-22 08:16:26 +0100337 <dependency>
338 <groupId>org.springframework.boot</groupId>
339 <artifactId>spring-boot-starter-data-jpa</artifactId>
340 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100341 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100342 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200343 <groupId>org.onap.aaf.authz</groupId>
344 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200345 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200346 <exclusions>
347 <exclusion>
348 <groupId>javax.servlet</groupId>
349 <artifactId>servlet-api</artifactId>
350 </exclusion>
351 </exclusions>
352 </dependency>
353 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100354 <groupId>ch.qos.logback</groupId>
355 <artifactId>logback-core</artifactId>
356 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100357 </dependency>
358 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100359 <groupId>ch.qos.logback</groupId>
360 <artifactId>logback-classic</artifactId>
361 <version>1.2.3</version>
362 </dependency>
363 <dependency>
364 <groupId>commons-dbcp</groupId>
365 <artifactId>commons-dbcp</artifactId>
366 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100367 </dependency>
368 <dependency>
369 <groupId>commons-io</groupId>
370 <artifactId>commons-io</artifactId>
371 <version>2.6</version>
372 </dependency>
373 <dependency>
374 <groupId>com.googlecode.json-simple</groupId>
375 <artifactId>json-simple</artifactId>
376 </dependency>
377 <dependency>
378 <groupId>org.apache.commons</groupId>
379 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100380 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100381 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100382 <dependency>
383 <groupId>joda-time</groupId>
384 <artifactId>joda-time</artifactId>
385 </dependency>
386 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100387 <groupId>org.slf4j</groupId>
388 <artifactId>slf4j-api</artifactId>
389 </dependency>
390 <dependency>
391 <groupId>javax.ws.rs</groupId>
392 <artifactId>javax.ws.rs-api</artifactId>
393 <version>2.0</version>
394 </dependency>
395 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100396 <groupId>junit</groupId>
397 <artifactId>junit</artifactId>
398 </dependency>
399 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100400 <groupId>javax.transaction</groupId>
401 <artifactId>jta</artifactId>
402 <version>1.1</version>
403 </dependency>
404 <dependency>
405 <groupId>javax.persistence</groupId>
406 <artifactId>persistence-api</artifactId>
407 <version>1.0.2</version>
408 </dependency>
409 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100410 <groupId>org.onap.policy.engine</groupId>
411 <artifactId>PolicyEngineAPI</artifactId>
sebdetd72d0d02018-12-01 15:09:54 +0100412 <version>1.3.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100413 <exclusions>
414 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500415 <groupId>com.google.guava</groupId>
416 <artifactId>guava</artifactId>
417 </exclusion>
418 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100419 <artifactId>log4j</artifactId>
420 <groupId>log4j</groupId>
421 </exclusion>
422 <exclusion>
423 <groupId>org.slf4j</groupId>
424 <artifactId>slf4j-log4j12</artifactId>
425 </exclusion>
426 <exclusion>
427 <artifactId>apache-log4j-extras</artifactId>
428 <groupId>log4j</groupId>
429 </exclusion>
430 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100431 <groupId>mysql</groupId>
432 <artifactId>mysql-connector-java</artifactId>
433 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100434 <exclusion>
435 <groupId>commons-io</groupId>
436 <artifactId>commons-io</artifactId>
437 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200438 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200439 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200440 <groupId>org.glassfish.grizzly</groupId>
441 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200442 <exclusion>
443 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
444 <artifactId>dmaapClient</artifactId>
445 </exclusion>
446 <exclusion>
447 <groupId>org.onap.policy.common</groupId>
448 <artifactId>integrity-monitor</artifactId>
449 </exclusion>
450 <exclusion>
451 <groupId>org.onap.policy.common</groupId>
452 <artifactId>integrity-audit</artifactId>
453 </exclusion>
454 <exclusion>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100455 <groupId>com.fasterxml.jackson.core</groupId>
456 <artifactId>jackson-databind</artifactId>
457 </exclusion>
458 <exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200459 <groupId>org.onap.aaf.cadi</groupId>
460 <artifactId>cadi-aaf</artifactId>
461 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200462 <exclusion>
463 <groupId>javax.jms</groupId>
464 <artifactId>jms</artifactId>
465 </exclusion>
sebdet7fcbe522018-10-22 14:45:34 +0200466 <exclusion>
467 <groupId>commons-fileupload</groupId>
468 <artifactId>commons-fileupload</artifactId>
469 </exclusion>
sebdetac4958a2018-11-05 14:12:48 +0100470 <exclusion>
471 <groupId>com.att.research.xacml</groupId>
472 <artifactId>xacml</artifactId>
473 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100474 </exclusions>
475 </dependency>
476 <dependency>
477 <groupId>org.onap.policy.common</groupId>
478 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200479 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100480 <exclusions>
481 <exclusion>
482 <artifactId>log4j</artifactId>
483 <groupId>log4j</groupId>
484 </exclusion>
485 <exclusion>
486 <groupId>org.slf4j</groupId>
487 <artifactId>slf4j-log4j12</artifactId>
488 </exclusion>
489 <exclusion>
490 <artifactId>apache-log4j-extras</artifactId>
491 <groupId>log4j</groupId>
492 </exclusion>
493 </exclusions>
494 </dependency>
495 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200496 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100497 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200498 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100499 <exclusions>
500 <exclusion>
501 <artifactId>log4j</artifactId>
502 <groupId>log4j</groupId>
503 </exclusion>
504 <exclusion>
505 <groupId>org.slf4j</groupId>
506 <artifactId>slf4j-log4j12</artifactId>
507 </exclusion>
508 <exclusion>
509 <artifactId>apache-log4j-extras</artifactId>
510 <groupId>log4j</groupId>
511 </exclusion>
512 </exclusions>
513 </dependency>
514 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200515 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100516 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200517 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100518 <exclusions>
519 <exclusion>
520 <artifactId>log4j</artifactId>
521 <groupId>log4j</groupId>
522 </exclusion>
523 <exclusion>
524 <groupId>org.slf4j</groupId>
525 <artifactId>slf4j-log4j12</artifactId>
526 </exclusion>
527 <exclusion>
528 <artifactId>apache-log4j-extras</artifactId>
529 <groupId>log4j</groupId>
530 </exclusion>
531 </exclusions>
532 </dependency>
533 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200534 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100535 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200536 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100537 <exclusions>
538 <exclusion>
539 <artifactId>log4j</artifactId>
540 <groupId>log4j</groupId>
541 </exclusion>
542 <exclusion>
543 <groupId>org.slf4j</groupId>
544 <artifactId>slf4j-log4j12</artifactId>
545 </exclusion>
546 <exclusion>
547 <artifactId>apache-log4j-extras</artifactId>
548 <groupId>log4j</groupId>
549 </exclusion>
550 </exclusions>
551 </dependency>
552 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100553 <groupId>org.apache.commons</groupId>
554 <artifactId>commons-csv</artifactId>
555 <version>1.3</version>
556 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100557 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
558 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200559 <groupId>org.codehaus.plexus</groupId>
560 <artifactId>plexus-utils</artifactId>
561 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100562 </dependency>
563 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200564 <groupId>org.jboss.spec.javax.ws.rs</groupId>
565 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
566 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100567 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200568 <dependency>
569 <groupId>com.google.guava</groupId>
570 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200571 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100572 <!-- Remove the MYSQL connector and replace it by Mariadb -->
573 <dependency>
574 <groupId>org.mariadb.jdbc</groupId>
575 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100576 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100577 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100578 <!-- For SDC Controller -->
579 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200580 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100581 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200582 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100583 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100584 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200585 <groupId>org.onap.sdc.sdc-tosca</groupId>
586 <artifactId>sdc-tosca</artifactId>
sebdet00109a02019-02-15 15:30:05 +0100587 <version>1.5.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100588 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200589 <!-- TESTING -->
590 <dependency>
591 <groupId>org.assertj</groupId>
592 <artifactId>assertj-core</artifactId>
593 <version>3.10.0</version>
594 <scope>test</scope>
595 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200596 <dependency>
597 <groupId>org.mockito</groupId>
598 <artifactId>mockito-core</artifactId>
599 <version>1.10.19</version>
600 <scope>test</scope>
601 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200602 </dependencies>
603 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200604 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200605 <id>central-for-plugins</id>
606 <name>Maven 2 repository 2</name>
607 <url>http://repo2.maven.org/maven2/</url>
608 </pluginRepository>
609 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200610 <snapshots>
611 <enabled>false</enabled>
612 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200613 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200614 <name>jcenter</name>
615 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200616 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200617 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100618 <build>
619 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700620
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100621 <testResources>
622 <testResource>
623 <directory>src/test/resources</directory>
624 <excludes>
625 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100626 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100627 </excludes>
628 <filtering>true</filtering>
629 </testResource>
630 <testResource>
631 <directory>src/test/resources/https</directory>
632 <includes>
633 <include>**.jks</include>
634 </includes>
635 <filtering>false</filtering>
636 <targetPath>https</targetPath>
637 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200638 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100639 <directory>src/test/resources/example/sdc</directory>
640 <includes>
641 <include>**.csar</include>
642 </includes>
643 <filtering>false</filtering>
644 <targetPath>example/sdc</targetPath>
645 </testResource>
sebdete4422002018-10-16 17:47:54 +0200646
647 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
648 <testResource>
649 <directory>src/test/javascript</directory>
650 <includes>
651 <include>**/**.json</include>
652 </includes>
653 <filtering>true</filtering>
654 <targetPath>${project.build.directory}/clamp-ui</targetPath>
655 </testResource>
656 <testResource>
657 <directory>src/main/resources/META-INF/resources/designer</directory>
658 <filtering>false</filtering>
659 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
660 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100661 </testResources>
662 <resources>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100663 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200664 Otherwise they will be broken and unreadable
665 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100666 <resource>
667 <directory>src/main/resources</directory>
668 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200669 <excludes>
670 <exclude>clds/aaf/**</exclude>
671 </excludes>
672 </resource>
673 <resource>
674 <directory>src/main/resources</directory>
675 <filtering>false</filtering>
676 <includes>
677 <include>clds/aaf/**</include>
678 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100679 </resource>
680 <resource>
681 <directory>src/main/docker</directory>
682 <includes>
683 <include>**/*</include>
684 </includes>
685 <filtering>true</filtering>
686 </resource>
687 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700688
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100689 <plugins>
sebdeta6649942018-12-11 12:39:11 +0100690 <plugin>
sebdetc2bcf2a2019-02-22 08:16:26 +0100691 <groupId>de.jpdigital</groupId>
692 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
693 <version>2.2.0</version>
sebdeta6649942018-12-11 12:39:11 +0100694 <executions>
695 <execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100696 <phase>process-classes</phase>
sebdeta6649942018-12-11 12:39:11 +0100697 <goals>
sebdetc2bcf2a2019-02-22 08:16:26 +0100698 <goal>gen-ddl</goal>
sebdeta6649942018-12-11 12:39:11 +0100699 </goals>
700 <configuration>
sebdetc2bcf2a2019-02-22 08:16:26 +0100701 <packages><param>org.onap.clamp.dao.model</param></packages>
702 <dialects><param>MARIADB53</param></dialects>
703 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
704 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
705 <!-- <createDropStatements>true</createDropStatements> -->
706 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdeta6649942018-12-11 12:39:11 +0100707 </configuration>
708 </execution>
709 </executions>
sebdetc2bcf2a2019-02-22 08:16:26 +0100710
sebdeta6649942018-12-11 12:39:11 +0100711 </plugin>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100712 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
713 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200714 way -->
715 <plugin>
716 <groupId>io.github.swagger2markup</groupId>
717 <artifactId>swagger2markup-maven-plugin</artifactId>
718 <version>1.3.3</version>
719 <dependencies>
720 <dependency>
721 <groupId>io.github.swagger2markup</groupId>
722 <artifactId>swagger2markup-import-files-ext</artifactId>
723 <version>1.3.3</version>
724 </dependency>
725 <dependency>
726 <groupId>io.github.swagger2markup</groupId>
727 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
728 <version>1.3.3</version>
729 </dependency>
730 </dependencies>
731 <configuration>
732 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
733 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
734 <config>
735 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
736 </config>
737 </configuration>
738 <executions>
739 <execution>
740 <phase>post-integration-test</phase>
741 <goals>
742 <goal>convertSwagger2markup</goal>
743 </goals>
744 </execution>
745 </executions>
746 </plugin>
747
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100748 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200749 documentation types, such as PDFs or HTML5 -->
750 <plugin>
751 <groupId>org.asciidoctor</groupId>
752 <artifactId>asciidoctor-maven-plugin</artifactId>
753 <version>1.5.6</version>
754 <dependencies>
755 <dependency>
756 <groupId>org.asciidoctor</groupId>
757 <artifactId>asciidoctorj-pdf</artifactId>
758 <version>1.5.0-alpha.10.1</version>
759 </dependency>
760 <dependency>
761 <groupId>org.jruby</groupId>
762 <artifactId>jruby-complete</artifactId>
763 <version>1.7.21</version>
764 </dependency>
765 </dependencies>
766 <configuration>
767 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
768 <sourceDocumentName>swagger.adoc</sourceDocumentName>
769 <attributes>
770 <doctype>book</doctype>
771 <toc>left</toc>
772 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700773 <numbered/>
774 <hardbreaks/>
775 <sectlinks/>
776 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200777 <generated>${project.build.directory}/asciidoc/generated</generated>
778 </attributes>
779 </configuration>
780
781 <executions>
782 <execution>
783 <id>output-html</id>
784 <phase>post-integration-test</phase>
785 <goals>
786 <goal>process-asciidoc</goal>
787 </goals>
788 <configuration>
789 <backend>html5</backend>
790 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
791 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
792 </configuration>
793 </execution>
794 <execution>
795 <id>output-pdf</id>
796 <phase>post-integration-test</phase>
797 <goals>
798 <goal>process-asciidoc</goal>
799 </goals>
800 <configuration>
801 <backend>pdf</backend>
802 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
803 </configuration>
804 </execution>
805 </executions>
806 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100807 <plugin>
808 <groupId>org.codehaus.groovy.maven</groupId>
809 <artifactId>gmaven-plugin</artifactId>
810 <version>1.0</version>
811 <executions>
812 <execution>
813 <phase>validate</phase>
814 <goals>
815 <goal>execute</goal>
816 </goals>
817 <configuration>
818 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
819 </configuration>
820 </execution>
821 </executions>
822 </plugin>
823 <plugin>
824 <groupId>org.apache.maven.plugins</groupId>
825 <artifactId>maven-jar-plugin</artifactId>
826 <version>3.0.2</version>
827 <executions>
828 <execution>
829 <id>jar-with-only-classes</id>
830 <phase>package</phase>
831 <goals>
832 <goal>jar</goal>
833 </goals>
834 <configuration>
835 <classifier>classes</classifier>
836 <includes>
837 <include>org/**</include>
838 </includes>
839 </configuration>
840 </execution>
841 </executions>
842 </plugin>
843 <plugin>
844 <groupId>org.codehaus.mojo</groupId>
845 <artifactId>build-helper-maven-plugin</artifactId>
846 <version>3.0.0</version>
847 <executions>
848 <execution>
849 <goals>
850 <goal>attach-artifact</goal>
851 </goals>
852 <phase>package</phase>
853 <configuration>
854 <artifacts>
855 <artifact>
856 <file>${project.build.directory}/clamp-classes.jar</file>
857 <type>jar</type>
858 <classifier>classes</classifier>
859 </artifact>
860 </artifacts>
861 </configuration>
862 </execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100863 <execution>
864 <id>reserve-port-for-tests</id>
865 <phase>process-resources</phase>
866 <goals>
867 <goal>reserve-network-port</goal>
868 </goals>
869 <configuration>
870 <portNames>
871 <portName>docker.mariadb.port.host</portName>
872 <portName>docker.http-cache.port.host</portName>
873 <portName>clamp.it.tests.http-redirected</portName>
874 <portName>clamp.it.tests.https</portName>
875 <portName>clamp.it.tests.http</portName>
876 </portNames>
877 </configuration>
878 </execution>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100879 </executions>
880 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700881
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100882 <plugin>
883 <groupId>org.springframework.boot</groupId>
884 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200885 <!-- Temporary fix -->
886 <version>1.5.13.RELEASE</version>
887 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100888 <executions>
889 <execution>
890 <goals>
891 <goal>repackage</goal>
892 </goals>
893 <phase>package</phase>
894 </execution>
895 </executions>
896 </plugin>
897 <plugin>
898 <groupId>org.sonatype.plugins</groupId>
899 <artifactId>nexus-staging-maven-plugin</artifactId>
900 <version>1.6.7</version>
901 <extensions>true</extensions>
902 <configuration>
903 <nexusUrl>https://nexus.onap.org</nexusUrl>
904 <stagingProfileId>176c31dfe190a</stagingProfileId>
905 <serverId>ecomp-staging</serverId>
906 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
907 </configuration>
908 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200909
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100910 <plugin>
911 <groupId>org.apache.maven.plugins</groupId>
912 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100913 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100914 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100915 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100916 <reuseForks>true</reuseForks>
917 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100918 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100919 </configuration>
920 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200921
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100922 <plugin>
923 <groupId>org.apache.maven.plugins</groupId>
924 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100925 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100926 <executions>
927 <execution>
928 <id>integration-tests</id>
929 <goals>
930 <goal>integration-test</goal>
931 <goal>verify</goal>
932 </goals>
933 <configuration>
sebdet25793862018-11-08 17:11:10 +0100934 <additionalClasspathElements>
935 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
936 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100937 <includes>
938 <include>**/*ItCase.java</include>
939 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100940 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100941 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100942 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100943 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100944 </configuration>
945 </execution>
946 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200947
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100948 </plugin>
949 <plugin>
950 <groupId>io.fabric8</groupId>
951 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100952 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100953 <dependencies>
954 <dependency>
955 <groupId>org.apache.httpcomponents</groupId>
956 <artifactId>httpclient</artifactId>
957 <version>4.5.5</version>
958 </dependency>
959 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100960 <configuration>
961 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100962 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100963 <images>
964 <image>
sebdetc2bcf2a2019-02-22 08:16:26 +0100965 <name>library/mariadb:10.3.12</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100966 <alias>mariadb</alias>
967 <run>
968 <env>
969 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
970 </env>
971 <hostname>mariadb</hostname>
972 <volumes>
973 <bind>
974 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
975 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
976 </bind>
977 </volumes>
978 <wait>
979 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100980 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100981 </wait>
982 <ports>
983 <port>${docker.mariadb.port.host}:3306</port>
984 </ports>
985 </run>
986 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100987 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200988 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100989 <alias>python</alias>
990 <run>
991 <hostname>python</hostname>
992 <volumes>
993 <bind>
994 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100995 <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 +0100996 </bind>
997 </volumes>
998 <wait>
999 <tcp>
1000 <ports>
1001 <port>8080</port>
1002 </ports>
1003 <mode>direct</mode>
1004 </tcp>
1005 <time>120000</time>
1006 </wait>
1007 <ports>
1008 <port>${docker.http-cache.port.host}:8080</port>
1009 </ports>
1010 <workingDir>/usr/src/http-cache-app</workingDir>
1011 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +02001012 <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 +01001013 </cmd>
1014 </run>
1015 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001016 <image>
1017 <name>onap/clamp</name>
1018 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001019 <run>
1020 <skip>true</skip>
1021 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001022 <build>
1023 <cleanup>true</cleanup>
1024 <tags>
1025 <tag>latest</tag>
1026 <tag>${project.docker.latesttagtimestamp.version}</tag>
1027 <tag>${project.docker.latesttag.version}</tag>
1028 </tags>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +01001029 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001030 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001031 <dockerFile>Dockerfile</dockerFile>
1032 <assembly>
1033 <descriptor>assembly/clamp-files.xml</descriptor>
1034 <name>onap-clamp</name>
1035 </assembly>
1036 </build>
1037 </image>
ac255096f162e2018-09-18 10:07:58 +02001038 <image>
1039 <name>onap/clamp-dashboard-logstash</name>
1040 <alias>onap-clamp-dashboard-logstash</alias>
1041 <run>
1042 <skip>true</skip>
1043 </run>
1044 <build>
1045 <cleanup>true</cleanup>
1046 <tags>
1047 <tag>latest</tag>
1048 <tag>${project.docker.latesttagtimestamp.version}</tag>
1049 <tag>${project.docker.latesttag.version}</tag>
1050 </tags>
ac2550a61b86e2018-10-10 13:54:08 +02001051 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001052 </build>
1053 </image>
ac2550ead10512018-10-05 13:50:23 +02001054 <image>
1055 <name>onap/clamp-dashboard-kibana</name>
1056 <alias>onap-clamp-dashboard-kibana</alias>
1057 <run>
1058 <skip>true</skip>
1059 </run>
1060 <build>
1061 <cleanup>true</cleanup>
1062 <tags>
1063 <tag>latest</tag>
1064 <tag>${project.docker.latesttagtimestamp.version}</tag>
1065 <tag>${project.docker.latesttag.version}</tag>
1066 </tags>
1067 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1068 </build>
1069 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001070 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001071 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001072
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001073 <executions>
1074 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001075 <id>generate-images</id>
1076 <phase>install</phase>
1077 <goals>
1078 <goal>build</goal>
1079 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001080 </execution>
1081 <execution>
1082 <id>push-images</id>
1083 <phase>deploy</phase>
1084 <goals>
1085 <goal>push</goal>
1086 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001087 </execution>
1088 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001089 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001090 <phase>pre-integration-test</phase>
1091 <goals>
1092 <goal>start</goal>
1093 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001094 </execution>
1095 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001096 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001097 <phase>post-integration-test</phase>
1098 <goals>
1099 <goal>stop</goal>
1100 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001101 </execution>
1102 </executions>
1103 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001104
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001105 <plugin>
1106 <groupId>org.jacoco</groupId>
1107 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001108 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001109 <configuration>
1110 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001111 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001112 <includes>
1113 <include>org.onap.clamp.*</include>
1114 </includes>
1115 </configuration>
1116 <executions>
1117 <execution>
1118 <id>pre-unit-test</id>
1119 <goals>
1120 <goal>prepare-agent</goal>
1121 </goals>
1122 <configuration>
1123 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001124 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001125 <!-- <append>true</append> -->
1126 </configuration>
1127 </execution>
1128 <execution>
1129 <id>pre-integration-test</id>
1130 <phase>pre-integration-test</phase>
1131 <goals>
1132 <goal>prepare-agent</goal>
1133 </goals>
1134 <configuration>
1135 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001136 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001137 <!-- <append>true</append> -->
1138 </configuration>
1139 </execution>
1140 <execution>
1141 <goals>
1142 <goal>merge</goal>
1143 </goals>
1144 <phase>post-integration-test</phase>
1145 <configuration>
1146 <fileSets>
1147 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1148 <directory>${project.build.directory}/coverage-reports</directory>
1149 <includes>
1150 <include>*.exec</include>
1151 </includes>
1152 </fileSet>
1153 </fileSets>
1154 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1155 </configuration>
1156 </execution>
1157 </executions>
1158 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001159
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001160 <!-- This plugin will be useful when we will have multi-modules project -->
1161 <plugin>
1162 <groupId>org.codehaus.mojo</groupId>
1163 <artifactId>versions-maven-plugin</artifactId>
1164 <version>1.3.1</version>
1165 </plugin>
sebdete4422002018-10-16 17:47:54 +02001166
1167 <plugin>
1168 <groupId>com.github.eirslett</groupId>
1169 <artifactId>frontend-maven-plugin</artifactId>
1170 <version>1.6</version>
1171 <configuration>
1172 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1173 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1174 <skip>${maven.test.skip}</skip>
1175 </configuration>
1176
1177 <executions>
1178 <execution>
1179 <id>install_node_and_npm</id>
1180 <goals>
1181 <goal>install-node-and-npm</goal>
1182 </goals>
1183 <phase>test</phase>
1184 <configuration>
1185 <nodeVersion>v8.11.1</nodeVersion>
1186 <npmVersion>5.6.0</npmVersion>
1187 </configuration>
1188 </execution>
1189 <execution>
1190 <id>npm_install</id>
1191 <goals>
1192 <goal>npm</goal>
1193 </goals>
1194 <phase>test</phase>
1195 <configuration>
1196 <arguments>install</arguments>
1197 </configuration>
1198 </execution>
1199 <execution>
1200 <id>npm_test</id>
1201 <goals>
1202 <goal>npm</goal>
1203 </goals>
1204 <phase>test</phase>
1205 <configuration>
1206 <arguments>run-script test:coverage</arguments>
1207 </configuration>
1208 </execution>
1209
1210 </executions>
1211 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001212 </plugins>
1213 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001214</project>