blob: 7f4f5d9e954b465813d461beab97ee44ca96a6d8 [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)7a58af82018-06-06 13:47:21 +020027 <version>3.0.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010028 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070029
sebdet0adebac2018-10-03 11:48:00 +020030<!-- <parent> -->
31<!-- <groupId>org.onap.oparent</groupId> -->
32<!-- <artifactId>oparent</artifactId> -->
33<!-- <version>1.2.0</version> -->
34<!-- </parent> -->
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070035
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010037 This project build the ONAP CLAMP JAR that contains CLAMP back-end code and its UI part.
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070038
39 By Default "mvn clean install" command will execute also the unit tests
40 and the integration tests. The integration tests require a docker engine running.
41
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020042 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070043 "mvn clean install -DskipITs=true"
44
45 For Spring it's possible to specify the application.properties location
46 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
47
48 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010049 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
50 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080051
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010052 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070053
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010054 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070055 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <clamp.project.version>${project.version}</clamp.project.version>
57 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
58 <maven.compiler.source>1.8</maven.compiler.source>
59 <maven.compiler.target>1.8</maven.compiler.target>
60 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070062
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010063 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010064 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <project.scm.id>git-server</project.scm.id>
66 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010067
68 <eelf.core.version>1.0.0</eelf.core.version>
xg353y054f1d12018-07-23 16:02:28 +020069 <camel.version>2.22.0</camel.version>
Determe, Sebastien (sd378r)cca933e2018-08-13 16:18:13 +020070 <springboot.version>2.0.3.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070071
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010072 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
73 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
74 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
75 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
76 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
sebdete4422002018-10-16 17:47:54 +020077 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010078 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sebdete4422002018-10-16 17:47:54 +020079 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
80 <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/>
xg353y054f1d12018-07-23 16:02:28 +020089 <tomcat.version>8.5.32</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>
146 <id>ecomp-releases</id>
147 <name>Clamp Release Repository</name>
148 <url>https://nexus.onap.org/content/repositories/releases/</url>
149 </repository>
150 <snapshotRepository>
151 <id>ecomp-snapshots</id>
152 <name>Clamp Snapshot Repository</name>
153 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154 </snapshotRepository>
155 <site>
156 <id>ecomp-site</id>
157 <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>
163 <id>central</id>
164 <name>Maven 2 repository 2</name>
165 <url>http://repo2.maven.org/maven2/</url>
166 </repository>
167 <repository>
168 <id>ecomp-releases</id>
169 <name>ONAP Release Repository</name>
170 <url>https://nexus.onap.org/content/repositories/releases/</url>
171 </repository>
172 <repository>
173 <id>ecomp-staging</id>
174 <name>ONAP Staging Repository</name>
175 <url>https://nexus.onap.org/content/repositories/staging/</url>
176 </repository>
177 <repository>
178 <id>ecomp-snapshots</id>
179 <name>ONAP Snapshot Repository</name>
180 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
181 <snapshots>
182 <enabled>true</enabled>
183 </snapshots>
184 <releases>
185 <enabled>false</enabled>
186 </releases>
187 </repository>
188 <repository>
189 <id>spring-repo</id>
190 <name>Spring repo</name>
191 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
192 </repository>
193 <repository>
194 <id>repository.jboss.org-public</id>
195 <name>JBoss.org Maven repository</name>
196 <url>https://repository.jboss.org/nexus/content/groups/public</url>
197 </repository>
198 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700199
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100200 <dependencyManagement>
201 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100202 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100203 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100204 <groupId>org.springframework.boot</groupId>
205 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100206 <version>${springboot.version}</version>
207 <type>pom</type>
208 <scope>import</scope>
209 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100210 <!-- Camel BOM -->
211 <dependency>
212 <groupId>org.apache.camel</groupId>
213 <artifactId>camel-spring-boot-dependencies</artifactId>
214 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100215 <type>pom</type>
216 <scope>import</scope>
217 </dependency>
218 </dependencies>
219 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700220
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100221 <dependencies>
222 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100223 <groupId>com.att.eelf</groupId>
224 <artifactId>eelf-core</artifactId>
225 <version>${eelf.core.version}</version>
226 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200227 <dependency>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200228 <groupId>org.codehaus.janino</groupId>
229 <artifactId>janino</artifactId>
230 <version>3.0.8</version>
231 </dependency>
232 <dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200233 <groupId>org.apache.tomcat.embed</groupId>
234 <artifactId>tomcat-embed-core</artifactId>
235 <version>${tomcat.version}</version>
236 </dependency>
237 <dependency>
238 <groupId>org.apache.tomcat.embed</groupId>
239 <artifactId>tomcat-embed-el</artifactId>
240 <version>${tomcat.version}</version>
241 </dependency>
242 <dependency>
243 <groupId>org.apache.tomcat.embed</groupId>
244 <artifactId>tomcat-embed-websocket</artifactId>
245 <version>${tomcat.version}</version>
246 </dependency>
247 <dependency>
248 <groupId>org.apache.tomcat</groupId>
249 <artifactId>tomcat-annotations-api</artifactId>
250 <version>${tomcat.version}</version>
251 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100252 <!-- For CAMEL -->
253 <dependency>
254 <groupId>org.apache.camel</groupId>
255 <artifactId>camel-spring-boot-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100256 </dependency>
257 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100258 <groupId>org.apache.camel</groupId>
259 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100260 </dependency>
261 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100262 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100263 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100264 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200265 <dependency>
xg353y054f1d12018-07-23 16:02:28 +0200266 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200267 <artifactId>camel-jackson-starter</artifactId>
268 </dependency>
269 <dependency>
270 <groupId>org.apache.camel</groupId>
271 <artifactId>camel-swagger-java-starter</artifactId>
272 <exclusions>
273 <exclusion>
274 <groupId>javax.ws.rs</groupId>
275 <artifactId>jsr311-api</artifactId>
276 </exclusion>
Determe, Sebastien (sd378r)db25b622018-08-06 15:30:35 +0200277 <exclusion>
278 <groupId>org.slf4j</groupId>
279 <artifactId>slf4j-ext</artifactId>
280 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200281 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200282 </dependency>
283 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200284 <groupId>javax.xml.bind</groupId>
285 <artifactId>jaxb-api</artifactId>
286 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200287 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200288 <dependency>
289 <groupId>org.glassfish.jersey.core</groupId>
290 <artifactId>jersey-common</artifactId>
291 <version>2.27</version>
292 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100293 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100294 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100295 <groupId>org.springframework.boot</groupId>
296 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100297 </dependency>
298 <dependency>
299 <groupId>org.springframework.boot</groupId>
300 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100301 </dependency>
302 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100303 <groupId>org.springframework</groupId>
304 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 </dependency>
306 <dependency>
307 <groupId>org.springframework.boot</groupId>
308 <artifactId>spring-boot-starter-security</artifactId>
309 </dependency>
310 <dependency>
311 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200312 <artifactId>spring-boot-autoconfigure</artifactId>
313 </dependency>
314 <dependency>
315 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100316 <artifactId>spring-boot-starter-test</artifactId>
317 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100318 <exclusions>
319 <exclusion>
320 <groupId>com.vaadin.external.google</groupId>
321 <artifactId>android-json</artifactId>
322 </exclusion>
323 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100324 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100325 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100326 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200327 <groupId>org.onap.aaf.authz</groupId>
328 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200329 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200330 <exclusions>
331 <exclusion>
332 <groupId>javax.servlet</groupId>
333 <artifactId>servlet-api</artifactId>
334 </exclusion>
335 </exclusions>
336 </dependency>
337 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100338 <groupId>ch.qos.logback</groupId>
339 <artifactId>logback-core</artifactId>
340 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100341 </dependency>
342 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100343 <groupId>ch.qos.logback</groupId>
344 <artifactId>logback-classic</artifactId>
345 <version>1.2.3</version>
346 </dependency>
347 <dependency>
348 <groupId>commons-dbcp</groupId>
349 <artifactId>commons-dbcp</artifactId>
350 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100351 </dependency>
352 <dependency>
353 <groupId>commons-io</groupId>
354 <artifactId>commons-io</artifactId>
355 <version>2.6</version>
356 </dependency>
357 <dependency>
358 <groupId>com.googlecode.json-simple</groupId>
359 <artifactId>json-simple</artifactId>
360 </dependency>
361 <dependency>
362 <groupId>org.apache.commons</groupId>
363 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100364 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100365 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100366 <dependency>
367 <groupId>joda-time</groupId>
368 <artifactId>joda-time</artifactId>
369 </dependency>
370 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100371 <groupId>org.slf4j</groupId>
372 <artifactId>slf4j-api</artifactId>
373 </dependency>
374 <dependency>
375 <groupId>javax.ws.rs</groupId>
376 <artifactId>javax.ws.rs-api</artifactId>
377 <version>2.0</version>
378 </dependency>
379 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100380 <groupId>junit</groupId>
381 <artifactId>junit</artifactId>
382 </dependency>
383 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100384 <groupId>javax.transaction</groupId>
385 <artifactId>jta</artifactId>
386 <version>1.1</version>
387 </dependency>
388 <dependency>
389 <groupId>javax.persistence</groupId>
390 <artifactId>persistence-api</artifactId>
391 <version>1.0.2</version>
392 </dependency>
393 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100394 <groupId>org.onap.policy.engine</groupId>
395 <artifactId>PolicyEngineAPI</artifactId>
sebdet0adebac2018-10-03 11:48:00 +0200396 <version>1.3.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100397 <exclusions>
398 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500399 <groupId>com.google.guava</groupId>
400 <artifactId>guava</artifactId>
401 </exclusion>
402 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100403 <artifactId>log4j</artifactId>
404 <groupId>log4j</groupId>
405 </exclusion>
406 <exclusion>
407 <groupId>org.slf4j</groupId>
408 <artifactId>slf4j-log4j12</artifactId>
409 </exclusion>
410 <exclusion>
411 <artifactId>apache-log4j-extras</artifactId>
412 <groupId>log4j</groupId>
413 </exclusion>
414 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100415 <groupId>mysql</groupId>
416 <artifactId>mysql-connector-java</artifactId>
417 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100418 <exclusion>
419 <groupId>commons-io</groupId>
420 <artifactId>commons-io</artifactId>
421 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200422 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200423 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200424 <groupId>org.glassfish.grizzly</groupId>
425 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200426 <exclusion>
427 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
428 <artifactId>dmaapClient</artifactId>
429 </exclusion>
430 <exclusion>
431 <groupId>org.onap.policy.common</groupId>
432 <artifactId>integrity-monitor</artifactId>
433 </exclusion>
434 <exclusion>
435 <groupId>org.onap.policy.common</groupId>
436 <artifactId>integrity-audit</artifactId>
437 </exclusion>
438 <exclusion>
439 <groupId>org.onap.aaf.cadi</groupId>
440 <artifactId>cadi-aaf</artifactId>
441 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200442 <exclusion>
443 <groupId>javax.jms</groupId>
444 <artifactId>jms</artifactId>
445 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100446 </exclusions>
447 </dependency>
448 <dependency>
449 <groupId>org.onap.policy.common</groupId>
450 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200451 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100452 <exclusions>
453 <exclusion>
454 <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 </exclusions>
466 </dependency>
467 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200468 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100469 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200470 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100471 <exclusions>
472 <exclusion>
473 <artifactId>log4j</artifactId>
474 <groupId>log4j</groupId>
475 </exclusion>
476 <exclusion>
477 <groupId>org.slf4j</groupId>
478 <artifactId>slf4j-log4j12</artifactId>
479 </exclusion>
480 <exclusion>
481 <artifactId>apache-log4j-extras</artifactId>
482 <groupId>log4j</groupId>
483 </exclusion>
484 </exclusions>
485 </dependency>
486 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200487 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100488 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200489 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100490 <exclusions>
491 <exclusion>
492 <artifactId>log4j</artifactId>
493 <groupId>log4j</groupId>
494 </exclusion>
495 <exclusion>
496 <groupId>org.slf4j</groupId>
497 <artifactId>slf4j-log4j12</artifactId>
498 </exclusion>
499 <exclusion>
500 <artifactId>apache-log4j-extras</artifactId>
501 <groupId>log4j</groupId>
502 </exclusion>
503 </exclusions>
504 </dependency>
505 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200506 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100507 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200508 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100509 <exclusions>
510 <exclusion>
511 <artifactId>log4j</artifactId>
512 <groupId>log4j</groupId>
513 </exclusion>
514 <exclusion>
515 <groupId>org.slf4j</groupId>
516 <artifactId>slf4j-log4j12</artifactId>
517 </exclusion>
518 <exclusion>
519 <artifactId>apache-log4j-extras</artifactId>
520 <groupId>log4j</groupId>
521 </exclusion>
522 </exclusions>
523 </dependency>
524 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100525 <groupId>org.apache.commons</groupId>
526 <artifactId>commons-csv</artifactId>
527 <version>1.3</version>
528 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100529 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
530 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200531 <groupId>org.codehaus.plexus</groupId>
532 <artifactId>plexus-utils</artifactId>
533 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100534 </dependency>
535 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200536 <groupId>commons-fileupload</groupId>
537 <artifactId>commons-fileupload</artifactId>
538 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100539 </dependency>
540 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200541 <groupId>org.jboss.spec.javax.ws.rs</groupId>
542 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
543 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100544 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200545 <dependency>
546 <groupId>com.google.guava</groupId>
547 <artifactId>guava</artifactId>
sebdet0adebac2018-10-03 11:48:00 +0200548 <version>25.1-jre</version>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200549 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100550 <!-- Remove the MYSQL connector and replace it by Mariadb -->
551 <dependency>
552 <groupId>org.mariadb.jdbc</groupId>
553 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100554 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100555 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100556 <!-- For SDC Controller -->
557 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200558 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100559 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200560 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100561 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100562 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200563 <groupId>org.onap.sdc.sdc-tosca</groupId>
564 <artifactId>sdc-tosca</artifactId>
osgn422w999cc722018-08-27 18:11:16 +0200565 <version>1.4.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100566 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200567 <!-- TESTING -->
568 <dependency>
569 <groupId>org.assertj</groupId>
570 <artifactId>assertj-core</artifactId>
571 <version>3.10.0</version>
572 <scope>test</scope>
573 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200574 <dependency>
575 <groupId>org.mockito</groupId>
576 <artifactId>mockito-core</artifactId>
577 <version>1.10.19</version>
578 <scope>test</scope>
579 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200580 </dependencies>
581 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200582 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200583 <id>central-for-plugins</id>
584 <name>Maven 2 repository 2</name>
585 <url>http://repo2.maven.org/maven2/</url>
586 </pluginRepository>
587 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200588 <snapshots>
589 <enabled>false</enabled>
590 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200591 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200592 <name>jcenter</name>
593 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200594 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200595 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100596 <build>
597 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700598
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100599 <testResources>
600 <testResource>
601 <directory>src/test/resources</directory>
602 <excludes>
603 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100604 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100605 </excludes>
606 <filtering>true</filtering>
607 </testResource>
608 <testResource>
609 <directory>src/test/resources/https</directory>
610 <includes>
611 <include>**.jks</include>
612 </includes>
613 <filtering>false</filtering>
614 <targetPath>https</targetPath>
615 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200616 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100617 <directory>src/test/resources/example/sdc</directory>
618 <includes>
619 <include>**.csar</include>
620 </includes>
621 <filtering>false</filtering>
622 <targetPath>example/sdc</targetPath>
623 </testResource>
sebdete4422002018-10-16 17:47:54 +0200624
625 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
626 <testResource>
627 <directory>src/test/javascript</directory>
628 <includes>
629 <include>**/**.json</include>
630 </includes>
631 <filtering>true</filtering>
632 <targetPath>${project.build.directory}/clamp-ui</targetPath>
633 </testResource>
634 <testResource>
635 <directory>src/main/resources/META-INF/resources/designer</directory>
636 <filtering>false</filtering>
637 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
638 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100639 </testResources>
640 <resources>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200641 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
642 Otherwise they will be broken and unreadable
643 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100644 <resource>
645 <directory>src/main/resources</directory>
646 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200647 <excludes>
648 <exclude>clds/aaf/**</exclude>
649 </excludes>
650 </resource>
651 <resource>
652 <directory>src/main/resources</directory>
653 <filtering>false</filtering>
654 <includes>
655 <include>clds/aaf/**</include>
656 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100657 </resource>
658 <resource>
659 <directory>src/main/docker</directory>
660 <includes>
661 <include>**/*</include>
662 </includes>
663 <filtering>true</filtering>
664 </resource>
665 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700666
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100667 <plugins>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200668 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
669 generate a list of .adoc files containing the APIs info in more structured
670 way -->
671 <plugin>
672 <groupId>io.github.swagger2markup</groupId>
673 <artifactId>swagger2markup-maven-plugin</artifactId>
674 <version>1.3.3</version>
675 <dependencies>
676 <dependency>
677 <groupId>io.github.swagger2markup</groupId>
678 <artifactId>swagger2markup-import-files-ext</artifactId>
679 <version>1.3.3</version>
680 </dependency>
681 <dependency>
682 <groupId>io.github.swagger2markup</groupId>
683 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
684 <version>1.3.3</version>
685 </dependency>
686 </dependencies>
687 <configuration>
688 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
689 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
690 <config>
691 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
692 </config>
693 </configuration>
694 <executions>
695 <execution>
696 <phase>post-integration-test</phase>
697 <goals>
698 <goal>convertSwagger2markup</goal>
699 </goals>
700 </execution>
701 </executions>
702 </plugin>
703
704 <!-- Run the generated asciidoc through Asciidoctor to generate other
705 documentation types, such as PDFs or HTML5 -->
706 <plugin>
707 <groupId>org.asciidoctor</groupId>
708 <artifactId>asciidoctor-maven-plugin</artifactId>
709 <version>1.5.6</version>
710 <dependencies>
711 <dependency>
712 <groupId>org.asciidoctor</groupId>
713 <artifactId>asciidoctorj-pdf</artifactId>
714 <version>1.5.0-alpha.10.1</version>
715 </dependency>
716 <dependency>
717 <groupId>org.jruby</groupId>
718 <artifactId>jruby-complete</artifactId>
719 <version>1.7.21</version>
720 </dependency>
721 </dependencies>
722 <configuration>
723 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
724 <sourceDocumentName>swagger.adoc</sourceDocumentName>
725 <attributes>
726 <doctype>book</doctype>
727 <toc>left</toc>
728 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700729 <numbered/>
730 <hardbreaks/>
731 <sectlinks/>
732 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200733 <generated>${project.build.directory}/asciidoc/generated</generated>
734 </attributes>
735 </configuration>
736
737 <executions>
738 <execution>
739 <id>output-html</id>
740 <phase>post-integration-test</phase>
741 <goals>
742 <goal>process-asciidoc</goal>
743 </goals>
744 <configuration>
745 <backend>html5</backend>
746 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
747 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
748 </configuration>
749 </execution>
750 <execution>
751 <id>output-pdf</id>
752 <phase>post-integration-test</phase>
753 <goals>
754 <goal>process-asciidoc</goal>
755 </goals>
756 <configuration>
757 <backend>pdf</backend>
758 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
759 </configuration>
760 </execution>
761 </executions>
762 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100763 <plugin>
764 <groupId>org.codehaus.groovy.maven</groupId>
765 <artifactId>gmaven-plugin</artifactId>
766 <version>1.0</version>
767 <executions>
768 <execution>
769 <phase>validate</phase>
770 <goals>
771 <goal>execute</goal>
772 </goals>
773 <configuration>
774 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
775 </configuration>
776 </execution>
777 </executions>
778 </plugin>
779 <plugin>
780 <groupId>org.apache.maven.plugins</groupId>
781 <artifactId>maven-jar-plugin</artifactId>
782 <version>3.0.2</version>
783 <executions>
784 <execution>
785 <id>jar-with-only-classes</id>
786 <phase>package</phase>
787 <goals>
788 <goal>jar</goal>
789 </goals>
790 <configuration>
791 <classifier>classes</classifier>
792 <includes>
793 <include>org/**</include>
794 </includes>
795 </configuration>
796 </execution>
797 </executions>
798 </plugin>
799 <plugin>
800 <groupId>org.codehaus.mojo</groupId>
801 <artifactId>build-helper-maven-plugin</artifactId>
802 <version>3.0.0</version>
803 <executions>
804 <execution>
805 <goals>
806 <goal>attach-artifact</goal>
807 </goals>
808 <phase>package</phase>
809 <configuration>
810 <artifacts>
811 <artifact>
812 <file>${project.build.directory}/clamp-classes.jar</file>
813 <type>jar</type>
814 <classifier>classes</classifier>
815 </artifact>
816 </artifacts>
817 </configuration>
818 </execution>
819 </executions>
820 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700821
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100822 <plugin>
823 <groupId>org.springframework.boot</groupId>
824 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200825 <!-- Temporary fix -->
826 <version>1.5.13.RELEASE</version>
827 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100828 <executions>
829 <execution>
830 <goals>
831 <goal>repackage</goal>
832 </goals>
833 <phase>package</phase>
834 </execution>
835 </executions>
836 </plugin>
837 <plugin>
838 <groupId>org.sonatype.plugins</groupId>
839 <artifactId>nexus-staging-maven-plugin</artifactId>
840 <version>1.6.7</version>
841 <extensions>true</extensions>
842 <configuration>
843 <nexusUrl>https://nexus.onap.org</nexusUrl>
844 <stagingProfileId>176c31dfe190a</stagingProfileId>
845 <serverId>ecomp-staging</serverId>
846 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
847 </configuration>
848 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200849
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100850 <plugin>
851 <groupId>org.apache.maven.plugins</groupId>
852 <artifactId>maven-surefire-plugin</artifactId>
853 <version>2.19.1</version>
854 <configuration>
855 <forkCount>1</forkCount>
856 <reuseForks>false</reuseForks>
857 </configuration>
858 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200859
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100860 <plugin>
861 <groupId>org.apache.maven.plugins</groupId>
862 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200863 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700864
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100865 <executions>
866 <execution>
867 <id>integration-tests</id>
868 <goals>
869 <goal>integration-test</goal>
870 <goal>verify</goal>
871 </goals>
872 <configuration>
873 <includes>
874 <include>**/*ItCase.java</include>
875 </includes>
876 <forkCount>1</forkCount>
877 <reuseForks>false</reuseForks>
878 </configuration>
879 </execution>
880 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200881
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100882 </plugin>
883 <plugin>
884 <groupId>io.fabric8</groupId>
885 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200886 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100887 <configuration>
888 <verbose>true</verbose>
889 <apiVersion>1.23</apiVersion>
890 <images>
891 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200892 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100893 <alias>mariadb</alias>
894 <run>
895 <env>
896 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
897 </env>
898 <hostname>mariadb</hostname>
899 <volumes>
900 <bind>
901 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
902 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
903 </bind>
904 </volumes>
905 <wait>
906 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100907 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100908 </wait>
909 <ports>
910 <port>${docker.mariadb.port.host}:3306</port>
911 </ports>
912 </run>
913 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100914 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200915 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100916 <alias>python</alias>
917 <run>
918 <hostname>python</hostname>
919 <volumes>
920 <bind>
921 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100922 <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 +0100923 </bind>
924 </volumes>
925 <wait>
926 <tcp>
927 <ports>
928 <port>8080</port>
929 </ports>
930 <mode>direct</mode>
931 </tcp>
932 <time>120000</time>
933 </wait>
934 <ports>
935 <port>${docker.http-cache.port.host}:8080</port>
936 </ports>
937 <workingDir>/usr/src/http-cache-app</workingDir>
938 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200939 <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 +0100940 </cmd>
941 </run>
942 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200943 <image>
944 <name>onap/clamp</name>
945 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200946 <run>
947 <skip>true</skip>
948 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200949 <build>
950 <cleanup>true</cleanup>
951 <tags>
952 <tag>latest</tag>
953 <tag>${project.docker.latesttagtimestamp.version}</tag>
954 <tag>${project.docker.latesttag.version}</tag>
955 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200956 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
957 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200958 <dockerFile>Dockerfile</dockerFile>
959 <assembly>
960 <descriptor>assembly/clamp-files.xml</descriptor>
961 <name>onap-clamp</name>
962 </assembly>
963 </build>
964 </image>
ac255096f162e2018-09-18 10:07:58 +0200965 <image>
966 <name>onap/clamp-dashboard-logstash</name>
967 <alias>onap-clamp-dashboard-logstash</alias>
968 <run>
969 <skip>true</skip>
970 </run>
971 <build>
972 <cleanup>true</cleanup>
973 <tags>
974 <tag>latest</tag>
975 <tag>${project.docker.latesttagtimestamp.version}</tag>
976 <tag>${project.docker.latesttag.version}</tag>
977 </tags>
ac2550a61b86e2018-10-10 13:54:08 +0200978 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +0200979 </build>
980 </image>
ac2550ead10512018-10-05 13:50:23 +0200981 <image>
982 <name>onap/clamp-dashboard-kibana</name>
983 <alias>onap-clamp-dashboard-kibana</alias>
984 <run>
985 <skip>true</skip>
986 </run>
987 <build>
988 <cleanup>true</cleanup>
989 <tags>
990 <tag>latest</tag>
991 <tag>${project.docker.latesttagtimestamp.version}</tag>
992 <tag>${project.docker.latesttag.version}</tag>
993 </tags>
994 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
995 </build>
996 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100997 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100998 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200999
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001000 <executions>
1001 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001002 <id>generate-images</id>
1003 <phase>install</phase>
1004 <goals>
1005 <goal>build</goal>
1006 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001007 </execution>
1008 <execution>
1009 <id>push-images</id>
1010 <phase>deploy</phase>
1011 <goals>
1012 <goal>push</goal>
1013 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001014 </execution>
1015 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001016 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001017 <phase>pre-integration-test</phase>
1018 <goals>
1019 <goal>start</goal>
1020 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001021 </execution>
1022 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001023 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001024 <phase>post-integration-test</phase>
1025 <goals>
1026 <goal>stop</goal>
1027 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001028 </execution>
1029 </executions>
1030 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001032 <plugin>
1033 <groupId>org.jacoco</groupId>
1034 <artifactId>jacoco-maven-plugin</artifactId>
1035 <version>0.7.7.201606060606</version>
1036 <configuration>
1037 <dumpOnExit>true</dumpOnExit>
1038 <includes>
1039 <include>org.onap.clamp.*</include>
1040 </includes>
1041 </configuration>
1042 <executions>
1043 <execution>
1044 <id>pre-unit-test</id>
1045 <goals>
1046 <goal>prepare-agent</goal>
1047 </goals>
1048 <configuration>
1049 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1050 <!-- <append>true</append> -->
1051 </configuration>
1052 </execution>
1053 <execution>
1054 <id>pre-integration-test</id>
1055 <phase>pre-integration-test</phase>
1056 <goals>
1057 <goal>prepare-agent</goal>
1058 </goals>
1059 <configuration>
1060 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1061 <!-- <append>true</append> -->
1062 </configuration>
1063 </execution>
1064 <execution>
1065 <goals>
1066 <goal>merge</goal>
1067 </goals>
1068 <phase>post-integration-test</phase>
1069 <configuration>
1070 <fileSets>
1071 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1072 <directory>${project.build.directory}/coverage-reports</directory>
1073 <includes>
1074 <include>*.exec</include>
1075 </includes>
1076 </fileSet>
1077 </fileSets>
1078 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1079 </configuration>
1080 </execution>
1081 </executions>
1082 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001083
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001084 <!-- This plugin will be useful when we will have multi-modules project -->
1085 <plugin>
1086 <groupId>org.codehaus.mojo</groupId>
1087 <artifactId>versions-maven-plugin</artifactId>
1088 <version>1.3.1</version>
1089 </plugin>
sebdete4422002018-10-16 17:47:54 +02001090
1091 <plugin>
1092 <groupId>com.github.eirslett</groupId>
1093 <artifactId>frontend-maven-plugin</artifactId>
1094 <version>1.6</version>
1095 <configuration>
1096 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1097 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1098 <skip>${maven.test.skip}</skip>
1099 </configuration>
1100
1101 <executions>
1102 <execution>
1103 <id>install_node_and_npm</id>
1104 <goals>
1105 <goal>install-node-and-npm</goal>
1106 </goals>
1107 <phase>test</phase>
1108 <configuration>
1109 <nodeVersion>v8.11.1</nodeVersion>
1110 <npmVersion>5.6.0</npmVersion>
1111 </configuration>
1112 </execution>
1113 <execution>
1114 <id>npm_install</id>
1115 <goals>
1116 <goal>npm</goal>
1117 </goals>
1118 <phase>test</phase>
1119 <configuration>
1120 <arguments>install</arguments>
1121 </configuration>
1122 </execution>
1123 <execution>
1124 <id>npm_test</id>
1125 <goals>
1126 <goal>npm</goal>
1127 </goals>
1128 <phase>test</phase>
1129 <configuration>
1130 <arguments>run-script test:coverage</arguments>
1131 </configuration>
1132 </execution>
1133
1134 </executions>
1135 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001136 </plugins>
1137 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001138</project>