blob: b341f134dbedce910d2e4be61859b50a780666f5 [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 ================================================================================
TedHumphrey4aedf732019-08-13 15:56:33 +00006 Copyright (C) 2017-2019 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>
TedHumphrey4aedf732019-08-13 15:56:33 +000090 <ui.react.src>ui-react</ui.react.src>
91 <npm.publish.url>https://nexus3.onap.org/repository/npm.snapshot/</npm.publish.url>
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>
sebdet338c2182019-04-25 12:33:31 +0200289 <artifactId>camel-http4-starter</artifactId>
sebdetdfa86ca2019-04-05 15:15:31 +0200290 </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>
sebdet029e6b42019-04-26 16:51:50 +0200608 <version>27.0-jre</version>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200609 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100610 <!-- Remove the MYSQL connector and replace it by Mariadb -->
611 <dependency>
612 <groupId>org.mariadb.jdbc</groupId>
613 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100614 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100615 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100616 <!-- For SDC Controller -->
617 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200618 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100619 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200620 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100621 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100622 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200623 <groupId>org.onap.sdc.sdc-tosca</groupId>
624 <artifactId>sdc-tosca</artifactId>
sebdet12cf41b2019-04-23 11:09:54 +0200625 <version>1.5.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100626 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200627 <!-- TESTING -->
628 <dependency>
629 <groupId>org.assertj</groupId>
630 <artifactId>assertj-core</artifactId>
631 <version>3.10.0</version>
632 <scope>test</scope>
633 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200634 <dependency>
635 <groupId>org.mockito</groupId>
636 <artifactId>mockito-core</artifactId>
637 <version>1.10.19</version>
638 <scope>test</scope>
639 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200640 </dependencies>
sebdet2e4242e2019-03-15 10:18:51 +0100641
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100642 <build>
643 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700644
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100645 <testResources>
646 <testResource>
647 <directory>src/test/resources</directory>
648 <excludes>
649 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100650 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100651 </excludes>
652 <filtering>true</filtering>
653 </testResource>
654 <testResource>
655 <directory>src/test/resources/https</directory>
656 <includes>
657 <include>**.jks</include>
658 </includes>
659 <filtering>false</filtering>
660 <targetPath>https</targetPath>
661 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200662 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100663 <directory>src/test/resources/example/sdc</directory>
664 <includes>
665 <include>**.csar</include>
666 </includes>
667 <filtering>false</filtering>
668 <targetPath>example/sdc</targetPath>
669 </testResource>
sebdete4422002018-10-16 17:47:54 +0200670
671 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
672 <testResource>
673 <directory>src/test/javascript</directory>
674 <includes>
675 <include>**/**.json</include>
676 </includes>
677 <filtering>true</filtering>
678 <targetPath>${project.build.directory}/clamp-ui</targetPath>
679 </testResource>
680 <testResource>
681 <directory>src/main/resources/META-INF/resources/designer</directory>
682 <filtering>false</filtering>
683 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
684 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100685 </testResources>
686 <resources>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100687 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200688 Otherwise they will be broken and unreadable
689 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100690 <resource>
691 <directory>src/main/resources</directory>
692 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200693 <excludes>
694 <exclude>clds/aaf/**</exclude>
695 </excludes>
696 </resource>
697 <resource>
698 <directory>src/main/resources</directory>
699 <filtering>false</filtering>
700 <includes>
701 <include>clds/aaf/**</include>
702 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100703 </resource>
704 <resource>
TedHumphrey4aedf732019-08-13 15:56:33 +0000705 <directory>${ui.react.src}</directory>
706 <includes>
707 <include>src/**</include>
708 <include>public/**</include>
709 <include>package.json</include>
710 <include>package-lock.json</include>
711 </includes>
712 <filtering>false</filtering>
713 <targetPath>${project.build.directory}/${ui.react.src}</targetPath>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100714 </resource>
715 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700716
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100717 <plugins>
sebdeta6649942018-12-11 12:39:11 +0100718 <plugin>
sebdetc2bcf2a2019-02-22 08:16:26 +0100719 <groupId>de.jpdigital</groupId>
720 <artifactId>hibernate52-ddl-maven-plugin</artifactId>
721 <version>2.2.0</version>
ChrisC11520d62019-03-12 16:45:43 +0100722 <dependencies>
723 <dependency>
724 <groupId>javax.xml.bind</groupId>
725 <artifactId>jaxb-api</artifactId>
726 <version>2.3.0</version>
727 </dependency>
728 </dependencies>
sebdeta6649942018-12-11 12:39:11 +0100729 <executions>
730 <execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100731 <phase>process-classes</phase>
sebdeta6649942018-12-11 12:39:11 +0100732 <goals>
sebdetc2bcf2a2019-02-22 08:16:26 +0100733 <goal>gen-ddl</goal>
sebdeta6649942018-12-11 12:39:11 +0100734 </goals>
735 <configuration>
sebdetc2bcf2a2019-02-22 08:16:26 +0100736 <packages><param>org.onap.clamp.dao.model</param></packages>
737 <dialects><param>MARIADB53</param></dialects>
738 <outputDirectory>${project.basedir}/extra/sql/bulkload/</outputDirectory>
739 <outputFileNameSuffix>create-tables</outputFileNameSuffix>
740 <!-- <createDropStatements>true</createDropStatements> -->
741 <omitDialectFromFileName>true</omitDialectFromFileName>
sebdeta6649942018-12-11 12:39:11 +0100742 </configuration>
743 </execution>
744 </executions>
ChrisC11520d62019-03-12 16:45:43 +0100745
sebdeta6649942018-12-11 12:39:11 +0100746 </plugin>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100747 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
748 generate a list of .adoc files containing the APIs info in more structured
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200749 way -->
750 <plugin>
751 <groupId>io.github.swagger2markup</groupId>
752 <artifactId>swagger2markup-maven-plugin</artifactId>
753 <version>1.3.3</version>
754 <dependencies>
755 <dependency>
756 <groupId>io.github.swagger2markup</groupId>
757 <artifactId>swagger2markup-import-files-ext</artifactId>
758 <version>1.3.3</version>
759 </dependency>
760 <dependency>
761 <groupId>io.github.swagger2markup</groupId>
762 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
763 <version>1.3.3</version>
764 </dependency>
765 </dependencies>
766 <configuration>
767 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
768 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
769 <config>
770 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
771 </config>
772 </configuration>
773 <executions>
774 <execution>
775 <phase>post-integration-test</phase>
776 <goals>
777 <goal>convertSwagger2markup</goal>
778 </goals>
779 </execution>
780 </executions>
781 </plugin>
782
Krysiak Adamcdfe48c2019-01-29 15:59:00 +0100783 <!-- Run the generated asciidoc through Asciidoctor to generate other
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200784 documentation types, such as PDFs or HTML5 -->
785 <plugin>
786 <groupId>org.asciidoctor</groupId>
787 <artifactId>asciidoctor-maven-plugin</artifactId>
ChrisC11520d62019-03-12 16:45:43 +0100788 <version>1.5.7.1</version>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200789 <dependencies>
790 <dependency>
791 <groupId>org.asciidoctor</groupId>
792 <artifactId>asciidoctorj-pdf</artifactId>
793 <version>1.5.0-alpha.10.1</version>
794 </dependency>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200795 </dependencies>
796 <configuration>
797 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
798 <sourceDocumentName>swagger.adoc</sourceDocumentName>
799 <attributes>
800 <doctype>book</doctype>
801 <toc>left</toc>
802 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700803 <numbered/>
804 <hardbreaks/>
805 <sectlinks/>
806 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200807 <generated>${project.build.directory}/asciidoc/generated</generated>
808 </attributes>
809 </configuration>
810
811 <executions>
812 <execution>
813 <id>output-html</id>
814 <phase>post-integration-test</phase>
815 <goals>
816 <goal>process-asciidoc</goal>
817 </goals>
818 <configuration>
819 <backend>html5</backend>
820 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
821 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
822 </configuration>
823 </execution>
824 <execution>
825 <id>output-pdf</id>
826 <phase>post-integration-test</phase>
827 <goals>
828 <goal>process-asciidoc</goal>
829 </goals>
830 <configuration>
831 <backend>pdf</backend>
832 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
833 </configuration>
834 </execution>
835 </executions>
836 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100837 <plugin>
838 <groupId>org.codehaus.groovy.maven</groupId>
839 <artifactId>gmaven-plugin</artifactId>
840 <version>1.0</version>
841 <executions>
842 <execution>
843 <phase>validate</phase>
844 <goals>
845 <goal>execute</goal>
846 </goals>
847 <configuration>
848 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
849 </configuration>
850 </execution>
851 </executions>
852 </plugin>
853 <plugin>
854 <groupId>org.apache.maven.plugins</groupId>
855 <artifactId>maven-jar-plugin</artifactId>
856 <version>3.0.2</version>
857 <executions>
858 <execution>
859 <id>jar-with-only-classes</id>
860 <phase>package</phase>
861 <goals>
862 <goal>jar</goal>
863 </goals>
864 <configuration>
865 <classifier>classes</classifier>
866 <includes>
867 <include>org/**</include>
868 </includes>
869 </configuration>
870 </execution>
871 </executions>
872 </plugin>
873 <plugin>
874 <groupId>org.codehaus.mojo</groupId>
875 <artifactId>build-helper-maven-plugin</artifactId>
876 <version>3.0.0</version>
877 <executions>
878 <execution>
879 <goals>
880 <goal>attach-artifact</goal>
881 </goals>
882 <phase>package</phase>
883 <configuration>
884 <artifacts>
885 <artifact>
886 <file>${project.build.directory}/clamp-classes.jar</file>
887 <type>jar</type>
888 <classifier>classes</classifier>
889 </artifact>
890 </artifacts>
891 </configuration>
892 </execution>
sebdetc2bcf2a2019-02-22 08:16:26 +0100893 <execution>
894 <id>reserve-port-for-tests</id>
895 <phase>process-resources</phase>
896 <goals>
897 <goal>reserve-network-port</goal>
898 </goals>
899 <configuration>
900 <portNames>
901 <portName>docker.mariadb.port.host</portName>
902 <portName>docker.http-cache.port.host</portName>
903 <portName>clamp.it.tests.http-redirected</portName>
904 <portName>clamp.it.tests.https</portName>
905 <portName>clamp.it.tests.http</portName>
906 </portNames>
907 </configuration>
908 </execution>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100909 </executions>
910 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700911
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100912 <plugin>
913 <groupId>org.springframework.boot</groupId>
914 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200915 <!-- Temporary fix -->
916 <version>1.5.13.RELEASE</version>
917 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100918 <executions>
919 <execution>
920 <goals>
921 <goal>repackage</goal>
922 </goals>
923 <phase>package</phase>
924 </execution>
925 </executions>
926 </plugin>
927 <plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100928 <groupId>org.apache.maven.plugins</groupId>
929 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100930 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100931 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100932 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100933 <reuseForks>true</reuseForks>
934 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100935 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100936 </configuration>
937 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200938
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100939 <plugin>
940 <groupId>org.apache.maven.plugins</groupId>
941 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100942 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100943 <executions>
944 <execution>
945 <id>integration-tests</id>
946 <goals>
947 <goal>integration-test</goal>
948 <goal>verify</goal>
949 </goals>
950 <configuration>
sebdet25793862018-11-08 17:11:10 +0100951 <additionalClasspathElements>
952 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
953 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100954 <includes>
955 <include>**/*ItCase.java</include>
956 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100957 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100958 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100959 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100960 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100961 </configuration>
962 </execution>
963 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200964
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100965 </plugin>
966 <plugin>
967 <groupId>io.fabric8</groupId>
968 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100969 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100970 <dependencies>
971 <dependency>
972 <groupId>org.apache.httpcomponents</groupId>
973 <artifactId>httpclient</artifactId>
974 <version>4.5.5</version>
975 </dependency>
976 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100977 <configuration>
978 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100979 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100980 <images>
981 <image>
sebdetc2bcf2a2019-02-22 08:16:26 +0100982 <name>library/mariadb:10.3.12</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100983 <alias>mariadb</alias>
984 <run>
985 <env>
986 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
987 </env>
988 <hostname>mariadb</hostname>
989 <volumes>
990 <bind>
991 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
992 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
993 </bind>
994 </volumes>
995 <wait>
996 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100997 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100998 </wait>
999 <ports>
1000 <port>${docker.mariadb.port.host}:3306</port>
1001 </ports>
1002 </run>
1003 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001004 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001005 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001006 <alias>python</alias>
1007 <run>
1008 <hostname>python</hostname>
1009 <volumes>
1010 <bind>
1011 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +01001012 <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 +01001013 </bind>
1014 </volumes>
1015 <wait>
1016 <tcp>
1017 <ports>
1018 <port>8080</port>
1019 </ports>
1020 <mode>direct</mode>
1021 </tcp>
1022 <time>120000</time>
1023 </wait>
1024 <ports>
1025 <port>${docker.http-cache.port.host}:8080</port>
1026 </ports>
1027 <workingDir>/usr/src/http-cache-app</workingDir>
1028 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +02001029 <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 +01001030 </cmd>
1031 </run>
1032 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001033 <image>
sebdetc95e8df2019-06-25 11:06:06 +02001034 <name>onap/clamp-backend</name>
1035 <alias>onap-clamp-backend</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001036 <run>
1037 <skip>true</skip>
1038 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001039 <build>
1040 <cleanup>true</cleanup>
1041 <tags>
1042 <tag>latest</tag>
1043 <tag>${project.docker.latesttagtimestamp.version}</tag>
1044 <tag>${project.docker.latesttag.version}</tag>
1045 </tags>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +01001046 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001047 by default -->
sebdetc95e8df2019-06-25 11:06:06 +02001048 <dockerFile>backend/Dockerfile</dockerFile>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001049 <assembly>
sebdetc95e8df2019-06-25 11:06:06 +02001050 <descriptor>backend/backend-files.xml</descriptor>
1051 <name>onap-clamp-backend</name>
1052 </assembly>
1053 </build>
1054 </image>
1055 <image>
1056 <name>onap/clamp-frontend</name>
1057 <alias>onap-clamp-frontend</alias>
1058 <run>
1059 <skip>true</skip>
1060 </run>
1061 <build>
1062 <cleanup>true</cleanup>
1063 <tags>
1064 <tag>latest</tag>
1065 <tag>${project.docker.latesttagtimestamp.version}</tag>
1066 <tag>${project.docker.latesttag.version}</tag>
1067 </tags>
1068 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
1069 by default -->
1070 <dockerFile>frontend/Dockerfile</dockerFile>
1071 <assembly>
1072 <descriptor>frontend/frontend-files.xml</descriptor>
1073 <name>onap-clamp-frontend</name>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001074 </assembly>
1075 </build>
1076 </image>
ac255096f162e2018-09-18 10:07:58 +02001077 <image>
osgn422w0ce11ea2019-07-17 16:17:13 +02001078 <name>onap/clamp-dashboard-elasticsearch</name>
1079 <alias>onap-clamp-dashboard-elasticsearch</alias>
1080 <run>
1081 <skip>true</skip>
1082 </run>
1083 <build>
1084 <cleanup>true</cleanup>
1085 <tags>
1086 <tag>latest</tag>
1087 <tag>${project.docker.latesttagtimestamp.version}</tag>
1088 <tag>${project.docker.latesttag.version}</tag>
1089 </tags>
1090 <dockerFile>elasticsearch/Dockerfile</dockerFile>
1091 </build>
1092 </image>
1093 <image>
ac255096f162e2018-09-18 10:07:58 +02001094 <name>onap/clamp-dashboard-logstash</name>
1095 <alias>onap-clamp-dashboard-logstash</alias>
1096 <run>
1097 <skip>true</skip>
1098 </run>
1099 <build>
1100 <cleanup>true</cleanup>
1101 <tags>
1102 <tag>latest</tag>
1103 <tag>${project.docker.latesttagtimestamp.version}</tag>
1104 <tag>${project.docker.latesttag.version}</tag>
1105 </tags>
sebdetc95e8df2019-06-25 11:06:06 +02001106 <dockerFile>logstash/Dockerfile</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001107 </build>
1108 </image>
ac2550ead10512018-10-05 13:50:23 +02001109 <image>
1110 <name>onap/clamp-dashboard-kibana</name>
1111 <alias>onap-clamp-dashboard-kibana</alias>
1112 <run>
1113 <skip>true</skip>
1114 </run>
1115 <build>
1116 <cleanup>true</cleanup>
1117 <tags>
1118 <tag>latest</tag>
1119 <tag>${project.docker.latesttagtimestamp.version}</tag>
1120 <tag>${project.docker.latesttag.version}</tag>
1121 </tags>
sebdetc95e8df2019-06-25 11:06:06 +02001122 <dockerFile>kibana/Dockerfile</dockerFile>
ac2550ead10512018-10-05 13:50:23 +02001123 </build>
1124 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001125 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001126 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001127
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001128 <executions>
1129 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001130 <id>generate-images</id>
1131 <phase>install</phase>
1132 <goals>
1133 <goal>build</goal>
1134 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001135 </execution>
1136 <execution>
1137 <id>push-images</id>
1138 <phase>deploy</phase>
1139 <goals>
1140 <goal>push</goal>
1141 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001142 </execution>
1143 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001144 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001145 <phase>pre-integration-test</phase>
1146 <goals>
1147 <goal>start</goal>
1148 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001149 </execution>
1150 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001151 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001152 <phase>post-integration-test</phase>
1153 <goals>
1154 <goal>stop</goal>
1155 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001156 </execution>
1157 </executions>
1158 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001159
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001160 <plugin>
1161 <groupId>org.jacoco</groupId>
1162 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001163 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001164 <configuration>
1165 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001166 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001167 <includes>
1168 <include>org.onap.clamp.*</include>
1169 </includes>
1170 </configuration>
1171 <executions>
1172 <execution>
1173 <id>pre-unit-test</id>
1174 <goals>
1175 <goal>prepare-agent</goal>
1176 </goals>
1177 <configuration>
1178 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001179 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001180 <!-- <append>true</append> -->
1181 </configuration>
1182 </execution>
1183 <execution>
1184 <id>pre-integration-test</id>
1185 <phase>pre-integration-test</phase>
1186 <goals>
1187 <goal>prepare-agent</goal>
1188 </goals>
1189 <configuration>
1190 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001191 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001192 <!-- <append>true</append> -->
1193 </configuration>
1194 </execution>
1195 <execution>
1196 <goals>
1197 <goal>merge</goal>
1198 </goals>
1199 <phase>post-integration-test</phase>
1200 <configuration>
1201 <fileSets>
1202 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1203 <directory>${project.build.directory}/coverage-reports</directory>
1204 <includes>
1205 <include>*.exec</include>
1206 </includes>
1207 </fileSet>
1208 </fileSets>
1209 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1210 </configuration>
1211 </execution>
1212 </executions>
1213 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001214
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001215 <!-- This plugin will be useful when we will have multi-modules project -->
1216 <plugin>
1217 <groupId>org.codehaus.mojo</groupId>
1218 <artifactId>versions-maven-plugin</artifactId>
1219 <version>1.3.1</version>
1220 </plugin>
sebdete4422002018-10-16 17:47:54 +02001221
1222 <plugin>
1223 <groupId>com.github.eirslett</groupId>
1224 <artifactId>frontend-maven-plugin</artifactId>
1225 <version>1.6</version>
1226 <configuration>
TedHumphrey4aedf732019-08-13 15:56:33 +00001227 <installDirectory>${project.build.directory}/${ui.react.src}</installDirectory>
1228 <workingDirectory>${project.build.directory}/${ui.react.src}</workingDirectory>
sebdete4422002018-10-16 17:47:54 +02001229 </configuration>
sebdete4422002018-10-16 17:47:54 +02001230 <executions>
1231 <execution>
1232 <id>install_node_and_npm</id>
1233 <goals>
1234 <goal>install-node-and-npm</goal>
1235 </goals>
TedHumphrey4aedf732019-08-13 15:56:33 +00001236 <phase>generate-sources</phase>
sebdete4422002018-10-16 17:47:54 +02001237 <configuration>
1238 <nodeVersion>v8.11.1</nodeVersion>
1239 <npmVersion>5.6.0</npmVersion>
1240 </configuration>
1241 </execution>
1242 <execution>
1243 <id>npm_install</id>
1244 <goals>
1245 <goal>npm</goal>
1246 </goals>
TedHumphrey4aedf732019-08-13 15:56:33 +00001247 <phase>compile</phase>
sebdete4422002018-10-16 17:47:54 +02001248 <configuration>
1249 <arguments>install</arguments>
1250 </configuration>
1251 </execution>
1252 <execution>
1253 <id>npm_test</id>
1254 <goals>
1255 <goal>npm</goal>
1256 </goals>
1257 <phase>test</phase>
1258 <configuration>
TedHumphrey4aedf732019-08-13 15:56:33 +00001259 <arguments>run-script test</arguments>
sebdete4422002018-10-16 17:47:54 +02001260 </configuration>
1261 </execution>
TedHumphrey4aedf732019-08-13 15:56:33 +00001262 <execution>
1263 <id>npm_publish</id>
1264 <goals>
1265 <goal>npm</goal>
1266 </goals>
1267 <phase>deploy</phase>
1268 <configuration>
1269 <arguments>publish --registry ${npm.publish.url}</arguments>
1270 </configuration>
1271 </execution>
sebdete4422002018-10-16 17:47:54 +02001272 </executions>
1273 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001274 </plugins>
1275 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001276</project>