blob: 79cf2a98240af5b11fee8ea22e3ee164b53ff333 [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>
sebdete9c644b2019-06-05 18:46:10 +020027 <version>4.1.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010028 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070029
sebdeta5243a42019-06-13 13:48:04 +020030
31 <parent>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>2.0.0</version>
35 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070036
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010037 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010038 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 -070039
40 By Default "mvn clean install" command will execute also the unit tests
41 and the integration tests. The integration tests require a docker engine running.
42
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020043 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070044 "mvn clean install -DskipITs=true"
45
46 For Spring it's possible to specify the application.properties location
47 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
48
49 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010050 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
51 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080052
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010053 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070054
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010055 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070056 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010057 <clamp.project.version>${project.version}</clamp.project.version>
58 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
59 <maven.compiler.source>1.8</maven.compiler.source>
60 <maven.compiler.target>1.8</maven.compiler.target>
61 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
62 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070063
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010064 <eelf.core.version>1.0.0</eelf.core.version>
sebdet09bc8452019-05-23 17:34:07 +020065 <camel.version>2.24.0</camel.version>
66 <springboot.version>2.1.5.RELEASE</springboot.version>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +010067
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010068 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
69 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
70 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
71 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
72 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
73 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sebdet2f224052018-10-23 17:44:36 +020074 <!-- Enable language to disable javascript analysis -->
75 <sonar.language>java</sonar.language>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +010076 <!-- Parameters for Javascript coverage
sebdet2f224052018-10-23 17:44:36 +020077 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
78 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
79 -->
sebdete4422002018-10-16 17:47:54 +020080 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
ChrisC5e9feb22017-06-21 02:38:57 -070081
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010082 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020083 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020084 <docker.skip.build>true</docker.skip.build>
85 <docker.skip.push>true</docker.skip.push>
86 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010087 <skip.staging.artifacts>false</skip.staging.artifacts>
Gary Wu3a0d0272018-08-24 15:18:20 -070088 <python.http.proxy.param/>
sebdet09bc8452019-05-23 17:34:07 +020089 <tomcat.version>9.0.20</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010090 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070091
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020092 <profiles>
93 <profile>
94 <id>without-test</id>
95 <activation>
96 <property>
97 <name>maven.test.skip</name>
98 <value>true</value>
99 </property>
100 </activation>
101 <properties>
102 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200103 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200104 </properties>
105 </profile>
106 <profile>
107 <id>without-IT-only</id>
108 <activation>
109 <property>
110 <name>skipITs</name>
111 <value>true</value>
112 </property>
113 </activation>
114 <properties>
115 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200116 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200117 </properties>
118 </profile>
119 <profile>
120 <id>without-IT-only2</id>
121 <activation>
122 <property>
123 <name>skipTests</name>
124 <value>true</value>
125 </property>
126 </activation>
127 <properties>
128 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200129 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200130 </properties>
131 </profile>
132 <profile>
133 <id>docker</id>
134 <properties>
135 <skip.staging.artifacts>true</skip.staging.artifacts>
136 <docker.skip.build>false</docker.skip.build>
137 <docker.skip.tag>false</docker.skip.tag>
138 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200139 <docker.skip>false</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200140 </properties>
141 </profile>
142 </profiles>
143
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100144 <distributionManagement>
145 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100146 <id>ecomp-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100147 <name>Clamp Release Repository</name>
148 <url>https://nexus.onap.org/content/repositories/releases/</url>
149 </repository>
150 <snapshotRepository>
sebdet1a6b7192019-02-22 08:28:47 +0100151 <id>ecomp-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100152 <name>Clamp Snapshot Repository</name>
153 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154 </snapshotRepository>
155 <site>
sebdet1a6b7192019-02-22 08:28:47 +0100156 <id>ecomp-site</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100157 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
158 </site>
159 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700160
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100161 <repositories>
162 <repository>
sebdet2e4242e2019-03-15 10:18:51 +0100163 <id>onap-public</id>
164 <name>onap-public</name>
165 <url>https://nexus.onap.org/content/repositories/public/</url>
166 <releases>
167 <enabled>true</enabled>
168 </releases>
169 <snapshots>
170 <enabled>false</enabled>
171 </snapshots>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100172 </repository>
173 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100174 <id>ecomp-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100175 <name>ONAP Release Repository</name>
176 <url>https://nexus.onap.org/content/repositories/releases/</url>
177 </repository>
178 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100179 <id>ecomp-staging</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100180 <name>ONAP Staging Repository</name>
181 <url>https://nexus.onap.org/content/repositories/staging/</url>
182 </repository>
183 <repository>
sebdet1a6b7192019-02-22 08:28:47 +0100184 <id>ecomp-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100185 <name>ONAP Snapshot Repository</name>
186 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
187 <snapshots>
188 <enabled>true</enabled>
189 </snapshots>
190 <releases>
191 <enabled>false</enabled>
192 </releases>
193 </repository>
194 <repository>
sebdet2e4242e2019-03-15 10:18:51 +0100195 <id>central</id>
196 <url>http://repo1.maven.org/maven2/</url>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100197 </repository>
198 </repositories>
sebdet2e4242e2019-03-15 10:18:51 +0100199 <pluginRepositories>
200 <pluginRepository>
201 <id>onap-public</id>
202 <name>onap-public</name>
203 <url>https://nexus.onap.org/content/repositories/public/</url>
204 <releases>
205 <enabled>true</enabled>
206 </releases>
207 <snapshots>
208 <enabled>false</enabled>
209 </snapshots>
210 </pluginRepository>
211 <pluginRepository>
212 <id>central</id>
213 <url>http://repo1.maven.org/maven2/</url>
214 </pluginRepository>
215 </pluginRepositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700216
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100217 <dependencyManagement>
218 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100219 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100220 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100221 <groupId>org.springframework.boot</groupId>
222 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100223 <version>${springboot.version}</version>
224 <type>pom</type>
225 <scope>import</scope>
226 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100227 <!-- Camel BOM -->
228 <dependency>
229 <groupId>org.apache.camel</groupId>
230 <artifactId>camel-spring-boot-dependencies</artifactId>
231 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100232 <type>pom</type>
233 <scope>import</scope>
234 </dependency>
235 </dependencies>
236 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700237
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100238 <dependencies>
Piotr Darosz6eb37422019-03-08 14:50:29 +0100239 <dependency>
240 <groupId>org.apache.xmlgraphics</groupId>
241 <artifactId>batik-svggen</artifactId>
242 <version>1.11</version>
243 </dependency>
244 <dependency>
245 <groupId>org.apache.xmlgraphics</groupId>
246 <artifactId>batik-svg-dom</artifactId>
247 <version>1.11</version>
248 </dependency>
249 <dependency>
250 <groupId>org.apache.xmlgraphics</groupId>
251 <artifactId>batik-transcoder</artifactId>
252 <version>1.11</version>
253 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100254 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100255 <groupId>com.att.eelf</groupId>
256 <artifactId>eelf-core</artifactId>
257 <version>${eelf.core.version}</version>
258 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200259 <dependency>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200260 <groupId>org.codehaus.janino</groupId>
261 <artifactId>janino</artifactId>
262 <version>3.0.8</version>
263 </dependency>
264 <dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200265 <groupId>org.apache.tomcat.embed</groupId>
266 <artifactId>tomcat-embed-core</artifactId>
267 <version>${tomcat.version}</version>
268 </dependency>
269 <dependency>
270 <groupId>org.apache.tomcat.embed</groupId>
271 <artifactId>tomcat-embed-el</artifactId>
272 <version>${tomcat.version}</version>
273 </dependency>
274 <dependency>
275 <groupId>org.apache.tomcat.embed</groupId>
276 <artifactId>tomcat-embed-websocket</artifactId>
277 <version>${tomcat.version}</version>
278 </dependency>
279 <dependency>
280 <groupId>org.apache.tomcat</groupId>
281 <artifactId>tomcat-annotations-api</artifactId>
282 <version>${tomcat.version}</version>
283 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100284 <!-- For CAMEL -->
285 <dependency>
sebdetdfa86ca2019-04-05 15:15:31 +0200286 <groupId>org.apache.camel</groupId>
sebdet338c2182019-04-25 12:33:31 +0200287 <artifactId>camel-http4-starter</artifactId>
sebdetdfa86ca2019-04-05 15:15:31 +0200288 </dependency>
289 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100290 <groupId>org.apache.camel</groupId>
291 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100292 </dependency>
293 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100294 <groupId>org.apache.camel</groupId>
295 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100296 </dependency>
297 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100298 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100299 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100300 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200301 <dependency>
sebdet00109a02019-02-15 15:30:05 +0100302 <groupId>org.apache.camel</groupId>
303 <artifactId>camel-gson-starter</artifactId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200304 </dependency>
305 <dependency>
306 <groupId>org.apache.camel</groupId>
307 <artifactId>camel-swagger-java-starter</artifactId>
308 <exclusions>
309 <exclusion>
310 <groupId>javax.ws.rs</groupId>
311 <artifactId>jsr311-api</artifactId>
312 </exclusion>
Determe, Sebastien (sd378r)db25b622018-08-06 15:30:35 +0200313 <exclusion>
314 <groupId>org.slf4j</groupId>
315 <artifactId>slf4j-ext</artifactId>
316 </exclusion>
sebdet00109a02019-02-15 15:30:05 +0100317 <exclusion>
318 <groupId>com.fasterxml.jackson.core</groupId>
319 <artifactId>jackson-databind</artifactId>
320 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200321 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200322 </dependency>
323 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200324 <groupId>javax.xml.bind</groupId>
325 <artifactId>jaxb-api</artifactId>
326 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200327 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200328 <dependency>
329 <groupId>org.glassfish.jersey.core</groupId>
330 <artifactId>jersey-common</artifactId>
331 <version>2.27</version>
332 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100333 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100334 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100335 <groupId>org.springframework.boot</groupId>
336 <artifactId>spring-boot-starter-web</artifactId>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100337 <exclusions>
338 <exclusion>
339 <groupId>org.springframework.boot</groupId>
340 <artifactId>spring-boot-starter-json</artifactId>
341 </exclusion>
342 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100343 </dependency>
344 <dependency>
345 <groupId>org.springframework.boot</groupId>
346 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100347 </dependency>
348 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100349 <groupId>org.springframework</groupId>
350 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100351 </dependency>
352 <dependency>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-starter-security</artifactId>
355 </dependency>
356 <dependency>
357 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200358 <artifactId>spring-boot-autoconfigure</artifactId>
359 </dependency>
360 <dependency>
361 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100362 <artifactId>spring-boot-starter-test</artifactId>
363 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100364 <exclusions>
365 <exclusion>
366 <groupId>com.vaadin.external.google</groupId>
367 <artifactId>android-json</artifactId>
368 </exclusion>
369 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100370 </dependency>
sebdetc2bcf2a2019-02-22 08:16:26 +0100371 <dependency>
372 <groupId>org.springframework.boot</groupId>
373 <artifactId>spring-boot-starter-data-jpa</artifactId>
374 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100375 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100376 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200377 <groupId>org.onap.aaf.authz</groupId>
378 <artifactId>aaf-cadi-aaf</artifactId>
ChrisC989f4062019-04-05 16:24:13 +0200379 <version>2.1.10</version>
xg353ye6409552018-05-08 16:21:39 +0200380 <exclusions>
381 <exclusion>
382 <groupId>javax.servlet</groupId>
383 <artifactId>servlet-api</artifactId>
384 </exclusion>
385 </exclusions>
386 </dependency>
387 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100388 <groupId>ch.qos.logback</groupId>
389 <artifactId>logback-core</artifactId>
390 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100391 </dependency>
392 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100393 <groupId>ch.qos.logback</groupId>
394 <artifactId>logback-classic</artifactId>
395 <version>1.2.3</version>
396 </dependency>
397 <dependency>
398 <groupId>commons-dbcp</groupId>
399 <artifactId>commons-dbcp</artifactId>
400 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100401 </dependency>
402 <dependency>
403 <groupId>commons-io</groupId>
404 <artifactId>commons-io</artifactId>
405 <version>2.6</version>
406 </dependency>
407 <dependency>
408 <groupId>com.googlecode.json-simple</groupId>
409 <artifactId>json-simple</artifactId>
sebdet8356ed82019-04-08 14:39:39 +0200410 <version>1.1.1</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100411 </dependency>
412 <dependency>
413 <groupId>org.apache.commons</groupId>
414 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100415 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100416 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100417 <dependency>
418 <groupId>joda-time</groupId>
419 <artifactId>joda-time</artifactId>
420 </dependency>
421 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100422 <groupId>org.slf4j</groupId>
423 <artifactId>slf4j-api</artifactId>
424 </dependency>
425 <dependency>
426 <groupId>javax.ws.rs</groupId>
427 <artifactId>javax.ws.rs-api</artifactId>
428 <version>2.0</version>
429 </dependency>
430 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100431 <groupId>junit</groupId>
432 <artifactId>junit</artifactId>
433 </dependency>
434 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100435 <groupId>javax.transaction</groupId>
436 <artifactId>jta</artifactId>
437 <version>1.1</version>
438 </dependency>
439 <dependency>
440 <groupId>javax.persistence</groupId>
441 <artifactId>persistence-api</artifactId>
442 <version>1.0.2</version>
443 </dependency>
444 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100445 <groupId>org.onap.policy.engine</groupId>
446 <artifactId>PolicyEngineAPI</artifactId>
sebdetd72d0d02018-12-01 15:09:54 +0100447 <version>1.3.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100448 <exclusions>
449 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500450 <groupId>com.google.guava</groupId>
451 <artifactId>guava</artifactId>
452 </exclusion>
453 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100454 <artifactId>log4j</artifactId>
455 <groupId>log4j</groupId>
456 </exclusion>
457 <exclusion>
458 <groupId>org.slf4j</groupId>
459 <artifactId>slf4j-log4j12</artifactId>
460 </exclusion>
461 <exclusion>
462 <artifactId>apache-log4j-extras</artifactId>
463 <groupId>log4j</groupId>
464 </exclusion>
465 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100466 <groupId>mysql</groupId>
467 <artifactId>mysql-connector-java</artifactId>
468 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100469 <exclusion>
470 <groupId>commons-io</groupId>
471 <artifactId>commons-io</artifactId>
472 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200473 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200474 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200475 <groupId>org.glassfish.grizzly</groupId>
476 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200477 <exclusion>
478 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
479 <artifactId>dmaapClient</artifactId>
480 </exclusion>
481 <exclusion>
482 <groupId>org.onap.policy.common</groupId>
483 <artifactId>integrity-monitor</artifactId>
484 </exclusion>
485 <exclusion>
486 <groupId>org.onap.policy.common</groupId>
487 <artifactId>integrity-audit</artifactId>
488 </exclusion>
489 <exclusion>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100490 <groupId>com.fasterxml.jackson.core</groupId>
491 <artifactId>jackson-databind</artifactId>
492 </exclusion>
493 <exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200494 <groupId>org.onap.aaf.cadi</groupId>
495 <artifactId>cadi-aaf</artifactId>
496 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200497 <exclusion>
498 <groupId>javax.jms</groupId>
499 <artifactId>jms</artifactId>
500 </exclusion>
sebdet7fcbe522018-10-22 14:45:34 +0200501 <exclusion>
502 <groupId>commons-fileupload</groupId>
503 <artifactId>commons-fileupload</artifactId>
504 </exclusion>
sebdetac4958a2018-11-05 14:12:48 +0100505 <exclusion>
506 <groupId>com.att.research.xacml</groupId>
507 <artifactId>xacml</artifactId>
508 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100509 </exclusions>
510 </dependency>
511 <dependency>
512 <groupId>org.onap.policy.common</groupId>
513 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200514 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100515 <exclusions>
516 <exclusion>
517 <artifactId>log4j</artifactId>
518 <groupId>log4j</groupId>
519 </exclusion>
520 <exclusion>
521 <groupId>org.slf4j</groupId>
522 <artifactId>slf4j-log4j12</artifactId>
523 </exclusion>
524 <exclusion>
525 <artifactId>apache-log4j-extras</artifactId>
526 <groupId>log4j</groupId>
527 </exclusion>
528 </exclusions>
529 </dependency>
530 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200531 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100532 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200533 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100534 <exclusions>
535 <exclusion>
536 <artifactId>log4j</artifactId>
537 <groupId>log4j</groupId>
538 </exclusion>
539 <exclusion>
540 <groupId>org.slf4j</groupId>
541 <artifactId>slf4j-log4j12</artifactId>
542 </exclusion>
543 <exclusion>
544 <artifactId>apache-log4j-extras</artifactId>
545 <groupId>log4j</groupId>
546 </exclusion>
547 </exclusions>
548 </dependency>
549 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200550 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100551 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200552 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100553 <exclusions>
554 <exclusion>
555 <artifactId>log4j</artifactId>
556 <groupId>log4j</groupId>
557 </exclusion>
558 <exclusion>
559 <groupId>org.slf4j</groupId>
560 <artifactId>slf4j-log4j12</artifactId>
561 </exclusion>
562 <exclusion>
563 <artifactId>apache-log4j-extras</artifactId>
564 <groupId>log4j</groupId>
565 </exclusion>
566 </exclusions>
567 </dependency>
568 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200569 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100570 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200571 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100572 <exclusions>
573 <exclusion>
574 <artifactId>log4j</artifactId>
575 <groupId>log4j</groupId>
576 </exclusion>
577 <exclusion>
578 <groupId>org.slf4j</groupId>
579 <artifactId>slf4j-log4j12</artifactId>
580 </exclusion>
581 <exclusion>
582 <artifactId>apache-log4j-extras</artifactId>
583 <groupId>log4j</groupId>
584 </exclusion>
585 </exclusions>
586 </dependency>
587 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100588 <groupId>org.apache.commons</groupId>
589 <artifactId>commons-csv</artifactId>
590 <version>1.3</version>
591 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100592 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
593 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200594 <groupId>org.codehaus.plexus</groupId>
595 <artifactId>plexus-utils</artifactId>
596 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100597 </dependency>
598 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200599 <groupId>org.jboss.spec.javax.ws.rs</groupId>
600 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
601 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100602 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200603 <dependency>
604 <groupId>com.google.guava</groupId>
605 <artifactId>guava</artifactId>
sebdet029e6b42019-04-26 16:51:50 +0200606 <version>27.0-jre</version>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200607 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100608 <!-- Remove the MYSQL connector and replace it by Mariadb -->
609 <dependency>
610 <groupId>org.mariadb.jdbc</groupId>
611 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100612 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100613 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100614 <!-- For SDC Controller -->
615 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200616 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100617 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200618 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100619 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100620 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200621 <groupId>org.onap.sdc.sdc-tosca</groupId>
622 <artifactId>sdc-tosca</artifactId>
sebdet12cf41b2019-04-23 11:09:54 +0200623 <version>1.5.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100624 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200625 <!-- TESTING -->
626 <dependency>
627 <groupId>org.assertj</groupId>
628 <artifactId>assertj-core</artifactId>
629 <version>3.10.0</version>
630 <scope>test</scope>
631 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200632 <dependency>
633 <groupId>org.mockito</groupId>
634 <artifactId>mockito-core</artifactId>
635 <version>1.10.19</version>
636 <scope>test</scope>
637 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200638 </dependencies>
sebdet2e4242e2019-03-15 10:18:51 +0100639
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100640 <build>
641 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700642
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100643 <testResources>
644 <testResource>
645 <directory>src/test/resources</directory>
646 <excludes>
647 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100648 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100649 </excludes>
650 <filtering>true</filtering>
651 </testResource>
652 <testResource>
653 <directory>src/test/resources/https</directory>
654 <includes>
655 <include>**.jks</include>
656 </includes>
657 <filtering>false</filtering>
658 <targetPath>https</targetPath>
659 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200660 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100661 <directory>src/test/resources/example/sdc</directory>
662 <includes>
663 <include>**.csar</include>
664 </includes>
665 <filtering>false</filtering>
666 <targetPath>example/sdc</targetPath>
667 </testResource>
sebdete4422002018-10-16 17:47:54 +0200668
669 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
670 <testResource>
671 <directory>src/test/javascript</directory>
672 <includes>
673 <include>**/**.json</include>
674 </includes>
675 <filtering>true</filtering>
676 <targetPath>${project.build.directory}/clamp-ui</targetPath>
677 </testResource>
678 <testResource>
679 <directory>src/main/resources/META-INF/resources/designer</directory>
680 <filtering>false</filtering>
681 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
682 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100683 </testResources>
684 <resources>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100685 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200686 Otherwise they will be broken and unreadable
687 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100688 <resource>
689 <directory>src/main/resources</directory>
690 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200691 <excludes>
692 <exclude>clds/aaf/**</exclude>
693 </excludes>
694 </resource>
695 <resource>
696 <directory>src/main/resources</directory>
697 <filtering>false</filtering>
698 <includes>
699 <include>clds/aaf/**</include>
700 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100701 </resource>
702 <resource>
703 <directory>src/main/docker</directory>
704 <includes>
705 <include>**/*</include>
706 </includes>
707 <filtering>true</filtering>
708 </resource>
709 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700710
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100711 <plugins>
sebdeta6649942018-12-11 12:39:11 +0100712 <plugin>
sebdetc2bcf2a2019-02-22 08:16:26 +0100713 <groupId>de.jpdigital</groupId>
714 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
715 <version>2.2.0</version>
ChrisC11520d62019-03-12 16:45:43 +0100716 <dependencies>
717 <dependency>
718 <groupId>javax.xml.bind</groupId>
719 <artifactId>jaxb-api</artifactId>
720 <version>2.3.0</version>
721 </dependency>
722 </dependencies>
sebdeta6649942018-12-11 12:39:11 +0100723 <executions>
724 <execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100725 <phase>process-classes</phase>
sebdeta6649942018-12-11 12:39:11 +0100726 <goals>
sebdetc2bcf2a2019-02-22 08:16:26 +0100727 <goal>gen-ddl</goal>
sebdeta6649942018-12-11 12:39:11 +0100728 </goals>
729 <configuration>
sebdetc2bcf2a2019-02-22 08:16:26 +0100730 <packages><param>org.onap.clamp.dao.model</param></packages>
731 <dialects><param>MARIADB53</param></dialects>
732 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
733 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
734 <!-- <createDropStatements>true</createDropStatements> -->
735 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdeta6649942018-12-11 12:39:11 +0100736 </configuration>
737 </execution>
738 </executions>
ChrisC11520d62019-03-12 16:45:43 +0100739
sebdeta6649942018-12-11 12:39:11 +0100740 </plugin>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100741 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
742 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200743 way -->
744 <plugin>
745 <groupId>io.github.swagger2markup</groupId>
746 <artifactId>swagger2markup-maven-plugin</artifactId>
747 <version>1.3.3</version>
748 <dependencies>
749 <dependency>
750 <groupId>io.github.swagger2markup</groupId>
751 <artifactId>swagger2markup-import-files-ext</artifactId>
752 <version>1.3.3</version>
753 </dependency>
754 <dependency>
755 <groupId>io.github.swagger2markup</groupId>
756 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
757 <version>1.3.3</version>
758 </dependency>
759 </dependencies>
760 <configuration>
761 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
762 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
763 <config>
764 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
765 </config>
766 </configuration>
767 <executions>
768 <execution>
769 <phase>post-integration-test</phase>
770 <goals>
771 <goal>convertSwagger2markup</goal>
772 </goals>
773 </execution>
774 </executions>
775 </plugin>
776
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100777 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200778 documentation types, such as PDFs or HTML5 -->
779 <plugin>
780 <groupId>org.asciidoctor</groupId>
781 <artifactId>asciidoctor-maven-plugin</artifactId>
ChrisC11520d62019-03-12 16:45:43 +0100782 <version>1.5.7.1</version>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200783 <dependencies>
784 <dependency>
785 <groupId>org.asciidoctor</groupId>
786 <artifactId>asciidoctorj-pdf</artifactId>
787 <version>1.5.0-alpha.10.1</version>
788 </dependency>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200789 </dependencies>
790 <configuration>
791 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
792 <sourceDocumentName>swagger.adoc</sourceDocumentName>
793 <attributes>
794 <doctype>book</doctype>
795 <toc>left</toc>
796 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700797 <numbered/>
798 <hardbreaks/>
799 <sectlinks/>
800 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200801 <generated>${project.build.directory}/asciidoc/generated</generated>
802 </attributes>
803 </configuration>
804
805 <executions>
806 <execution>
807 <id>output-html</id>
808 <phase>post-integration-test</phase>
809 <goals>
810 <goal>process-asciidoc</goal>
811 </goals>
812 <configuration>
813 <backend>html5</backend>
814 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
815 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
816 </configuration>
817 </execution>
818 <execution>
819 <id>output-pdf</id>
820 <phase>post-integration-test</phase>
821 <goals>
822 <goal>process-asciidoc</goal>
823 </goals>
824 <configuration>
825 <backend>pdf</backend>
826 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
827 </configuration>
828 </execution>
829 </executions>
830 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100831 <plugin>
832 <groupId>org.codehaus.groovy.maven</groupId>
833 <artifactId>gmaven-plugin</artifactId>
834 <version>1.0</version>
835 <executions>
836 <execution>
837 <phase>validate</phase>
838 <goals>
839 <goal>execute</goal>
840 </goals>
841 <configuration>
842 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
843 </configuration>
844 </execution>
845 </executions>
846 </plugin>
847 <plugin>
848 <groupId>org.apache.maven.plugins</groupId>
849 <artifactId>maven-jar-plugin</artifactId>
850 <version>3.0.2</version>
851 <executions>
852 <execution>
853 <id>jar-with-only-classes</id>
854 <phase>package</phase>
855 <goals>
856 <goal>jar</goal>
857 </goals>
858 <configuration>
859 <classifier>classes</classifier>
860 <includes>
861 <include>org/**</include>
862 </includes>
863 </configuration>
864 </execution>
865 </executions>
866 </plugin>
867 <plugin>
868 <groupId>org.codehaus.mojo</groupId>
869 <artifactId>build-helper-maven-plugin</artifactId>
870 <version>3.0.0</version>
871 <executions>
872 <execution>
873 <goals>
874 <goal>attach-artifact</goal>
875 </goals>
876 <phase>package</phase>
877 <configuration>
878 <artifacts>
879 <artifact>
880 <file>${project.build.directory}/clamp-classes.jar</file>
881 <type>jar</type>
882 <classifier>classes</classifier>
883 </artifact>
884 </artifacts>
885 </configuration>
886 </execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100887 <execution>
888 <id>reserve-port-for-tests</id>
889 <phase>process-resources</phase>
890 <goals>
891 <goal>reserve-network-port</goal>
892 </goals>
893 <configuration>
894 <portNames>
895 <portName>docker.mariadb.port.host</portName>
896 <portName>docker.http-cache.port.host</portName>
897 <portName>clamp.it.tests.http-redirected</portName>
898 <portName>clamp.it.tests.https</portName>
899 <portName>clamp.it.tests.http</portName>
900 </portNames>
901 </configuration>
902 </execution>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100903 </executions>
904 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700905
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100906 <plugin>
907 <groupId>org.springframework.boot</groupId>
908 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200909 <!-- Temporary fix -->
910 <version>1.5.13.RELEASE</version>
911 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100912 <executions>
913 <execution>
914 <goals>
915 <goal>repackage</goal>
916 </goals>
917 <phase>package</phase>
918 </execution>
919 </executions>
920 </plugin>
921 <plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100922 <groupId>org.apache.maven.plugins</groupId>
923 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100924 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100925 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100926 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100927 <reuseForks>true</reuseForks>
928 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100929 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100930 </configuration>
931 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200932
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100933 <plugin>
934 <groupId>org.apache.maven.plugins</groupId>
935 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100936 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100937 <executions>
938 <execution>
939 <id>integration-tests</id>
940 <goals>
941 <goal>integration-test</goal>
942 <goal>verify</goal>
943 </goals>
944 <configuration>
sebdet25793862018-11-08 17:11:10 +0100945 <additionalClasspathElements>
946 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
947 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100948 <includes>
949 <include>**/*ItCase.java</include>
950 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100951 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100952 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100953 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100954 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100955 </configuration>
956 </execution>
957 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200958
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100959 </plugin>
960 <plugin>
961 <groupId>io.fabric8</groupId>
962 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100963 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100964 <dependencies>
965 <dependency>
966 <groupId>org.apache.httpcomponents</groupId>
967 <artifactId>httpclient</artifactId>
968 <version>4.5.5</version>
969 </dependency>
970 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100971 <configuration>
972 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100973 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100974 <images>
975 <image>
sebdetc2bcf2a2019-02-22 08:16:26 +0100976 <name>library/mariadb:10.3.12</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100977 <alias>mariadb</alias>
978 <run>
979 <env>
980 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
981 </env>
982 <hostname>mariadb</hostname>
983 <volumes>
984 <bind>
985 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
986 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
987 </bind>
988 </volumes>
989 <wait>
990 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100991 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100992 </wait>
993 <ports>
994 <port>${docker.mariadb.port.host}:3306</port>
995 </ports>
996 </run>
997 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100998 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200999 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001000 <alias>python</alias>
1001 <run>
1002 <hostname>python</hostname>
1003 <volumes>
1004 <bind>
1005 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +01001006 <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 +01001007 </bind>
1008 </volumes>
1009 <wait>
1010 <tcp>
1011 <ports>
1012 <port>8080</port>
1013 </ports>
1014 <mode>direct</mode>
1015 </tcp>
1016 <time>120000</time>
1017 </wait>
1018 <ports>
1019 <port>${docker.http-cache.port.host}:8080</port>
1020 </ports>
1021 <workingDir>/usr/src/http-cache-app</workingDir>
1022 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +02001023 <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 +01001024 </cmd>
1025 </run>
1026 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001027 <image>
sebdetc95e8df2019-06-25 11:06:06 +02001028 <name>onap/clamp-backend</name>
1029 <alias>onap-clamp-backend</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001030 <run>
1031 <skip>true</skip>
1032 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001033 <build>
1034 <cleanup>true</cleanup>
1035 <tags>
1036 <tag>latest</tag>
1037 <tag>${project.docker.latesttagtimestamp.version}</tag>
1038 <tag>${project.docker.latesttag.version}</tag>
1039 </tags>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +01001040 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001041 by default -->
sebdetc95e8df2019-06-25 11:06:06 +02001042 <dockerFile>backend/Dockerfile</dockerFile>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001043 <assembly>
sebdetc95e8df2019-06-25 11:06:06 +02001044 <descriptor>backend/backend-files.xml</descriptor>
1045 <name>onap-clamp-backend</name>
1046 </assembly>
1047 </build>
1048 </image>
1049 <image>
1050 <name>onap/clamp-frontend</name>
1051 <alias>onap-clamp-frontend</alias>
1052 <run>
1053 <skip>true</skip>
1054 </run>
1055 <build>
1056 <cleanup>true</cleanup>
1057 <tags>
1058 <tag>latest</tag>
1059 <tag>${project.docker.latesttagtimestamp.version}</tag>
1060 <tag>${project.docker.latesttag.version}</tag>
1061 </tags>
1062 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1063 by default -->
1064 <dockerFile>frontend/Dockerfile</dockerFile>
1065 <assembly>
1066 <descriptor>frontend/frontend-files.xml</descriptor>
1067 <name>onap-clamp-frontend</name>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001068 </assembly>
1069 </build>
1070 </image>
ac255096f162e2018-09-18 10:07:58 +02001071 <image>
1072 <name>onap/clamp-dashboard-logstash</name>
1073 <alias>onap-clamp-dashboard-logstash</alias>
1074 <run>
1075 <skip>true</skip>
1076 </run>
1077 <build>
1078 <cleanup>true</cleanup>
1079 <tags>
1080 <tag>latest</tag>
1081 <tag>${project.docker.latesttagtimestamp.version}</tag>
1082 <tag>${project.docker.latesttag.version}</tag>
1083 </tags>
sebdetc95e8df2019-06-25 11:06:06 +02001084 <dockerFile>logstash/Dockerfile</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001085 </build>
1086 </image>
ac2550ead10512018-10-05 13:50:23 +02001087 <image>
1088 <name>onap/clamp-dashboard-kibana</name>
1089 <alias>onap-clamp-dashboard-kibana</alias>
1090 <run>
1091 <skip>true</skip>
1092 </run>
1093 <build>
1094 <cleanup>true</cleanup>
1095 <tags>
1096 <tag>latest</tag>
1097 <tag>${project.docker.latesttagtimestamp.version}</tag>
1098 <tag>${project.docker.latesttag.version}</tag>
1099 </tags>
sebdetc95e8df2019-06-25 11:06:06 +02001100 <dockerFile>kibana/Dockerfile</dockerFile>
ac2550ead10512018-10-05 13:50:23 +02001101 </build>
1102 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001103 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001104 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001105
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001106 <executions>
1107 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001108 <id>generate-images</id>
1109 <phase>install</phase>
1110 <goals>
1111 <goal>build</goal>
1112 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001113 </execution>
1114 <execution>
1115 <id>push-images</id>
1116 <phase>deploy</phase>
1117 <goals>
1118 <goal>push</goal>
1119 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001120 </execution>
1121 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001122 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001123 <phase>pre-integration-test</phase>
1124 <goals>
1125 <goal>start</goal>
1126 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001127 </execution>
1128 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001129 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001130 <phase>post-integration-test</phase>
1131 <goals>
1132 <goal>stop</goal>
1133 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001134 </execution>
1135 </executions>
1136 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001137
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001138 <plugin>
1139 <groupId>org.jacoco</groupId>
1140 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001141 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001142 <configuration>
1143 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001144 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001145 <includes>
1146 <include>org.onap.clamp.*</include>
1147 </includes>
1148 </configuration>
1149 <executions>
1150 <execution>
1151 <id>pre-unit-test</id>
1152 <goals>
1153 <goal>prepare-agent</goal>
1154 </goals>
1155 <configuration>
1156 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001157 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001158 <!-- <append>true</append> -->
1159 </configuration>
1160 </execution>
1161 <execution>
1162 <id>pre-integration-test</id>
1163 <phase>pre-integration-test</phase>
1164 <goals>
1165 <goal>prepare-agent</goal>
1166 </goals>
1167 <configuration>
1168 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001169 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001170 <!-- <append>true</append> -->
1171 </configuration>
1172 </execution>
1173 <execution>
1174 <goals>
1175 <goal>merge</goal>
1176 </goals>
1177 <phase>post-integration-test</phase>
1178 <configuration>
1179 <fileSets>
1180 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1181 <directory>${project.build.directory}/coverage-reports</directory>
1182 <includes>
1183 <include>*.exec</include>
1184 </includes>
1185 </fileSet>
1186 </fileSets>
1187 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1188 </configuration>
1189 </execution>
1190 </executions>
1191 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001192
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001193 <!-- This plugin will be useful when we will have multi-modules project -->
1194 <plugin>
1195 <groupId>org.codehaus.mojo</groupId>
1196 <artifactId>versions-maven-plugin</artifactId>
1197 <version>1.3.1</version>
1198 </plugin>
sebdete4422002018-10-16 17:47:54 +02001199
1200 <plugin>
1201 <groupId>com.github.eirslett</groupId>
1202 <artifactId>frontend-maven-plugin</artifactId>
1203 <version>1.6</version>
1204 <configuration>
1205 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1206 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1207 <skip>${maven.test.skip}</skip>
1208 </configuration>
1209
1210 <executions>
1211 <execution>
1212 <id>install_node_and_npm</id>
1213 <goals>
1214 <goal>install-node-and-npm</goal>
1215 </goals>
1216 <phase>test</phase>
1217 <configuration>
1218 <nodeVersion>v8.11.1</nodeVersion>
1219 <npmVersion>5.6.0</npmVersion>
1220 </configuration>
1221 </execution>
1222 <execution>
1223 <id>npm_install</id>
1224 <goals>
1225 <goal>npm</goal>
1226 </goals>
1227 <phase>test</phase>
1228 <configuration>
1229 <arguments>install</arguments>
1230 </configuration>
1231 </execution>
1232 <execution>
1233 <id>npm_test</id>
1234 <goals>
1235 <goal>npm</goal>
1236 </goals>
1237 <phase>test</phase>
1238 <configuration>
1239 <arguments>run-script test:coverage</arguments>
1240 </configuration>
1241 </execution>
1242
1243 </executions>
1244 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001245 </plugins>
1246 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001247</project>