blob: 026eb5cb8838387e9ad0a859a21e9d7fb43e1926 [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-->
23
ChrisC5e9feb22017-06-21 02:38:57 -070024<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010025 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
27 <groupId>org.onap.clamp</groupId>
28 <artifactId>clds</artifactId>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020029 <version>3.0.0-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010030 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070031
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
Determe, Sebastien (sd378r)b3737db2018-03-15 10:43:48 +010035 <version>1.1.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010036 </parent>
Determe, Sebastien (sd378r)a66fe452017-08-08 06:42:49 -070037
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010038 <description>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010039 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 -070040
41 By Default "mvn clean install" command will execute also the unit tests
42 and the integration tests. The integration tests require a docker engine running.
43
Determe, Sebastien (sd378r)08b94922018-03-27 10:25:41 +020044 If you want to skip the integration test you can by doing:
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070045 "mvn clean install -DskipITs=true"
46
47 For Spring it's possible to specify the application.properties location
48 "mvn clean install -Dspring.config.location=classpath:application-test.properties"
49
50 The application.properties contains the location of the CLAMP parameters files:
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010051 - org.onap.clamp.config.files.cldsUsers=classpath:/clds/clds-users.json
52 - org.onap.clamp.config.files.globalClds=classpath:/clds/globalClds.properties
ChrisCae04cf32018-02-05 05:21:59 -080053
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010054 </description>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070055
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010056 <properties>
Jessica Wagantall0a689de2018-04-04 18:29:29 -070057 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010058 <clamp.project.version>${project.version}</clamp.project.version>
59 <clamp.build.timestamp>${maven.build.timestamp}</clamp.build.timestamp>
60 <maven.compiler.source>1.8</maven.compiler.source>
61 <maven.compiler.target>1.8</maven.compiler.target>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070064
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010065 <docker.mariadb.port.host>3306</docker.mariadb.port.host>
Determe, Sebastien (sd378r)378d05b2018-03-23 14:46:56 +010066 <docker.http-cache.port.host>8085</docker.http-cache.port.host>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010067 <project.scm.id>git-server</project.scm.id>
68 <java.version>1.8</java.version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +010069
70 <eelf.core.version>1.0.0</eelf.core.version>
xg353y054f1d12018-07-23 16:02:28 +020071 <camel.version>2.22.0</camel.version>
72 <springboot.version>2.0.2.RELEASE</springboot.version>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070073
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010074 <sonar.language>java</sonar.language>
75 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
76 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
77 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
78 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
79 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
80 <sonar.projectVersion>${project.version}</sonar.projectVersion>
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>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +020088 <python.http.proxy.param></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>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100312 <artifactId>spring-boot-starter-actuator</artifactId>
313 </dependency>
314 <dependency>
315 <groupId>org.springframework.boot</groupId>
xg353y054f1d12018-07-23 16:02:28 +0200316 <artifactId>spring-boot-autoconfigure</artifactId>
317 </dependency>
318 <dependency>
319 <groupId>org.springframework.boot</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100320 <artifactId>spring-boot-starter-test</artifactId>
321 <scope>test</scope>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100322 <exclusions>
323 <exclusion>
324 <groupId>com.vaadin.external.google</groupId>
325 <artifactId>android-json</artifactId>
326 </exclusion>
327 </exclusions>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100328 </dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100329 <!-- Others dependencies -->
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100330 <dependency>
xg353ye6409552018-05-08 16:21:39 +0200331 <groupId>org.onap.aaf.authz</groupId>
332 <artifactId>aaf-cadi-aaf</artifactId>
xg353y7e836e12018-06-06 15:50:33 +0200333 <version>2.1.1</version>
xg353ye6409552018-05-08 16:21:39 +0200334 <exclusions>
335 <exclusion>
336 <groupId>javax.servlet</groupId>
337 <artifactId>servlet-api</artifactId>
338 </exclusion>
339 </exclusions>
340 </dependency>
341 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100342 <groupId>ch.qos.logback</groupId>
343 <artifactId>logback-core</artifactId>
344 <version>1.2.3</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100345 </dependency>
346 <dependency>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100347 <groupId>ch.qos.logback</groupId>
348 <artifactId>logback-classic</artifactId>
349 <version>1.2.3</version>
350 </dependency>
351 <dependency>
352 <groupId>commons-dbcp</groupId>
353 <artifactId>commons-dbcp</artifactId>
354 <version>1.4</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100355 </dependency>
356 <dependency>
357 <groupId>commons-io</groupId>
358 <artifactId>commons-io</artifactId>
359 <version>2.6</version>
360 </dependency>
361 <dependency>
362 <groupId>com.googlecode.json-simple</groupId>
363 <artifactId>json-simple</artifactId>
364 </dependency>
365 <dependency>
366 <groupId>org.apache.commons</groupId>
367 <artifactId>commons-vfs2</artifactId>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100368 <version>2.2</version>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100369 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100370 <dependency>
371 <groupId>joda-time</groupId>
372 <artifactId>joda-time</artifactId>
373 </dependency>
374 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100375 <groupId>org.slf4j</groupId>
376 <artifactId>slf4j-api</artifactId>
377 </dependency>
378 <dependency>
379 <groupId>javax.ws.rs</groupId>
380 <artifactId>javax.ws.rs-api</artifactId>
381 <version>2.0</version>
382 </dependency>
383 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100384 <groupId>junit</groupId>
385 <artifactId>junit</artifactId>
386 </dependency>
387 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100388 <groupId>javax.transaction</groupId>
389 <artifactId>jta</artifactId>
390 <version>1.1</version>
391 </dependency>
392 <dependency>
393 <groupId>javax.persistence</groupId>
394 <artifactId>persistence-api</artifactId>
395 <version>1.0.2</version>
396 </dependency>
397 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100398 <groupId>org.onap.policy.engine</groupId>
399 <artifactId>PolicyEngineAPI</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200400 <version>1.2.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100401 <exclusions>
402 <exclusion>
Bertozzi, Julien (jb379x)009f7132018-03-08 15:53:57 -0500403 <groupId>com.google.guava</groupId>
404 <artifactId>guava</artifactId>
405 </exclusion>
406 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100407 <artifactId>log4j</artifactId>
408 <groupId>log4j</groupId>
409 </exclusion>
410 <exclusion>
411 <groupId>org.slf4j</groupId>
412 <artifactId>slf4j-log4j12</artifactId>
413 </exclusion>
414 <exclusion>
415 <artifactId>apache-log4j-extras</artifactId>
416 <groupId>log4j</groupId>
417 </exclusion>
418 <exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100419 <groupId>mysql</groupId>
420 <artifactId>mysql-connector-java</artifactId>
421 </exclusion>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100422 <exclusion>
423 <groupId>commons-io</groupId>
424 <artifactId>commons-io</artifactId>
425 </exclusion>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200426 <exclusion>
Determe, Sebastien (sd378r)215a3552018-07-02 16:12:21 +0200427 <artifactId>grizzly-http-server</artifactId>
Determe, Sebastien (sd378r)a75076b2018-04-09 14:06:35 +0200428 <groupId>org.glassfish.grizzly</groupId>
429 </exclusion>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200430 <exclusion>
431 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
432 <artifactId>dmaapClient</artifactId>
433 </exclusion>
434 <exclusion>
435 <groupId>org.onap.policy.common</groupId>
436 <artifactId>integrity-monitor</artifactId>
437 </exclusion>
438 <exclusion>
439 <groupId>org.onap.policy.common</groupId>
440 <artifactId>integrity-audit</artifactId>
441 </exclusion>
442 <exclusion>
443 <groupId>org.onap.aaf.cadi</groupId>
444 <artifactId>cadi-aaf</artifactId>
445 </exclusion>
Determe, Sebastien (sd378r)d153aaa2018-07-05 17:18:19 +0200446 <exclusion>
447 <groupId>javax.jms</groupId>
448 <artifactId>jms</artifactId>
449 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100450 </exclusions>
451 </dependency>
452 <dependency>
453 <groupId>org.onap.policy.common</groupId>
454 <artifactId>ONAP-Logging</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200455 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100456 <exclusions>
457 <exclusion>
458 <artifactId>log4j</artifactId>
459 <groupId>log4j</groupId>
460 </exclusion>
461 <exclusion>
462 <groupId>org.slf4j</groupId>
463 <artifactId>slf4j-log4j12</artifactId>
464 </exclusion>
465 <exclusion>
466 <artifactId>apache-log4j-extras</artifactId>
467 <groupId>log4j</groupId>
468 </exclusion>
469 </exclusions>
470 </dependency>
471 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100472 <groupId>org.onap.policy.drools-applications</groupId>
473 <artifactId>policy-yaml</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200474 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100475 <exclusions>
476 <exclusion>
477 <artifactId>log4j</artifactId>
478 <groupId>log4j</groupId>
479 </exclusion>
480 <exclusion>
481 <groupId>org.slf4j</groupId>
482 <artifactId>slf4j-log4j12</artifactId>
483 </exclusion>
484 <exclusion>
485 <artifactId>apache-log4j-extras</artifactId>
486 <groupId>log4j</groupId>
487 </exclusion>
488 </exclusions>
489 </dependency>
490 <dependency>
491 <groupId>org.onap.policy.drools-applications</groupId>
492 <artifactId>sdc</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200493 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100494 <exclusions>
495 <exclusion>
496 <artifactId>log4j</artifactId>
497 <groupId>log4j</groupId>
498 </exclusion>
499 <exclusion>
500 <groupId>org.slf4j</groupId>
501 <artifactId>slf4j-log4j12</artifactId>
502 </exclusion>
503 <exclusion>
504 <artifactId>apache-log4j-extras</artifactId>
505 <groupId>log4j</groupId>
506 </exclusion>
507 </exclusions>
508 </dependency>
509 <dependency>
510 <groupId>org.onap.policy.drools-applications</groupId>
511 <artifactId>aai</artifactId>
Determe, Sebastien (sd378r)42765b22018-03-28 17:25:55 +0200512 <version>1.1.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100513 <exclusions>
514 <exclusion>
515 <artifactId>log4j</artifactId>
516 <groupId>log4j</groupId>
517 </exclusion>
518 <exclusion>
519 <groupId>org.slf4j</groupId>
520 <artifactId>slf4j-log4j12</artifactId>
521 </exclusion>
522 <exclusion>
523 <artifactId>apache-log4j-extras</artifactId>
524 <groupId>log4j</groupId>
525 </exclusion>
526 </exclusions>
527 </dependency>
528 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100529 <groupId>org.apache.commons</groupId>
530 <artifactId>commons-csv</artifactId>
531 <version>1.3</version>
532 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100533 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
534 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200535 <groupId>org.codehaus.plexus</groupId>
536 <artifactId>plexus-utils</artifactId>
537 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100538 </dependency>
539 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200540 <groupId>commons-fileupload</groupId>
541 <artifactId>commons-fileupload</artifactId>
542 <version>1.3.3</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100543 </dependency>
544 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200545 <groupId>org.jboss.spec.javax.ws.rs</groupId>
546 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
547 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100548 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200549 <dependency>
550 <groupId>com.google.guava</groupId>
551 <artifactId>guava</artifactId>
552 <version>25.1-jre</version>
553 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100554 <!-- Remove the MYSQL connector and replace it by Mariadb -->
555 <dependency>
556 <groupId>org.mariadb.jdbc</groupId>
557 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100558 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100559 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100560 <!-- For SDC Controller -->
561 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200562 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100563 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200564 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100565 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100566 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200567 <groupId>org.onap.sdc.sdc-tosca</groupId>
568 <artifactId>sdc-tosca</artifactId>
569 <version>1.3.0</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100570 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200571 <!-- TESTING -->
572 <dependency>
573 <groupId>org.assertj</groupId>
574 <artifactId>assertj-core</artifactId>
575 <version>3.10.0</version>
576 <scope>test</scope>
577 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200578 <dependency>
579 <groupId>org.mockito</groupId>
580 <artifactId>mockito-core</artifactId>
581 <version>1.10.19</version>
582 <scope>test</scope>
583 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200584 </dependencies>
585 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200586 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200587 <id>central-for-plugins</id>
588 <name>Maven 2 repository 2</name>
589 <url>http://repo2.maven.org/maven2/</url>
590 </pluginRepository>
591 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200592 <snapshots>
593 <enabled>false</enabled>
594 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200595 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200596 <name>jcenter</name>
597 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200598 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200599 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100600 <build>
601 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700602
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100603 <testResources>
604 <testResource>
605 <directory>src/test/resources</directory>
606 <excludes>
607 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100608 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100609 </excludes>
610 <filtering>true</filtering>
611 </testResource>
612 <testResource>
613 <directory>src/test/resources/https</directory>
614 <includes>
615 <include>**.jks</include>
616 </includes>
617 <filtering>false</filtering>
618 <targetPath>https</targetPath>
619 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200620 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100621 <directory>src/test/resources/example/sdc</directory>
622 <includes>
623 <include>**.csar</include>
624 </includes>
625 <filtering>false</filtering>
626 <targetPath>example/sdc</targetPath>
627 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100628 </testResources>
629 <resources>
630 <resource>
631 <directory>src/main/resources</directory>
632 <filtering>true</filtering>
633 </resource>
634 <resource>
635 <directory>src/main/docker</directory>
636 <includes>
637 <include>**/*</include>
638 </includes>
639 <filtering>true</filtering>
640 </resource>
641 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700642
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100643 <plugins>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200644 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
645 generate a list of .adoc files containing the APIs info in more structured
646 way -->
647 <plugin>
648 <groupId>io.github.swagger2markup</groupId>
649 <artifactId>swagger2markup-maven-plugin</artifactId>
650 <version>1.3.3</version>
651 <dependencies>
652 <dependency>
653 <groupId>io.github.swagger2markup</groupId>
654 <artifactId>swagger2markup-import-files-ext</artifactId>
655 <version>1.3.3</version>
656 </dependency>
657 <dependency>
658 <groupId>io.github.swagger2markup</groupId>
659 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
660 <version>1.3.3</version>
661 </dependency>
662 </dependencies>
663 <configuration>
664 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
665 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
666 <config>
667 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
668 </config>
669 </configuration>
670 <executions>
671 <execution>
672 <phase>post-integration-test</phase>
673 <goals>
674 <goal>convertSwagger2markup</goal>
675 </goals>
676 </execution>
677 </executions>
678 </plugin>
679
680 <!-- Run the generated asciidoc through Asciidoctor to generate other
681 documentation types, such as PDFs or HTML5 -->
682 <plugin>
683 <groupId>org.asciidoctor</groupId>
684 <artifactId>asciidoctor-maven-plugin</artifactId>
685 <version>1.5.6</version>
686 <dependencies>
687 <dependency>
688 <groupId>org.asciidoctor</groupId>
689 <artifactId>asciidoctorj-pdf</artifactId>
690 <version>1.5.0-alpha.10.1</version>
691 </dependency>
692 <dependency>
693 <groupId>org.jruby</groupId>
694 <artifactId>jruby-complete</artifactId>
695 <version>1.7.21</version>
696 </dependency>
697 </dependencies>
698 <configuration>
699 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
700 <sourceDocumentName>swagger.adoc</sourceDocumentName>
701 <attributes>
702 <doctype>book</doctype>
703 <toc>left</toc>
704 <toclevels>3</toclevels>
705 <numbered></numbered>
706 <hardbreaks></hardbreaks>
707 <sectlinks></sectlinks>
708 <sectanchors></sectanchors>
709 <generated>${project.build.directory}/asciidoc/generated</generated>
710 </attributes>
711 </configuration>
712
713 <executions>
714 <execution>
715 <id>output-html</id>
716 <phase>post-integration-test</phase>
717 <goals>
718 <goal>process-asciidoc</goal>
719 </goals>
720 <configuration>
721 <backend>html5</backend>
722 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
723 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
724 </configuration>
725 </execution>
726 <execution>
727 <id>output-pdf</id>
728 <phase>post-integration-test</phase>
729 <goals>
730 <goal>process-asciidoc</goal>
731 </goals>
732 <configuration>
733 <backend>pdf</backend>
734 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
735 </configuration>
736 </execution>
737 </executions>
738 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100739 <plugin>
740 <groupId>org.codehaus.groovy.maven</groupId>
741 <artifactId>gmaven-plugin</artifactId>
742 <version>1.0</version>
743 <executions>
744 <execution>
745 <phase>validate</phase>
746 <goals>
747 <goal>execute</goal>
748 </goals>
749 <configuration>
750 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
751 </configuration>
752 </execution>
753 </executions>
754 </plugin>
755 <plugin>
756 <groupId>org.apache.maven.plugins</groupId>
757 <artifactId>maven-jar-plugin</artifactId>
758 <version>3.0.2</version>
759 <executions>
760 <execution>
761 <id>jar-with-only-classes</id>
762 <phase>package</phase>
763 <goals>
764 <goal>jar</goal>
765 </goals>
766 <configuration>
767 <classifier>classes</classifier>
768 <includes>
769 <include>org/**</include>
770 </includes>
771 </configuration>
772 </execution>
773 </executions>
774 </plugin>
775 <plugin>
776 <groupId>org.codehaus.mojo</groupId>
777 <artifactId>build-helper-maven-plugin</artifactId>
778 <version>3.0.0</version>
779 <executions>
780 <execution>
781 <goals>
782 <goal>attach-artifact</goal>
783 </goals>
784 <phase>package</phase>
785 <configuration>
786 <artifacts>
787 <artifact>
788 <file>${project.build.directory}/clamp-classes.jar</file>
789 <type>jar</type>
790 <classifier>classes</classifier>
791 </artifact>
792 </artifacts>
793 </configuration>
794 </execution>
795 </executions>
796 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700797
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100798 <plugin>
799 <groupId>org.springframework.boot</groupId>
800 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200801 <!-- Temporary fix -->
802 <version>1.5.13.RELEASE</version>
803 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100804 <executions>
805 <execution>
806 <goals>
807 <goal>repackage</goal>
808 </goals>
809 <phase>package</phase>
810 </execution>
811 </executions>
812 </plugin>
813 <plugin>
814 <groupId>org.sonatype.plugins</groupId>
815 <artifactId>nexus-staging-maven-plugin</artifactId>
816 <version>1.6.7</version>
817 <extensions>true</extensions>
818 <configuration>
819 <nexusUrl>https://nexus.onap.org</nexusUrl>
820 <stagingProfileId>176c31dfe190a</stagingProfileId>
821 <serverId>ecomp-staging</serverId>
822 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
823 </configuration>
824 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200825
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100826 <plugin>
827 <groupId>org.apache.maven.plugins</groupId>
828 <artifactId>maven-surefire-plugin</artifactId>
829 <version>2.19.1</version>
830 <configuration>
831 <forkCount>1</forkCount>
832 <reuseForks>false</reuseForks>
833 </configuration>
834 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200835
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100836 <plugin>
837 <groupId>org.apache.maven.plugins</groupId>
838 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200839 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700840
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100841 <executions>
842 <execution>
843 <id>integration-tests</id>
844 <goals>
845 <goal>integration-test</goal>
846 <goal>verify</goal>
847 </goals>
848 <configuration>
849 <includes>
850 <include>**/*ItCase.java</include>
851 </includes>
852 <forkCount>1</forkCount>
853 <reuseForks>false</reuseForks>
854 </configuration>
855 </execution>
856 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200857
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100858 </plugin>
859 <plugin>
860 <groupId>io.fabric8</groupId>
861 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200862 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100863 <configuration>
864 <verbose>true</verbose>
865 <apiVersion>1.23</apiVersion>
866 <images>
867 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200868 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100869 <alias>mariadb</alias>
870 <run>
871 <env>
872 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
873 </env>
874 <hostname>mariadb</hostname>
875 <volumes>
876 <bind>
877 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
878 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
879 </bind>
880 </volumes>
881 <wait>
882 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100883 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100884 </wait>
885 <ports>
886 <port>${docker.mariadb.port.host}:3306</port>
887 </ports>
888 </run>
889 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100890 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200891 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100892 <alias>python</alias>
893 <run>
894 <hostname>python</hostname>
895 <volumes>
896 <bind>
897 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100898 <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 +0100899 </bind>
900 </volumes>
901 <wait>
902 <tcp>
903 <ports>
904 <port>8080</port>
905 </ports>
906 <mode>direct</mode>
907 </tcp>
908 <time>120000</time>
909 </wait>
910 <ports>
911 <port>${docker.http-cache.port.host}:8080</port>
912 </ports>
913 <workingDir>/usr/src/http-cache-app</workingDir>
914 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200915 <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 +0100916 </cmd>
917 </run>
918 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200919 <image>
920 <name>onap/clamp</name>
921 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200922 <run>
923 <skip>true</skip>
924 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200925 <build>
926 <cleanup>true</cleanup>
927 <tags>
928 <tag>latest</tag>
929 <tag>${project.docker.latesttagtimestamp.version}</tag>
930 <tag>${project.docker.latesttag.version}</tag>
931 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200932 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
933 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200934 <dockerFile>Dockerfile</dockerFile>
935 <assembly>
936 <descriptor>assembly/clamp-files.xml</descriptor>
937 <name>onap-clamp</name>
938 </assembly>
939 </build>
940 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100941 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100942 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200943
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100944 <executions>
945 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200946 <id>generate-images</id>
947 <phase>install</phase>
948 <goals>
949 <goal>build</goal>
950 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200951 </execution>
952 <execution>
953 <id>push-images</id>
954 <phase>deploy</phase>
955 <goals>
956 <goal>push</goal>
957 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200958 </execution>
959 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100960 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100961 <phase>pre-integration-test</phase>
962 <goals>
963 <goal>start</goal>
964 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100965 </execution>
966 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100967 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100968 <phase>post-integration-test</phase>
969 <goals>
970 <goal>stop</goal>
971 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100972 </execution>
973 </executions>
974 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -0700975
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100976 <plugin>
977 <groupId>org.jacoco</groupId>
978 <artifactId>jacoco-maven-plugin</artifactId>
979 <version>0.7.7.201606060606</version>
980 <configuration>
981 <dumpOnExit>true</dumpOnExit>
982 <includes>
983 <include>org.onap.clamp.*</include>
984 </includes>
985 </configuration>
986 <executions>
987 <execution>
988 <id>pre-unit-test</id>
989 <goals>
990 <goal>prepare-agent</goal>
991 </goals>
992 <configuration>
993 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
994 <!-- <append>true</append> -->
995 </configuration>
996 </execution>
997 <execution>
998 <id>pre-integration-test</id>
999 <phase>pre-integration-test</phase>
1000 <goals>
1001 <goal>prepare-agent</goal>
1002 </goals>
1003 <configuration>
1004 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1005 <!-- <append>true</append> -->
1006 </configuration>
1007 </execution>
1008 <execution>
1009 <goals>
1010 <goal>merge</goal>
1011 </goals>
1012 <phase>post-integration-test</phase>
1013 <configuration>
1014 <fileSets>
1015 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1016 <directory>${project.build.directory}/coverage-reports</directory>
1017 <includes>
1018 <include>*.exec</include>
1019 </includes>
1020 </fileSet>
1021 </fileSets>
1022 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1023 </configuration>
1024 </execution>
1025 </executions>
1026 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001027
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001028 <!-- This plugin will be useful when we will have multi-modules project -->
1029 <plugin>
1030 <groupId>org.codehaus.mojo</groupId>
1031 <artifactId>versions-maven-plugin</artifactId>
1032 <version>1.3.1</version>
1033 </plugin>
1034 </plugins>
1035 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001036</project>