blob: 0b0236a5f80ea7e78f28b14630ec51ce9fcd4622 [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>
ChrisCf3407c22019-03-13 10:45:58 +010033 <version>1.2.3</version>
sebdet6bcae192018-10-22 13:09:13 +020034 </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>
sebdet8356ed82019-04-08 14:39:39 +020067 <camel.version>2.23.1</camel.version>
68 <springboot.version>2.1.4.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/>
sebdetef6583c2019-04-08 18:29:32 +020091 <tomcat.version>9.0.16</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>
sebdet2e4242e2019-03-15 10:18:51 +0100165 <id>onap-public</id>
166 <name>onap-public</name>
167 <url>https://nexus.onap.org/content/repositories/public/</url>
168 <releases>
169 <enabled>true</enabled>
170 </releases>
171 <snapshots>
172 <enabled>false</enabled>
173 </snapshots>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100174 </repository>
175 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100176 <id>ecomp-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100177 <name>ONAP Release Repository</name>
178 <url>https://nexus.onap.org/content/repositories/releases/</url>
179 </repository>
180 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100181 <id>ecomp-staging</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100182 <name>ONAP Staging Repository</name>
183 <url>https://nexus.onap.org/content/repositories/staging/</url>
184 </repository>
185 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100186 <id>ecomp-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100187 <name>ONAP Snapshot Repository</name>
188 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
189 <snapshots>
190 <enabled>true</enabled>
191 </snapshots>
192 <releases>
193 <enabled>false</enabled>
194 </releases>
195 </repository>
196 <repository>
sebdet2e4242e2019-03-15 10:18:51 +0100197 <id>central</id>
198 <url>http://repo1.maven.org/maven2/</url>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100199 </repository>
200 </repositories>
sebdet2e4242e2019-03-15 10:18:51 +0100201 <pluginRepositories>
202 <pluginRepository>
203 <id>onap-public</id>
204 <name>onap-public</name>
205 <url>https://nexus.onap.org/content/repositories/public/</url>
206 <releases>
207 <enabled>true</enabled>
208 </releases>
209 <snapshots>
210 <enabled>false</enabled>
211 </snapshots>
212 </pluginRepository>
213 <pluginRepository>
214 <id>central</id>
215 <url>http://repo1.maven.org/maven2/</url>
216 </pluginRepository>
217 </pluginRepositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700218
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100219 <dependencyManagement>
220 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100221 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100222 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100225 <version>${springboot.version}</version>
226 <type>pom</type>
227 <scope>import</scope>
228 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100229 <!-- Camel BOM -->
230 <dependency>
231 <groupId>org.apache.camel</groupId>
232 <artifactId>camel-spring-boot-dependencies</artifactId>
233 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100234 <type>pom</type>
235 <scope>import</scope>
236 </dependency>
237 </dependencies>
238 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700239
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100240 <dependencies>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100241 <dependency>
242 <groupId>org.apache.xmlgraphics</groupId>
243 <artifactId>batik-svggen</artifactId>
244 <version>1.11</version>
245 </dependency>
246 <dependency>
247 <groupId>org.apache.xmlgraphics</groupId>
248 <artifactId>batik-svg-dom</artifactId>
249 <version>1.11</version>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.xmlgraphics</groupId>
253 <artifactId>batik-transcoder</artifactId>
254 <version>1.11</version>
255 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100256 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100257 <groupId>com.att.eelf</groupId>
258 <artifactId>eelf-core</artifactId>
259 <version>${eelf.core.version}</version>
260 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200261 <dependency>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200262 <groupId>org.codehaus.janino</groupId>
263 <artifactId>janino</artifactId>
264 <version>3.0.8</version>
265 </dependency>
266 <dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200267 <groupId>org.apache.tomcat.embed</groupId>
268 <artifactId>tomcat-embed-core</artifactId>
269 <version>${tomcat.version}</version>
270 </dependency>
271 <dependency>
272 <groupId>org.apache.tomcat.embed</groupId>
273 <artifactId>tomcat-embed-el</artifactId>
274 <version>${tomcat.version}</version>
275 </dependency>
276 <dependency>
277 <groupId>org.apache.tomcat.embed</groupId>
278 <artifactId>tomcat-embed-websocket</artifactId>
279 <version>${tomcat.version}</version>
280 </dependency>
281 <dependency>
282 <groupId>org.apache.tomcat</groupId>
283 <artifactId>tomcat-annotations-api</artifactId>
284 <version>${tomcat.version}</version>
285 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100286 <!-- For CAMEL -->
287 <dependency>
sebdetdfa86ca2019-04-05 15:15:31 +0200288 <groupId>org.apache.camel</groupId>
289 <artifactId>camel-http4</artifactId>
290 </dependency>
291 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100292 <groupId>org.apache.camel</groupId>
293 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100294 </dependency>
295 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100296 <groupId>org.apache.camel</groupId>
297 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100298 </dependency>
299 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100300 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100301 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100302 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200303 <dependency>
sebdet00109a02019-02-15 15:30:05 +0100304 <groupId>org.apache.camel</groupId>
305 <artifactId>camel-gson-starter</artifactId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200306 </dependency>
307 <dependency>
308 <groupId>org.apache.camel</groupId>
309 <artifactId>camel-swagger-java-starter</artifactId>
310 <exclusions>
311 <exclusion>
312 <groupId>javax.ws.rs</groupId>
313 <artifactId>jsr311-api</artifactId>
314 </exclusion>
Determe, Sebastien (sd378r)db25b622018-08-06 15:30:35 +0200315 <exclusion>
316 <groupId>org.slf4j</groupId>
317 <artifactId>slf4j-ext</artifactId>
318 </exclusion>
sebdet00109a02019-02-15 15:30:05 +0100319 <exclusion>
320 <groupId>com.fasterxml.jackson.core</groupId>
321 <artifactId>jackson-databind</artifactId>
322 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200323 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200324 </dependency>
325 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200326 <groupId>javax.xml.bind</groupId>
327 <artifactId>jaxb-api</artifactId>
328 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200329 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200330 <dependency>
331 <groupId>org.glassfish.jersey.core</groupId>
332 <artifactId>jersey-common</artifactId>
333 <version>2.27</version>
334 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100335 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100336 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100337 <groupId>org.springframework.boot</groupId>
338 <artifactId>spring-boot-starter-web</artifactId>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100339 <exclusions>
340 <exclusion>
341 <groupId>org.springframework.boot</groupId>
342 <artifactId>spring-boot-starter-json</artifactId>
343 </exclusion>
344 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100345 </dependency>
346 <dependency>
347 <groupId>org.springframework.boot</groupId>
348 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100349 </dependency>
350 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100351 <groupId>org.springframework</groupId>
352 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100353 </dependency>
354 <dependency>
355 <groupId>org.springframework.boot</groupId>
356 <artifactId>spring-boot-starter-security</artifactId>
357 </dependency>
358 <dependency>
359 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200360 <artifactId>spring-boot-autoconfigure</artifactId>
361 </dependency>
362 <dependency>
363 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100364 <artifactId>spring-boot-starter-test</artifactId>
365 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100366 <exclusions>
367 <exclusion>
368 <groupId>com.vaadin.external.google</groupId>
369 <artifactId>android-json</artifactId>
370 </exclusion>
371 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100372 </dependency>
sebdetc2bcf2a2019-02-22 08:16:26 +0100373 <dependency>
374 <groupId>org.springframework.boot</groupId>
375 <artifactId>spring-boot-starter-data-jpa</artifactId>
376 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100377 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100378 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200379 <groupId>org.onap.aaf.authz</groupId>
380 <artifactId>aaf-cadi-aaf</artifactId>
ChrisC989f4062019-04-05 16:24:13 +0200381 <version>2.1.10</version>
xg353ye6409552018-05-08 16:21:39 +0200382 <exclusions>
383 <exclusion>
384 <groupId>javax.servlet</groupId>
385 <artifactId>servlet-api</artifactId>
386 </exclusion>
387 </exclusions>
388 </dependency>
389 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100390 <groupId>ch.qos.logback</groupId>
391 <artifactId>logback-core</artifactId>
392 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100393 </dependency>
394 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100395 <groupId>ch.qos.logback</groupId>
396 <artifactId>logback-classic</artifactId>
397 <version>1.2.3</version>
398 </dependency>
399 <dependency>
400 <groupId>commons-dbcp</groupId>
401 <artifactId>commons-dbcp</artifactId>
402 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100403 </dependency>
404 <dependency>
405 <groupId>commons-io</groupId>
406 <artifactId>commons-io</artifactId>
407 <version>2.6</version>
408 </dependency>
409 <dependency>
410 <groupId>com.googlecode.json-simple</groupId>
411 <artifactId>json-simple</artifactId>
sebdet8356ed82019-04-08 14:39:39 +0200412 <version>1.1.1</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100413 </dependency>
414 <dependency>
415 <groupId>org.apache.commons</groupId>
416 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100417 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100418 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100419 <dependency>
420 <groupId>joda-time</groupId>
421 <artifactId>joda-time</artifactId>
422 </dependency>
423 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100424 <groupId>org.slf4j</groupId>
425 <artifactId>slf4j-api</artifactId>
426 </dependency>
427 <dependency>
428 <groupId>javax.ws.rs</groupId>
429 <artifactId>javax.ws.rs-api</artifactId>
430 <version>2.0</version>
431 </dependency>
432 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100433 <groupId>junit</groupId>
434 <artifactId>junit</artifactId>
435 </dependency>
436 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100437 <groupId>javax.transaction</groupId>
438 <artifactId>jta</artifactId>
439 <version>1.1</version>
440 </dependency>
441 <dependency>
442 <groupId>javax.persistence</groupId>
443 <artifactId>persistence-api</artifactId>
444 <version>1.0.2</version>
445 </dependency>
446 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100447 <groupId>org.onap.policy.engine</groupId>
448 <artifactId>PolicyEngineAPI</artifactId>
sebdetd72d0d02018-12-01 15:09:54 +0100449 <version>1.3.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100450 <exclusions>
451 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500452 <groupId>com.google.guava</groupId>
453 <artifactId>guava</artifactId>
454 </exclusion>
455 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100456 <artifactId>log4j</artifactId>
457 <groupId>log4j</groupId>
458 </exclusion>
459 <exclusion>
460 <groupId>org.slf4j</groupId>
461 <artifactId>slf4j-log4j12</artifactId>
462 </exclusion>
463 <exclusion>
464 <artifactId>apache-log4j-extras</artifactId>
465 <groupId>log4j</groupId>
466 </exclusion>
467 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100468 <groupId>mysql</groupId>
469 <artifactId>mysql-connector-java</artifactId>
470 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100471 <exclusion>
472 <groupId>commons-io</groupId>
473 <artifactId>commons-io</artifactId>
474 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200475 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200476 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200477 <groupId>org.glassfish.grizzly</groupId>
478 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200479 <exclusion>
480 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
481 <artifactId>dmaapClient</artifactId>
482 </exclusion>
483 <exclusion>
484 <groupId>org.onap.policy.common</groupId>
485 <artifactId>integrity-monitor</artifactId>
486 </exclusion>
487 <exclusion>
488 <groupId>org.onap.policy.common</groupId>
489 <artifactId>integrity-audit</artifactId>
490 </exclusion>
491 <exclusion>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100492 <groupId>com.fasterxml.jackson.core</groupId>
493 <artifactId>jackson-databind</artifactId>
494 </exclusion>
495 <exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200496 <groupId>org.onap.aaf.cadi</groupId>
497 <artifactId>cadi-aaf</artifactId>
498 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200499 <exclusion>
500 <groupId>javax.jms</groupId>
501 <artifactId>jms</artifactId>
502 </exclusion>
sebdet7fcbe522018-10-22 14:45:34 +0200503 <exclusion>
504 <groupId>commons-fileupload</groupId>
505 <artifactId>commons-fileupload</artifactId>
506 </exclusion>
sebdetac4958a2018-11-05 14:12:48 +0100507 <exclusion>
508 <groupId>com.att.research.xacml</groupId>
509 <artifactId>xacml</artifactId>
510 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100511 </exclusions>
512 </dependency>
513 <dependency>
514 <groupId>org.onap.policy.common</groupId>
515 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200516 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100517 <exclusions>
518 <exclusion>
519 <artifactId>log4j</artifactId>
520 <groupId>log4j</groupId>
521 </exclusion>
522 <exclusion>
523 <groupId>org.slf4j</groupId>
524 <artifactId>slf4j-log4j12</artifactId>
525 </exclusion>
526 <exclusion>
527 <artifactId>apache-log4j-extras</artifactId>
528 <groupId>log4j</groupId>
529 </exclusion>
530 </exclusions>
531 </dependency>
532 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200533 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100534 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200535 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100536 <exclusions>
537 <exclusion>
538 <artifactId>log4j</artifactId>
539 <groupId>log4j</groupId>
540 </exclusion>
541 <exclusion>
542 <groupId>org.slf4j</groupId>
543 <artifactId>slf4j-log4j12</artifactId>
544 </exclusion>
545 <exclusion>
546 <artifactId>apache-log4j-extras</artifactId>
547 <groupId>log4j</groupId>
548 </exclusion>
549 </exclusions>
550 </dependency>
551 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200552 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100553 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200554 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100555 <exclusions>
556 <exclusion>
557 <artifactId>log4j</artifactId>
558 <groupId>log4j</groupId>
559 </exclusion>
560 <exclusion>
561 <groupId>org.slf4j</groupId>
562 <artifactId>slf4j-log4j12</artifactId>
563 </exclusion>
564 <exclusion>
565 <artifactId>apache-log4j-extras</artifactId>
566 <groupId>log4j</groupId>
567 </exclusion>
568 </exclusions>
569 </dependency>
570 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200571 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100572 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200573 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100574 <exclusions>
575 <exclusion>
576 <artifactId>log4j</artifactId>
577 <groupId>log4j</groupId>
578 </exclusion>
579 <exclusion>
580 <groupId>org.slf4j</groupId>
581 <artifactId>slf4j-log4j12</artifactId>
582 </exclusion>
583 <exclusion>
584 <artifactId>apache-log4j-extras</artifactId>
585 <groupId>log4j</groupId>
586 </exclusion>
587 </exclusions>
588 </dependency>
589 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100590 <groupId>org.apache.commons</groupId>
591 <artifactId>commons-csv</artifactId>
592 <version>1.3</version>
593 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100594 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
595 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200596 <groupId>org.codehaus.plexus</groupId>
597 <artifactId>plexus-utils</artifactId>
598 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100599 </dependency>
600 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200601 <groupId>org.jboss.spec.javax.ws.rs</groupId>
602 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
603 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100604 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200605 <dependency>
606 <groupId>com.google.guava</groupId>
607 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200608 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100609 <!-- Remove the MYSQL connector and replace it by Mariadb -->
610 <dependency>
611 <groupId>org.mariadb.jdbc</groupId>
612 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100613 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100614 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100615 <!-- For SDC Controller -->
616 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200617 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100618 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200619 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100620 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100621 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200622 <groupId>org.onap.sdc.sdc-tosca</groupId>
623 <artifactId>sdc-tosca</artifactId>
sebdet12cf41b2019-04-23 11:09:54 +0200624 <version>1.5.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100625 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200626 <!-- TESTING -->
627 <dependency>
628 <groupId>org.assertj</groupId>
629 <artifactId>assertj-core</artifactId>
630 <version>3.10.0</version>
631 <scope>test</scope>
632 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200633 <dependency>
634 <groupId>org.mockito</groupId>
635 <artifactId>mockito-core</artifactId>
636 <version>1.10.19</version>
637 <scope>test</scope>
638 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200639 </dependencies>
sebdet2e4242e2019-03-15 10:18:51 +0100640
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100641 <build>
642 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700643
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100644 <testResources>
645 <testResource>
646 <directory>src/test/resources</directory>
647 <excludes>
648 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100649 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100650 </excludes>
651 <filtering>true</filtering>
652 </testResource>
653 <testResource>
654 <directory>src/test/resources/https</directory>
655 <includes>
656 <include>**.jks</include>
657 </includes>
658 <filtering>false</filtering>
659 <targetPath>https</targetPath>
660 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200661 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100662 <directory>src/test/resources/example/sdc</directory>
663 <includes>
664 <include>**.csar</include>
665 </includes>
666 <filtering>false</filtering>
667 <targetPath>example/sdc</targetPath>
668 </testResource>
sebdete4422002018-10-16 17:47:54 +0200669
670 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
671 <testResource>
672 <directory>src/test/javascript</directory>
673 <includes>
674 <include>**/**.json</include>
675 </includes>
676 <filtering>true</filtering>
677 <targetPath>${project.build.directory}/clamp-ui</targetPath>
678 </testResource>
679 <testResource>
680 <directory>src/main/resources/META-INF/resources/designer</directory>
681 <filtering>false</filtering>
682 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
683 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100684 </testResources>
685 <resources>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100686 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200687 Otherwise they will be broken and unreadable
688 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100689 <resource>
690 <directory>src/main/resources</directory>
691 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200692 <excludes>
693 <exclude>clds/aaf/**</exclude>
694 </excludes>
695 </resource>
696 <resource>
697 <directory>src/main/resources</directory>
698 <filtering>false</filtering>
699 <includes>
700 <include>clds/aaf/**</include>
701 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100702 </resource>
703 <resource>
704 <directory>src/main/docker</directory>
705 <includes>
706 <include>**/*</include>
707 </includes>
708 <filtering>true</filtering>
709 </resource>
710 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700711
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100712 <plugins>
sebdeta6649942018-12-11 12:39:11 +0100713 <plugin>
sebdetc2bcf2a2019-02-22 08:16:26 +0100714 <groupId>de.jpdigital</groupId>
715 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
716 <version>2.2.0</version>
ChrisC11520d62019-03-12 16:45:43 +0100717 <dependencies>
718 <dependency>
719 <groupId>javax.xml.bind</groupId>
720 <artifactId>jaxb-api</artifactId>
721 <version>2.3.0</version>
722 </dependency>
723 </dependencies>
sebdeta6649942018-12-11 12:39:11 +0100724 <executions>
725 <execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100726 <phase>process-classes</phase>
sebdeta6649942018-12-11 12:39:11 +0100727 <goals>
sebdetc2bcf2a2019-02-22 08:16:26 +0100728 <goal>gen-ddl</goal>
sebdeta6649942018-12-11 12:39:11 +0100729 </goals>
730 <configuration>
sebdetc2bcf2a2019-02-22 08:16:26 +0100731 <packages><param>org.onap.clamp.dao.model</param></packages>
732 <dialects><param>MARIADB53</param></dialects>
733 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
734 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
735 <!-- <createDropStatements>true</createDropStatements> -->
736 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdeta6649942018-12-11 12:39:11 +0100737 </configuration>
738 </execution>
739 </executions>
ChrisC11520d62019-03-12 16:45:43 +0100740
sebdeta6649942018-12-11 12:39:11 +0100741 </plugin>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100742 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
743 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200744 way -->
745 <plugin>
746 <groupId>io.github.swagger2markup</groupId>
747 <artifactId>swagger2markup-maven-plugin</artifactId>
748 <version>1.3.3</version>
749 <dependencies>
750 <dependency>
751 <groupId>io.github.swagger2markup</groupId>
752 <artifactId>swagger2markup-import-files-ext</artifactId>
753 <version>1.3.3</version>
754 </dependency>
755 <dependency>
756 <groupId>io.github.swagger2markup</groupId>
757 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
758 <version>1.3.3</version>
759 </dependency>
760 </dependencies>
761 <configuration>
762 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
763 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
764 <config>
765 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
766 </config>
767 </configuration>
768 <executions>
769 <execution>
770 <phase>post-integration-test</phase>
771 <goals>
772 <goal>convertSwagger2markup</goal>
773 </goals>
774 </execution>
775 </executions>
776 </plugin>
777
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100778 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200779 documentation types, such as PDFs or HTML5 -->
780 <plugin>
781 <groupId>org.asciidoctor</groupId>
782 <artifactId>asciidoctor-maven-plugin</artifactId>
ChrisC11520d62019-03-12 16:45:43 +0100783 <version>1.5.7.1</version>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200784 <dependencies>
785 <dependency>
786 <groupId>org.asciidoctor</groupId>
787 <artifactId>asciidoctorj-pdf</artifactId>
788 <version>1.5.0-alpha.10.1</version>
789 </dependency>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200790 </dependencies>
791 <configuration>
792 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
793 <sourceDocumentName>swagger.adoc</sourceDocumentName>
794 <attributes>
795 <doctype>book</doctype>
796 <toc>left</toc>
797 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700798 <numbered/>
799 <hardbreaks/>
800 <sectlinks/>
801 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200802 <generated>${project.build.directory}/asciidoc/generated</generated>
803 </attributes>
804 </configuration>
805
806 <executions>
807 <execution>
808 <id>output-html</id>
809 <phase>post-integration-test</phase>
810 <goals>
811 <goal>process-asciidoc</goal>
812 </goals>
813 <configuration>
814 <backend>html5</backend>
815 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
816 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
817 </configuration>
818 </execution>
819 <execution>
820 <id>output-pdf</id>
821 <phase>post-integration-test</phase>
822 <goals>
823 <goal>process-asciidoc</goal>
824 </goals>
825 <configuration>
826 <backend>pdf</backend>
827 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
828 </configuration>
829 </execution>
830 </executions>
831 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100832 <plugin>
833 <groupId>org.codehaus.groovy.maven</groupId>
834 <artifactId>gmaven-plugin</artifactId>
835 <version>1.0</version>
836 <executions>
837 <execution>
838 <phase>validate</phase>
839 <goals>
840 <goal>execute</goal>
841 </goals>
842 <configuration>
843 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
844 </configuration>
845 </execution>
846 </executions>
847 </plugin>
848 <plugin>
849 <groupId>org.apache.maven.plugins</groupId>
850 <artifactId>maven-jar-plugin</artifactId>
851 <version>3.0.2</version>
852 <executions>
853 <execution>
854 <id>jar-with-only-classes</id>
855 <phase>package</phase>
856 <goals>
857 <goal>jar</goal>
858 </goals>
859 <configuration>
860 <classifier>classes</classifier>
861 <includes>
862 <include>org/**</include>
863 </includes>
864 </configuration>
865 </execution>
866 </executions>
867 </plugin>
868 <plugin>
869 <groupId>org.codehaus.mojo</groupId>
870 <artifactId>build-helper-maven-plugin</artifactId>
871 <version>3.0.0</version>
872 <executions>
873 <execution>
874 <goals>
875 <goal>attach-artifact</goal>
876 </goals>
877 <phase>package</phase>
878 <configuration>
879 <artifacts>
880 <artifact>
881 <file>${project.build.directory}/clamp-classes.jar</file>
882 <type>jar</type>
883 <classifier>classes</classifier>
884 </artifact>
885 </artifacts>
886 </configuration>
887 </execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100888 <execution>
889 <id>reserve-port-for-tests</id>
890 <phase>process-resources</phase>
891 <goals>
892 <goal>reserve-network-port</goal>
893 </goals>
894 <configuration>
895 <portNames>
896 <portName>docker.mariadb.port.host</portName>
897 <portName>docker.http-cache.port.host</portName>
898 <portName>clamp.it.tests.http-redirected</portName>
899 <portName>clamp.it.tests.https</portName>
900 <portName>clamp.it.tests.http</portName>
901 </portNames>
902 </configuration>
903 </execution>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100904 </executions>
905 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700906
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100907 <plugin>
908 <groupId>org.springframework.boot</groupId>
909 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200910 <!-- Temporary fix -->
911 <version>1.5.13.RELEASE</version>
912 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100913 <executions>
914 <execution>
915 <goals>
916 <goal>repackage</goal>
917 </goals>
918 <phase>package</phase>
919 </execution>
920 </executions>
921 </plugin>
922 <plugin>
923 <groupId>org.sonatype.plugins</groupId>
924 <artifactId>nexus-staging-maven-plugin</artifactId>
925 <version>1.6.7</version>
926 <extensions>true</extensions>
927 <configuration>
928 <nexusUrl>https://nexus.onap.org</nexusUrl>
929 <stagingProfileId>176c31dfe190a</stagingProfileId>
930 <serverId>ecomp-staging</serverId>
931 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
932 </configuration>
933 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200934
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100935 <plugin>
936 <groupId>org.apache.maven.plugins</groupId>
937 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100938 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100939 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100940 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100941 <reuseForks>true</reuseForks>
942 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100943 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100944 </configuration>
945 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200946
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100947 <plugin>
948 <groupId>org.apache.maven.plugins</groupId>
949 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100950 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100951 <executions>
952 <execution>
953 <id>integration-tests</id>
954 <goals>
955 <goal>integration-test</goal>
956 <goal>verify</goal>
957 </goals>
958 <configuration>
sebdet25793862018-11-08 17:11:10 +0100959 <additionalClasspathElements>
960 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
961 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100962 <includes>
963 <include>**/*ItCase.java</include>
964 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100965 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100966 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100967 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100968 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100969 </configuration>
970 </execution>
971 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200972
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100973 </plugin>
974 <plugin>
975 <groupId>io.fabric8</groupId>
976 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100977 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100978 <dependencies>
979 <dependency>
980 <groupId>org.apache.httpcomponents</groupId>
981 <artifactId>httpclient</artifactId>
982 <version>4.5.5</version>
983 </dependency>
984 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100985 <configuration>
986 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100987 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100988 <images>
989 <image>
sebdetc2bcf2a2019-02-22 08:16:26 +0100990 <name>library/mariadb:10.3.12</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100991 <alias>mariadb</alias>
992 <run>
993 <env>
994 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
995 </env>
996 <hostname>mariadb</hostname>
997 <volumes>
998 <bind>
999 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
1000 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
1001 </bind>
1002 </volumes>
1003 <wait>
1004 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +01001005 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001006 </wait>
1007 <ports>
1008 <port>${docker.mariadb.port.host}:3306</port>
1009 </ports>
1010 </run>
1011 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001012 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001013 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001014 <alias>python</alias>
1015 <run>
1016 <hostname>python</hostname>
1017 <volumes>
1018 <bind>
1019 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +01001020 <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 +01001021 </bind>
1022 </volumes>
1023 <wait>
1024 <tcp>
1025 <ports>
1026 <port>8080</port>
1027 </ports>
1028 <mode>direct</mode>
1029 </tcp>
1030 <time>120000</time>
1031 </wait>
1032 <ports>
1033 <port>${docker.http-cache.port.host}:8080</port>
1034 </ports>
1035 <workingDir>/usr/src/http-cache-app</workingDir>
1036 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +02001037 <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 +01001038 </cmd>
1039 </run>
1040 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001041 <image>
1042 <name>onap/clamp</name>
1043 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001044 <run>
1045 <skip>true</skip>
1046 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001047 <build>
1048 <cleanup>true</cleanup>
1049 <tags>
1050 <tag>latest</tag>
1051 <tag>${project.docker.latesttagtimestamp.version}</tag>
1052 <tag>${project.docker.latesttag.version}</tag>
1053 </tags>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +01001054 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001055 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001056 <dockerFile>Dockerfile</dockerFile>
1057 <assembly>
1058 <descriptor>assembly/clamp-files.xml</descriptor>
1059 <name>onap-clamp</name>
1060 </assembly>
1061 </build>
1062 </image>
ac255096f162e2018-09-18 10:07:58 +02001063 <image>
1064 <name>onap/clamp-dashboard-logstash</name>
1065 <alias>onap-clamp-dashboard-logstash</alias>
1066 <run>
1067 <skip>true</skip>
1068 </run>
1069 <build>
1070 <cleanup>true</cleanup>
1071 <tags>
1072 <tag>latest</tag>
1073 <tag>${project.docker.latesttagtimestamp.version}</tag>
1074 <tag>${project.docker.latesttag.version}</tag>
1075 </tags>
ac2550a61b86e2018-10-10 13:54:08 +02001076 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001077 </build>
1078 </image>
ac2550ead10512018-10-05 13:50:23 +02001079 <image>
1080 <name>onap/clamp-dashboard-kibana</name>
1081 <alias>onap-clamp-dashboard-kibana</alias>
1082 <run>
1083 <skip>true</skip>
1084 </run>
1085 <build>
1086 <cleanup>true</cleanup>
1087 <tags>
1088 <tag>latest</tag>
1089 <tag>${project.docker.latesttagtimestamp.version}</tag>
1090 <tag>${project.docker.latesttag.version}</tag>
1091 </tags>
1092 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1093 </build>
1094 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001095 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001096 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001097
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001098 <executions>
1099 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001100 <id>generate-images</id>
1101 <phase>install</phase>
1102 <goals>
1103 <goal>build</goal>
1104 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001105 </execution>
1106 <execution>
1107 <id>push-images</id>
1108 <phase>deploy</phase>
1109 <goals>
1110 <goal>push</goal>
1111 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001112 </execution>
1113 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001114 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001115 <phase>pre-integration-test</phase>
1116 <goals>
1117 <goal>start</goal>
1118 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001119 </execution>
1120 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001121 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001122 <phase>post-integration-test</phase>
1123 <goals>
1124 <goal>stop</goal>
1125 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001126 </execution>
1127 </executions>
1128 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001129
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001130 <plugin>
1131 <groupId>org.jacoco</groupId>
1132 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001133 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001134 <configuration>
1135 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001136 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001137 <includes>
1138 <include>org.onap.clamp.*</include>
1139 </includes>
1140 </configuration>
1141 <executions>
1142 <execution>
1143 <id>pre-unit-test</id>
1144 <goals>
1145 <goal>prepare-agent</goal>
1146 </goals>
1147 <configuration>
1148 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001149 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001150 <!-- <append>true</append> -->
1151 </configuration>
1152 </execution>
1153 <execution>
1154 <id>pre-integration-test</id>
1155 <phase>pre-integration-test</phase>
1156 <goals>
1157 <goal>prepare-agent</goal>
1158 </goals>
1159 <configuration>
1160 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001161 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001162 <!-- <append>true</append> -->
1163 </configuration>
1164 </execution>
1165 <execution>
1166 <goals>
1167 <goal>merge</goal>
1168 </goals>
1169 <phase>post-integration-test</phase>
1170 <configuration>
1171 <fileSets>
1172 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1173 <directory>${project.build.directory}/coverage-reports</directory>
1174 <includes>
1175 <include>*.exec</include>
1176 </includes>
1177 </fileSet>
1178 </fileSets>
1179 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1180 </configuration>
1181 </execution>
1182 </executions>
1183 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001184
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001185 <!-- This plugin will be useful when we will have multi-modules project -->
1186 <plugin>
1187 <groupId>org.codehaus.mojo</groupId>
1188 <artifactId>versions-maven-plugin</artifactId>
1189 <version>1.3.1</version>
1190 </plugin>
sebdete4422002018-10-16 17:47:54 +02001191
1192 <plugin>
1193 <groupId>com.github.eirslett</groupId>
1194 <artifactId>frontend-maven-plugin</artifactId>
1195 <version>1.6</version>
1196 <configuration>
1197 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1198 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1199 <skip>${maven.test.skip}</skip>
1200 </configuration>
1201
1202 <executions>
1203 <execution>
1204 <id>install_node_and_npm</id>
1205 <goals>
1206 <goal>install-node-and-npm</goal>
1207 </goals>
1208 <phase>test</phase>
1209 <configuration>
1210 <nodeVersion>v8.11.1</nodeVersion>
1211 <npmVersion>5.6.0</npmVersion>
1212 </configuration>
1213 </execution>
1214 <execution>
1215 <id>npm_install</id>
1216 <goals>
1217 <goal>npm</goal>
1218 </goals>
1219 <phase>test</phase>
1220 <configuration>
1221 <arguments>install</arguments>
1222 </configuration>
1223 </execution>
1224 <execution>
1225 <id>npm_test</id>
1226 <goals>
1227 <goal>npm</goal>
1228 </goals>
1229 <phase>test</phase>
1230 <configuration>
1231 <arguments>run-script test:coverage</arguments>
1232 </configuration>
1233 </execution>
1234
1235 </executions>
1236 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001237 </plugins>
1238 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001239</project>