blob: 0f1eab23d25af778348de5649a356894468e9477 [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>
sebdet6bcae192018-10-22 13:09:13 +020027 <version>3.0.1-SNAPSHOT</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010028 <name>clamp</name>
ChrisC5e9feb22017-06-21 02:38:57 -070029
sebdet6bcae192018-10-22 13:09:13 +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>
sebdet7fcbe522018-10-22 14:45:34 +020070 <springboot.version>2.0.6.RELEASE</springboot.version>
sebdet2f224052018-10-23 17:44:36 +020071
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>
77 <sonar.projectVersion>${project.version}</sonar.projectVersion>
sebdet2f224052018-10-23 17:44:36 +020078 <!-- Enable language to disable javascript analysis -->
79 <sonar.language>java</sonar.language>
80 <!-- Parameters for Javascript coverage
81 <sonar.sources>src/main,${project.build.directory}/clamp-ui/designer</sonar.sources>
82 <sonar.javascript.lcov.reportPaths>${project.build.directory}/clamp-ui/coverage/lcov.info</sonar.javascript.lcov.reportPaths>
83 -->
sebdete4422002018-10-16 17:47:54 +020084 <sonar.exclusions>src/main/resources/**,**/clamp-ui/designer/lib/*</sonar.exclusions>
ChrisC5e9feb22017-06-21 02:38:57 -070085
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010086 <docker.push.registry>localhost:5000</docker.push.registry>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020087 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020088 <docker.skip.build>true</docker.skip.build>
89 <docker.skip.push>true</docker.skip.push>
90 <docker.skip.tag>true</docker.skip.tag>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010091 <skip.staging.artifacts>false</skip.staging.artifacts>
Gary Wu3a0d0272018-08-24 15:18:20 -070092 <python.http.proxy.param/>
sebdetce46c2d2018-10-24 17:22:36 +020093 <tomcat.version>8.5.34</tomcat.version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +010094 </properties>
ChrisC5e9feb22017-06-21 02:38:57 -070095
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +020096 <profiles>
97 <profile>
98 <id>without-test</id>
99 <activation>
100 <property>
101 <name>maven.test.skip</name>
102 <value>true</value>
103 </property>
104 </activation>
105 <properties>
106 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200107 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200108 </properties>
109 </profile>
110 <profile>
111 <id>without-IT-only</id>
112 <activation>
113 <property>
114 <name>skipITs</name>
115 <value>true</value>
116 </property>
117 </activation>
118 <properties>
119 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200120 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200121 </properties>
122 </profile>
123 <profile>
124 <id>without-IT-only2</id>
125 <activation>
126 <property>
127 <name>skipTests</name>
128 <value>true</value>
129 </property>
130 </activation>
131 <properties>
132 <docker.skip.run>true</docker.skip.run>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200133 <docker.skip>true</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200134 </properties>
135 </profile>
136 <profile>
137 <id>docker</id>
138 <properties>
139 <skip.staging.artifacts>true</skip.staging.artifacts>
140 <docker.skip.build>false</docker.skip.build>
141 <docker.skip.tag>false</docker.skip.tag>
142 <docker.skip.push>false</docker.skip.push>
Determe, Sebastien (sd378r)7747b782018-07-05 16:10:52 +0200143 <docker.skip>false</docker.skip>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200144 </properties>
145 </profile>
146 </profiles>
147
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100148 <distributionManagement>
149 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200150 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100151 <name>Clamp Release Repository</name>
152 <url>https://nexus.onap.org/content/repositories/releases/</url>
153 </repository>
154 <snapshotRepository>
sebdet4d1e6b92018-10-23 16:54:02 +0200155 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100156 <name>Clamp Snapshot Repository</name>
157 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
158 </snapshotRepository>
159 <site>
sebdet4d1e6b92018-10-23 16:54:02 +0200160 <id>onap-site</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100161 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
162 </site>
163 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700164
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100165 <repositories>
166 <repository>
167 <id>central</id>
168 <name>Maven 2 repository 2</name>
169 <url>http://repo2.maven.org/maven2/</url>
170 </repository>
171 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200172 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100173 <name>ONAP Release Repository</name>
174 <url>https://nexus.onap.org/content/repositories/releases/</url>
175 </repository>
176 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200177 <id>onap-staging</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100178 <name>ONAP Staging Repository</name>
179 <url>https://nexus.onap.org/content/repositories/staging/</url>
180 </repository>
181 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200182 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100183 <name>ONAP Snapshot Repository</name>
184 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
185 <snapshots>
186 <enabled>true</enabled>
187 </snapshots>
188 <releases>
189 <enabled>false</enabled>
190 </releases>
191 </repository>
192 <repository>
193 <id>spring-repo</id>
194 <name>Spring repo</name>
195 <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
196 </repository>
197 <repository>
198 <id>repository.jboss.org-public</id>
199 <name>JBoss.org Maven repository</name>
200 <url>https://repository.jboss.org/nexus/content/groups/public</url>
201 </repository>
202 </repositories>
ChrisC5e9feb22017-06-21 02:38:57 -0700203
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100204 <dependencyManagement>
205 <dependencies>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100206 <!-- Spring Boot BOM -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100207 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-dependencies</artifactId>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100210 <version>${springboot.version}</version>
211 <type>pom</type>
212 <scope>import</scope>
213 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100214 <!-- Camel BOM -->
215 <dependency>
216 <groupId>org.apache.camel</groupId>
217 <artifactId>camel-spring-boot-dependencies</artifactId>
218 <version>${camel.version}</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100219 <type>pom</type>
220 <scope>import</scope>
221 </dependency>
222 </dependencies>
223 </dependencyManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700224
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100225 <dependencies>
226 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100227 <groupId>com.att.eelf</groupId>
228 <artifactId>eelf-core</artifactId>
229 <version>${eelf.core.version}</version>
230 </dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200231 <dependency>
Determe, Sebastien (sd378r)499e4e82018-08-09 17:14:09 +0200232 <groupId>org.codehaus.janino</groupId>
233 <artifactId>janino</artifactId>
234 <version>3.0.8</version>
235 </dependency>
236 <dependency>
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +0200237 <groupId>org.apache.tomcat.embed</groupId>
238 <artifactId>tomcat-embed-core</artifactId>
239 <version>${tomcat.version}</version>
240 </dependency>
241 <dependency>
242 <groupId>org.apache.tomcat.embed</groupId>
243 <artifactId>tomcat-embed-el</artifactId>
244 <version>${tomcat.version}</version>
245 </dependency>
246 <dependency>
247 <groupId>org.apache.tomcat.embed</groupId>
248 <artifactId>tomcat-embed-websocket</artifactId>
249 <version>${tomcat.version}</version>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.tomcat</groupId>
253 <artifactId>tomcat-annotations-api</artifactId>
254 <version>${tomcat.version}</version>
255 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100256 <!-- For CAMEL -->
257 <dependency>
258 <groupId>org.apache.camel</groupId>
259 <artifactId>camel-spring-boot-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>
263 <artifactId>camel-jaxb-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100264 </dependency>
265 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100266 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100267 <artifactId>camel-servlet-starter</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100268 </dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200269 <dependency>
xg353y054f1d12018-07-23 16:02:28 +0200270 <groupId>org.apache.camel</groupId>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200271 <artifactId>camel-jackson-starter</artifactId>
272 </dependency>
273 <dependency>
274 <groupId>org.apache.camel</groupId>
275 <artifactId>camel-swagger-java-starter</artifactId>
276 <exclusions>
277 <exclusion>
278 <groupId>javax.ws.rs</groupId>
279 <artifactId>jsr311-api</artifactId>
280 </exclusion>
Determe, Sebastien (sd378r)db25b622018-08-06 15:30:35 +0200281 <exclusion>
282 <groupId>org.slf4j</groupId>
283 <artifactId>slf4j-ext</artifactId>
284 </exclusion>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200285 </exclusions>
xg353y054f1d12018-07-23 16:02:28 +0200286 </dependency>
287 <dependency>
Determe, Sebastien (sd378r)f7855162018-04-27 14:02:39 +0200288 <groupId>javax.xml.bind</groupId>
289 <artifactId>jaxb-api</artifactId>
290 <version>2.3.0</version>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200291 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200292 <dependency>
293 <groupId>org.glassfish.jersey.core</groupId>
294 <artifactId>jersey-common</artifactId>
295 <version>2.27</version>
296 </dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100297 <!-- Spring famework -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100298 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100299 <groupId>org.springframework.boot</groupId>
300 <artifactId>spring-boot-starter-web</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100301 </dependency>
302 <dependency>
303 <groupId>org.springframework.boot</groupId>
304 <artifactId>spring-boot-starter-tomcat</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100305 </dependency>
306 <dependency>
Determe, Sebastien (sd378r)7e44fa72018-02-07 10:11:30 +0100307 <groupId>org.springframework</groupId>
308 <artifactId>spring-jdbc</artifactId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100309 </dependency>
310 <dependency>
311 <groupId>org.springframework.boot</groupId>
312 <artifactId>spring-boot-starter-security</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>
osgn422we69ed982018-10-30 17:04:03 +0100400 <version>1.3.1</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>
sebdet7fcbe522018-10-22 14:45:34 +0200450 <exclusion>
451 <groupId>commons-fileupload</groupId>
452 <artifactId>commons-fileupload</artifactId>
453 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100454 </exclusions>
455 </dependency>
456 <dependency>
457 <groupId>org.onap.policy.common</groupId>
458 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200459 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100460 <exclusions>
461 <exclusion>
462 <artifactId>log4j</artifactId>
463 <groupId>log4j</groupId>
464 </exclusion>
465 <exclusion>
466 <groupId>org.slf4j</groupId>
467 <artifactId>slf4j-log4j12</artifactId>
468 </exclusion>
469 <exclusion>
470 <artifactId>apache-log4j-extras</artifactId>
471 <groupId>log4j</groupId>
472 </exclusion>
473 </exclusions>
474 </dependency>
475 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200476 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100477 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200478 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100479 <exclusions>
480 <exclusion>
481 <artifactId>log4j</artifactId>
482 <groupId>log4j</groupId>
483 </exclusion>
484 <exclusion>
485 <groupId>org.slf4j</groupId>
486 <artifactId>slf4j-log4j12</artifactId>
487 </exclusion>
488 <exclusion>
489 <artifactId>apache-log4j-extras</artifactId>
490 <groupId>log4j</groupId>
491 </exclusion>
492 </exclusions>
493 </dependency>
494 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200495 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100496 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200497 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100498 <exclusions>
499 <exclusion>
500 <artifactId>log4j</artifactId>
501 <groupId>log4j</groupId>
502 </exclusion>
503 <exclusion>
504 <groupId>org.slf4j</groupId>
505 <artifactId>slf4j-log4j12</artifactId>
506 </exclusion>
507 <exclusion>
508 <artifactId>apache-log4j-extras</artifactId>
509 <groupId>log4j</groupId>
510 </exclusion>
511 </exclusions>
512 </dependency>
513 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200514 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100515 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200516 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100517 <exclusions>
518 <exclusion>
519 <artifactId>log4j</artifactId>
520 <groupId>log4j</groupId>
521 </exclusion>
522 <exclusion>
523 <groupId>org.slf4j</groupId>
524 <artifactId>slf4j-log4j12</artifactId>
525 </exclusion>
526 <exclusion>
527 <artifactId>apache-log4j-extras</artifactId>
528 <groupId>log4j</groupId>
529 </exclusion>
530 </exclusions>
531 </dependency>
532 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100533 <groupId>org.apache.commons</groupId>
534 <artifactId>commons-csv</artifactId>
535 <version>1.3</version>
536 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100537 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
538 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200539 <groupId>org.codehaus.plexus</groupId>
540 <artifactId>plexus-utils</artifactId>
541 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100542 </dependency>
543 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200544 <groupId>org.jboss.spec.javax.ws.rs</groupId>
545 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
546 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100547 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200548 <dependency>
549 <groupId>com.google.guava</groupId>
550 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200551 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100552 <!-- Remove the MYSQL connector and replace it by Mariadb -->
553 <dependency>
554 <groupId>org.mariadb.jdbc</groupId>
555 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100556 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100557 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100558 <!-- For SDC Controller -->
559 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200560 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100561 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200562 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100563 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100564 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200565 <groupId>org.onap.sdc.sdc-tosca</groupId>
566 <artifactId>sdc-tosca</artifactId>
osgn422w999cc722018-08-27 18:11:16 +0200567 <version>1.4.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100568 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200569 <!-- TESTING -->
570 <dependency>
571 <groupId>org.assertj</groupId>
572 <artifactId>assertj-core</artifactId>
573 <version>3.10.0</version>
574 <scope>test</scope>
575 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200576 <dependency>
577 <groupId>org.mockito</groupId>
578 <artifactId>mockito-core</artifactId>
579 <version>1.10.19</version>
580 <scope>test</scope>
581 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200582 </dependencies>
583 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200584 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200585 <id>central-for-plugins</id>
586 <name>Maven 2 repository 2</name>
587 <url>http://repo2.maven.org/maven2/</url>
588 </pluginRepository>
589 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200590 <snapshots>
591 <enabled>false</enabled>
592 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200593 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200594 <name>jcenter</name>
595 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200596 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200597 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100598 <build>
599 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700600
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100601 <testResources>
602 <testResource>
603 <directory>src/test/resources</directory>
604 <excludes>
605 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100606 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100607 </excludes>
608 <filtering>true</filtering>
609 </testResource>
610 <testResource>
611 <directory>src/test/resources/https</directory>
612 <includes>
613 <include>**.jks</include>
614 </includes>
615 <filtering>false</filtering>
616 <targetPath>https</targetPath>
617 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200618 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100619 <directory>src/test/resources/example/sdc</directory>
620 <includes>
621 <include>**.csar</include>
622 </includes>
623 <filtering>false</filtering>
624 <targetPath>example/sdc</targetPath>
625 </testResource>
sebdete4422002018-10-16 17:47:54 +0200626
627 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
628 <testResource>
629 <directory>src/test/javascript</directory>
630 <includes>
631 <include>**/**.json</include>
632 </includes>
633 <filtering>true</filtering>
634 <targetPath>${project.build.directory}/clamp-ui</targetPath>
635 </testResource>
636 <testResource>
637 <directory>src/main/resources/META-INF/resources/designer</directory>
638 <filtering>false</filtering>
639 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
640 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100641 </testResources>
642 <resources>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200643 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
644 Otherwise they will be broken and unreadable
645 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100646 <resource>
647 <directory>src/main/resources</directory>
648 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200649 <excludes>
650 <exclude>clds/aaf/**</exclude>
651 </excludes>
652 </resource>
653 <resource>
654 <directory>src/main/resources</directory>
655 <filtering>false</filtering>
656 <includes>
657 <include>clds/aaf/**</include>
658 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100659 </resource>
660 <resource>
661 <directory>src/main/docker</directory>
662 <includes>
663 <include>**/*</include>
664 </includes>
665 <filtering>true</filtering>
666 </resource>
667 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700668
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100669 <plugins>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200670 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
671 generate a list of .adoc files containing the APIs info in more structured
672 way -->
673 <plugin>
674 <groupId>io.github.swagger2markup</groupId>
675 <artifactId>swagger2markup-maven-plugin</artifactId>
676 <version>1.3.3</version>
677 <dependencies>
678 <dependency>
679 <groupId>io.github.swagger2markup</groupId>
680 <artifactId>swagger2markup-import-files-ext</artifactId>
681 <version>1.3.3</version>
682 </dependency>
683 <dependency>
684 <groupId>io.github.swagger2markup</groupId>
685 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
686 <version>1.3.3</version>
687 </dependency>
688 </dependencies>
689 <configuration>
690 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
691 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
692 <config>
693 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
694 </config>
695 </configuration>
696 <executions>
697 <execution>
698 <phase>post-integration-test</phase>
699 <goals>
700 <goal>convertSwagger2markup</goal>
701 </goals>
702 </execution>
703 </executions>
704 </plugin>
705
706 <!-- Run the generated asciidoc through Asciidoctor to generate other
707 documentation types, such as PDFs or HTML5 -->
708 <plugin>
709 <groupId>org.asciidoctor</groupId>
710 <artifactId>asciidoctor-maven-plugin</artifactId>
711 <version>1.5.6</version>
712 <dependencies>
713 <dependency>
714 <groupId>org.asciidoctor</groupId>
715 <artifactId>asciidoctorj-pdf</artifactId>
716 <version>1.5.0-alpha.10.1</version>
717 </dependency>
718 <dependency>
719 <groupId>org.jruby</groupId>
720 <artifactId>jruby-complete</artifactId>
721 <version>1.7.21</version>
722 </dependency>
723 </dependencies>
724 <configuration>
725 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
726 <sourceDocumentName>swagger.adoc</sourceDocumentName>
727 <attributes>
728 <doctype>book</doctype>
729 <toc>left</toc>
730 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700731 <numbered/>
732 <hardbreaks/>
733 <sectlinks/>
734 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200735 <generated>${project.build.directory}/asciidoc/generated</generated>
736 </attributes>
737 </configuration>
738
739 <executions>
740 <execution>
741 <id>output-html</id>
742 <phase>post-integration-test</phase>
743 <goals>
744 <goal>process-asciidoc</goal>
745 </goals>
746 <configuration>
747 <backend>html5</backend>
748 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
749 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
750 </configuration>
751 </execution>
752 <execution>
753 <id>output-pdf</id>
754 <phase>post-integration-test</phase>
755 <goals>
756 <goal>process-asciidoc</goal>
757 </goals>
758 <configuration>
759 <backend>pdf</backend>
760 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
761 </configuration>
762 </execution>
763 </executions>
764 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100765 <plugin>
766 <groupId>org.codehaus.groovy.maven</groupId>
767 <artifactId>gmaven-plugin</artifactId>
768 <version>1.0</version>
769 <executions>
770 <execution>
771 <phase>validate</phase>
772 <goals>
773 <goal>execute</goal>
774 </goals>
775 <configuration>
776 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
777 </configuration>
778 </execution>
779 </executions>
780 </plugin>
781 <plugin>
782 <groupId>org.apache.maven.plugins</groupId>
783 <artifactId>maven-jar-plugin</artifactId>
784 <version>3.0.2</version>
785 <executions>
786 <execution>
787 <id>jar-with-only-classes</id>
788 <phase>package</phase>
789 <goals>
790 <goal>jar</goal>
791 </goals>
792 <configuration>
793 <classifier>classes</classifier>
794 <includes>
795 <include>org/**</include>
796 </includes>
797 </configuration>
798 </execution>
799 </executions>
800 </plugin>
801 <plugin>
802 <groupId>org.codehaus.mojo</groupId>
803 <artifactId>build-helper-maven-plugin</artifactId>
804 <version>3.0.0</version>
805 <executions>
806 <execution>
807 <goals>
808 <goal>attach-artifact</goal>
809 </goals>
810 <phase>package</phase>
811 <configuration>
812 <artifacts>
813 <artifact>
814 <file>${project.build.directory}/clamp-classes.jar</file>
815 <type>jar</type>
816 <classifier>classes</classifier>
817 </artifact>
818 </artifacts>
819 </configuration>
820 </execution>
821 </executions>
822 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700823
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100824 <plugin>
825 <groupId>org.springframework.boot</groupId>
826 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200827 <!-- Temporary fix -->
828 <version>1.5.13.RELEASE</version>
829 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100830 <executions>
831 <execution>
832 <goals>
833 <goal>repackage</goal>
834 </goals>
835 <phase>package</phase>
836 </execution>
837 </executions>
838 </plugin>
839 <plugin>
840 <groupId>org.sonatype.plugins</groupId>
841 <artifactId>nexus-staging-maven-plugin</artifactId>
842 <version>1.6.7</version>
843 <extensions>true</extensions>
844 <configuration>
845 <nexusUrl>https://nexus.onap.org</nexusUrl>
846 <stagingProfileId>176c31dfe190a</stagingProfileId>
847 <serverId>ecomp-staging</serverId>
848 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
849 </configuration>
850 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200851
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100852 <plugin>
853 <groupId>org.apache.maven.plugins</groupId>
854 <artifactId>maven-surefire-plugin</artifactId>
855 <version>2.19.1</version>
856 <configuration>
857 <forkCount>1</forkCount>
858 <reuseForks>false</reuseForks>
859 </configuration>
860 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200861
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100862 <plugin>
863 <groupId>org.apache.maven.plugins</groupId>
864 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200865 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700866
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100867 <executions>
868 <execution>
869 <id>integration-tests</id>
870 <goals>
871 <goal>integration-test</goal>
872 <goal>verify</goal>
873 </goals>
874 <configuration>
875 <includes>
876 <include>**/*ItCase.java</include>
877 </includes>
878 <forkCount>1</forkCount>
879 <reuseForks>false</reuseForks>
880 </configuration>
881 </execution>
882 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200883
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100884 </plugin>
885 <plugin>
886 <groupId>io.fabric8</groupId>
887 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200888 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100889 <configuration>
890 <verbose>true</verbose>
891 <apiVersion>1.23</apiVersion>
892 <images>
893 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200894 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100895 <alias>mariadb</alias>
896 <run>
897 <env>
898 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
899 </env>
900 <hostname>mariadb</hostname>
901 <volumes>
902 <bind>
903 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
904 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
905 </bind>
906 </volumes>
907 <wait>
908 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100909 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100910 </wait>
911 <ports>
912 <port>${docker.mariadb.port.host}:3306</port>
913 </ports>
914 </run>
915 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100916 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200917 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100918 <alias>python</alias>
919 <run>
920 <hostname>python</hostname>
921 <volumes>
922 <bind>
923 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100924 <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 +0100925 </bind>
926 </volumes>
927 <wait>
928 <tcp>
929 <ports>
930 <port>8080</port>
931 </ports>
932 <mode>direct</mode>
933 </tcp>
934 <time>120000</time>
935 </wait>
936 <ports>
937 <port>${docker.http-cache.port.host}:8080</port>
938 </ports>
939 <workingDir>/usr/src/http-cache-app</workingDir>
940 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200941 <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 +0100942 </cmd>
943 </run>
944 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200945 <image>
946 <name>onap/clamp</name>
947 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200948 <run>
949 <skip>true</skip>
950 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200951 <build>
952 <cleanup>true</cleanup>
953 <tags>
954 <tag>latest</tag>
955 <tag>${project.docker.latesttagtimestamp.version}</tag>
956 <tag>${project.docker.latesttag.version}</tag>
957 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200958 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
959 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200960 <dockerFile>Dockerfile</dockerFile>
961 <assembly>
962 <descriptor>assembly/clamp-files.xml</descriptor>
963 <name>onap-clamp</name>
964 </assembly>
965 </build>
966 </image>
ac255096f162e2018-09-18 10:07:58 +0200967 <image>
968 <name>onap/clamp-dashboard-logstash</name>
969 <alias>onap-clamp-dashboard-logstash</alias>
970 <run>
971 <skip>true</skip>
972 </run>
973 <build>
974 <cleanup>true</cleanup>
975 <tags>
976 <tag>latest</tag>
977 <tag>${project.docker.latesttagtimestamp.version}</tag>
978 <tag>${project.docker.latesttag.version}</tag>
979 </tags>
ac2550a61b86e2018-10-10 13:54:08 +0200980 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +0200981 </build>
982 </image>
ac2550ead10512018-10-05 13:50:23 +0200983 <image>
984 <name>onap/clamp-dashboard-kibana</name>
985 <alias>onap-clamp-dashboard-kibana</alias>
986 <run>
987 <skip>true</skip>
988 </run>
989 <build>
990 <cleanup>true</cleanup>
991 <tags>
992 <tag>latest</tag>
993 <tag>${project.docker.latesttagtimestamp.version}</tag>
994 <tag>${project.docker.latesttag.version}</tag>
995 </tags>
996 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
997 </build>
998 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100999 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001000 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001001
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001002 <executions>
1003 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001004 <id>generate-images</id>
1005 <phase>install</phase>
1006 <goals>
1007 <goal>build</goal>
1008 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001009 </execution>
1010 <execution>
1011 <id>push-images</id>
1012 <phase>deploy</phase>
1013 <goals>
1014 <goal>push</goal>
1015 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001016 </execution>
1017 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001018 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001019 <phase>pre-integration-test</phase>
1020 <goals>
1021 <goal>start</goal>
1022 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001023 </execution>
1024 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001025 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001026 <phase>post-integration-test</phase>
1027 <goals>
1028 <goal>stop</goal>
1029 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001030 </execution>
1031 </executions>
1032 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001033
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001034 <plugin>
1035 <groupId>org.jacoco</groupId>
1036 <artifactId>jacoco-maven-plugin</artifactId>
1037 <version>0.7.7.201606060606</version>
1038 <configuration>
1039 <dumpOnExit>true</dumpOnExit>
1040 <includes>
1041 <include>org.onap.clamp.*</include>
1042 </includes>
1043 </configuration>
1044 <executions>
1045 <execution>
1046 <id>pre-unit-test</id>
1047 <goals>
1048 <goal>prepare-agent</goal>
1049 </goals>
1050 <configuration>
1051 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1052 <!-- <append>true</append> -->
1053 </configuration>
1054 </execution>
1055 <execution>
1056 <id>pre-integration-test</id>
1057 <phase>pre-integration-test</phase>
1058 <goals>
1059 <goal>prepare-agent</goal>
1060 </goals>
1061 <configuration>
1062 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1063 <!-- <append>true</append> -->
1064 </configuration>
1065 </execution>
1066 <execution>
1067 <goals>
1068 <goal>merge</goal>
1069 </goals>
1070 <phase>post-integration-test</phase>
1071 <configuration>
1072 <fileSets>
1073 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1074 <directory>${project.build.directory}/coverage-reports</directory>
1075 <includes>
1076 <include>*.exec</include>
1077 </includes>
1078 </fileSet>
1079 </fileSets>
1080 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1081 </configuration>
1082 </execution>
1083 </executions>
1084 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001085
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001086 <!-- This plugin will be useful when we will have multi-modules project -->
1087 <plugin>
1088 <groupId>org.codehaus.mojo</groupId>
1089 <artifactId>versions-maven-plugin</artifactId>
1090 <version>1.3.1</version>
1091 </plugin>
sebdete4422002018-10-16 17:47:54 +02001092
1093 <plugin>
1094 <groupId>com.github.eirslett</groupId>
1095 <artifactId>frontend-maven-plugin</artifactId>
1096 <version>1.6</version>
1097 <configuration>
1098 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1099 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1100 <skip>${maven.test.skip}</skip>
1101 </configuration>
1102
1103 <executions>
1104 <execution>
1105 <id>install_node_and_npm</id>
1106 <goals>
1107 <goal>install-node-and-npm</goal>
1108 </goals>
1109 <phase>test</phase>
1110 <configuration>
1111 <nodeVersion>v8.11.1</nodeVersion>
1112 <npmVersion>5.6.0</npmVersion>
1113 </configuration>
1114 </execution>
1115 <execution>
1116 <id>npm_install</id>
1117 <goals>
1118 <goal>npm</goal>
1119 </goals>
1120 <phase>test</phase>
1121 <configuration>
1122 <arguments>install</arguments>
1123 </configuration>
1124 </execution>
1125 <execution>
1126 <id>npm_test</id>
1127 <goals>
1128 <goal>npm</goal>
1129 </goals>
1130 <phase>test</phase>
1131 <configuration>
1132 <arguments>run-script test:coverage</arguments>
1133 </configuration>
1134 </execution>
1135
1136 </executions>
1137 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001138 </plugins>
1139 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001140</project>