blob: df8b0e27a57c74f74b966aad31127cfb49117f09 [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>
Determe, Sebastien (sd378r)ef9aed42019-05-24 12:29:25 +020027 <version>4.0.3-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010028 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070029
sebdet029e6b42019-04-26 16:51:50 +020030<!-- -->
31<!-- <parent> -->
32<!-- <groupId>org.onap.oparent</groupId> -->
33<!-- <artifactId>oparent</artifactId> -->
34<!-- <version>1.2.3</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)785b1772019-05-28 11:54:27 +0200922 <groupId>org.sonatype.plugins</groupId>
923 <artifactId>nexus-staging-maven-plugin</artifactId>
924 <version>1.6.7</version>
925 <extensions>true</extensions>
926 <configuration>
927 <nexusUrl>https://nexus.onap.org</nexusUrl>
928 <stagingProfileId>176c31dfe190a</stagingProfileId>
929 <serverId>ecomp-staging</serverId>
930 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
931 </configuration>
932 </plugin>
933
934 <plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100935 <groupId>org.apache.maven.plugins</groupId>
936 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100937 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100938 <configuration>
sebdetd72d0d02018-12-01 15:09:54 +0100939 <forkCount>1C</forkCount>
sebdetf1d69902018-11-12 07:38:45 +0100940 <reuseForks>true</reuseForks>
941 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100942 <argLine>${surefireArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100943 </configuration>
944 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200945
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100946 <plugin>
947 <groupId>org.apache.maven.plugins</groupId>
948 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100949 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100950 <executions>
951 <execution>
952 <id>integration-tests</id>
953 <goals>
954 <goal>integration-test</goal>
955 <goal>verify</goal>
956 </goals>
957 <configuration>
sebdet25793862018-11-08 17:11:10 +0100958 <additionalClasspathElements>
959 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
960 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100961 <includes>
962 <include>**/*ItCase.java</include>
963 </includes>
sebdetf1d69902018-11-12 07:38:45 +0100964 <forkCount>1</forkCount>
sebdetd72d0d02018-12-01 15:09:54 +0100965 <reuseForks>true</reuseForks>
sebdetf1d69902018-11-12 07:38:45 +0100966 <useSystemClassLoader>false</useSystemClassLoader>
sebdetce0136d2018-12-13 15:09:07 +0100967 <argLine>${failsafeArgLine}</argLine>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100968 </configuration>
969 </execution>
970 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200971
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100972 </plugin>
973 <plugin>
974 <groupId>io.fabric8</groupId>
975 <artifactId>docker-maven-plugin</artifactId>
sebdet0ffc0442018-11-27 14:50:00 +0100976 <version>0.27.2</version>
sebdetd72d0d02018-12-01 15:09:54 +0100977 <dependencies>
978 <dependency>
979 <groupId>org.apache.httpcomponents</groupId>
980 <artifactId>httpclient</artifactId>
981 <version>4.5.5</version>
982 </dependency>
983 </dependencies>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100984 <configuration>
985 <verbose>true</verbose>
sebdet0ffc0442018-11-27 14:50:00 +0100986 <apiVersion>1.35</apiVersion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100987 <images>
988 <image>
sebdetc2bcf2a2019-02-22 08:16:26 +0100989 <name>library/mariadb:10.3.12</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100990 <alias>mariadb</alias>
991 <run>
992 <env>
993 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
994 </env>
995 <hostname>mariadb</hostname>
996 <volumes>
997 <bind>
998 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
999 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
1000 </bind>
1001 </volumes>
1002 <wait>
1003 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +01001004 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001005 </wait>
1006 <ports>
1007 <port>${docker.mariadb.port.host}:3306</port>
1008 </ports>
1009 </run>
1010 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001011 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001012 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001013 <alias>python</alias>
1014 <run>
1015 <hostname>python</hostname>
1016 <volumes>
1017 <bind>
1018 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +01001019 <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 +01001020 </bind>
1021 </volumes>
1022 <wait>
1023 <tcp>
1024 <ports>
1025 <port>8080</port>
1026 </ports>
1027 <mode>direct</mode>
1028 </tcp>
1029 <time>120000</time>
1030 </wait>
1031 <ports>
1032 <port>${docker.http-cache.port.host}:8080</port>
1033 </ports>
1034 <workingDir>/usr/src/http-cache-app</workingDir>
1035 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +02001036 <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 +01001037 </cmd>
1038 </run>
1039 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001040 <image>
1041 <name>onap/clamp</name>
1042 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001043 <run>
1044 <skip>true</skip>
1045 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001046 <build>
1047 <cleanup>true</cleanup>
1048 <tags>
1049 <tag>latest</tag>
1050 <tag>${project.docker.latesttagtimestamp.version}</tag>
1051 <tag>${project.docker.latesttag.version}</tag>
1052 </tags>
Krysiak Adamcdfe48c2019-01-29 15:59:00 +01001053 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +02001054 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001055 <dockerFile>Dockerfile</dockerFile>
1056 <assembly>
1057 <descriptor>assembly/clamp-files.xml</descriptor>
1058 <name>onap-clamp</name>
1059 </assembly>
1060 </build>
1061 </image>
ac255096f162e2018-09-18 10:07:58 +02001062 <image>
1063 <name>onap/clamp-dashboard-logstash</name>
1064 <alias>onap-clamp-dashboard-logstash</alias>
1065 <run>
1066 <skip>true</skip>
1067 </run>
1068 <build>
1069 <cleanup>true</cleanup>
1070 <tags>
1071 <tag>latest</tag>
1072 <tag>${project.docker.latesttagtimestamp.version}</tag>
1073 <tag>${project.docker.latesttag.version}</tag>
1074 </tags>
ac2550a61b86e2018-10-10 13:54:08 +02001075 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +02001076 </build>
1077 </image>
ac2550ead10512018-10-05 13:50:23 +02001078 <image>
1079 <name>onap/clamp-dashboard-kibana</name>
1080 <alias>onap-clamp-dashboard-kibana</alias>
1081 <run>
1082 <skip>true</skip>
1083 </run>
1084 <build>
1085 <cleanup>true</cleanup>
1086 <tags>
1087 <tag>latest</tag>
1088 <tag>${project.docker.latesttagtimestamp.version}</tag>
1089 <tag>${project.docker.latesttag.version}</tag>
1090 </tags>
1091 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1092 </build>
1093 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001094 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001095 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001096
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001097 <executions>
1098 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001099 <id>generate-images</id>
1100 <phase>install</phase>
1101 <goals>
1102 <goal>build</goal>
1103 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001104 </execution>
1105 <execution>
1106 <id>push-images</id>
1107 <phase>deploy</phase>
1108 <goals>
1109 <goal>push</goal>
1110 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001111 </execution>
1112 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001113 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001114 <phase>pre-integration-test</phase>
1115 <goals>
1116 <goal>start</goal>
1117 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001118 </execution>
1119 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001120 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001121 <phase>post-integration-test</phase>
1122 <goals>
1123 <goal>stop</goal>
1124 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001125 </execution>
1126 </executions>
1127 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001128
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001129 <plugin>
1130 <groupId>org.jacoco</groupId>
1131 <artifactId>jacoco-maven-plugin</artifactId>
sebdetf1d69902018-11-12 07:38:45 +01001132 <version>0.8.2</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001133 <configuration>
1134 <dumpOnExit>true</dumpOnExit>
sebdetce0136d2018-12-13 15:09:07 +01001135 <append>true</append>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001136 <includes>
1137 <include>org.onap.clamp.*</include>
1138 </includes>
1139 </configuration>
1140 <executions>
1141 <execution>
1142 <id>pre-unit-test</id>
1143 <goals>
1144 <goal>prepare-agent</goal>
1145 </goals>
1146 <configuration>
1147 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001148 <propertyName>surefireArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001149 <!-- <append>true</append> -->
1150 </configuration>
1151 </execution>
1152 <execution>
1153 <id>pre-integration-test</id>
1154 <phase>pre-integration-test</phase>
1155 <goals>
1156 <goal>prepare-agent</goal>
1157 </goals>
1158 <configuration>
1159 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
sebdetce0136d2018-12-13 15:09:07 +01001160 <propertyName>failsafeArgLine</propertyName>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001161 <!-- <append>true</append> -->
1162 </configuration>
1163 </execution>
1164 <execution>
1165 <goals>
1166 <goal>merge</goal>
1167 </goals>
1168 <phase>post-integration-test</phase>
1169 <configuration>
1170 <fileSets>
1171 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1172 <directory>${project.build.directory}/coverage-reports</directory>
1173 <includes>
1174 <include>*.exec</include>
1175 </includes>
1176 </fileSet>
1177 </fileSets>
1178 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1179 </configuration>
1180 </execution>
1181 </executions>
1182 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001183
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001184 <!-- This plugin will be useful when we will have multi-modules project -->
1185 <plugin>
1186 <groupId>org.codehaus.mojo</groupId>
1187 <artifactId>versions-maven-plugin</artifactId>
1188 <version>1.3.1</version>
1189 </plugin>
sebdete4422002018-10-16 17:47:54 +02001190
1191 <plugin>
1192 <groupId>com.github.eirslett</groupId>
1193 <artifactId>frontend-maven-plugin</artifactId>
1194 <version>1.6</version>
1195 <configuration>
1196 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1197 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1198 <skip>${maven.test.skip}</skip>
1199 </configuration>
1200
1201 <executions>
1202 <execution>
1203 <id>install_node_and_npm</id>
1204 <goals>
1205 <goal>install-node-and-npm</goal>
1206 </goals>
1207 <phase>test</phase>
1208 <configuration>
1209 <nodeVersion>v8.11.1</nodeVersion>
1210 <npmVersion>5.6.0</npmVersion>
1211 </configuration>
1212 </execution>
1213 <execution>
1214 <id>npm_install</id>
1215 <goals>
1216 <goal>npm</goal>
1217 </goals>
1218 <phase>test</phase>
1219 <configuration>
1220 <arguments>install</arguments>
1221 </configuration>
1222 </execution>
1223 <execution>
1224 <id>npm_test</id>
1225 <goals>
1226 <goal>npm</goal>
1227 </goals>
1228 <phase>test</phase>
1229 <configuration>
1230 <arguments>run-script test:coverage</arguments>
1231 </configuration>
1232 </execution>
1233
1234 </executions>
1235 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001236 </plugins>
1237 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001238</project>