blob: 520f7058e5c998b908a27644d9948a1879a2a653 [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>
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>
sebdet4d1e6b92018-10-23 16:54:02 +0200146 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100147 <name>Clamp Release Repository</name>
148 <url>https://nexus.onap.org/content/repositories/releases/</url>
149 </repository>
150 <snapshotRepository>
sebdet4d1e6b92018-10-23 16:54:02 +0200151 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100152 <name>Clamp Snapshot Repository</name>
153 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
154 </snapshotRepository>
155 <site>
sebdet4d1e6b92018-10-23 16:54:02 +0200156 <id>onap-site</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100157 <url>dav:https://nexus.onap.org/content/sites/site/org/onap/clamp/${project.version}</url>
158 </site>
159 </distributionManagement>
ChrisC5e9feb22017-06-21 02:38:57 -0700160
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100161 <repositories>
162 <repository>
163 <id>central</id>
164 <name>Maven 2 repository 2</name>
165 <url>http://repo2.maven.org/maven2/</url>
166 </repository>
167 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200168 <id>onap-releases</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100169 <name>ONAP Release Repository</name>
170 <url>https://nexus.onap.org/content/repositories/releases/</url>
171 </repository>
172 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200173 <id>onap-staging</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100174 <name>ONAP Staging Repository</name>
175 <url>https://nexus.onap.org/content/repositories/staging/</url>
176 </repository>
177 <repository>
sebdet4d1e6b92018-10-23 16:54:02 +0200178 <id>onap-snapshots</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100179 <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>
sebdet6bcae192018-10-22 13:09:13 +0200396 <version>1.3.0</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>
sebdet7fcbe522018-10-22 14:45:34 +0200446 <exclusion>
447 <groupId>commons-fileupload</groupId>
448 <artifactId>commons-fileupload</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>
sebdetd1ff5b92018-09-03 15:12:31 +0200455 <version>1.2.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>
sebdetd1ff5b92018-09-03 15:12:31 +0200472 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100473 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200474 <version>1.2.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>
sebdetd1ff5b92018-09-03 15:12:31 +0200491 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100492 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200493 <version>1.2.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>
sebdetd1ff5b92018-09-03 15:12:31 +0200510 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100511 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200512 <version>1.2.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>org.jboss.spec.javax.ws.rs</groupId>
541 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
542 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100543 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200544 <dependency>
545 <groupId>com.google.guava</groupId>
546 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200547 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100548 <!-- Remove the MYSQL connector and replace it by Mariadb -->
549 <dependency>
550 <groupId>org.mariadb.jdbc</groupId>
551 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100552 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100553 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100554 <!-- For SDC Controller -->
555 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200556 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100557 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200558 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100559 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100560 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200561 <groupId>org.onap.sdc.sdc-tosca</groupId>
562 <artifactId>sdc-tosca</artifactId>
osgn422w999cc722018-08-27 18:11:16 +0200563 <version>1.4.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100564 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200565 <!-- TESTING -->
566 <dependency>
567 <groupId>org.assertj</groupId>
568 <artifactId>assertj-core</artifactId>
569 <version>3.10.0</version>
570 <scope>test</scope>
571 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200572 <dependency>
573 <groupId>org.mockito</groupId>
574 <artifactId>mockito-core</artifactId>
575 <version>1.10.19</version>
576 <scope>test</scope>
577 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200578 </dependencies>
579 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200580 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200581 <id>central-for-plugins</id>
582 <name>Maven 2 repository 2</name>
583 <url>http://repo2.maven.org/maven2/</url>
584 </pluginRepository>
585 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200586 <snapshots>
587 <enabled>false</enabled>
588 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200589 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200590 <name>jcenter</name>
591 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200592 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200593 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100594 <build>
595 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700596
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100597 <testResources>
598 <testResource>
599 <directory>src/test/resources</directory>
600 <excludes>
601 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100602 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100603 </excludes>
604 <filtering>true</filtering>
605 </testResource>
606 <testResource>
607 <directory>src/test/resources/https</directory>
608 <includes>
609 <include>**.jks</include>
610 </includes>
611 <filtering>false</filtering>
612 <targetPath>https</targetPath>
613 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200614 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100615 <directory>src/test/resources/example/sdc</directory>
616 <includes>
617 <include>**.csar</include>
618 </includes>
619 <filtering>false</filtering>
620 <targetPath>example/sdc</targetPath>
621 </testResource>
sebdete4422002018-10-16 17:47:54 +0200622
623 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
624 <testResource>
625 <directory>src/test/javascript</directory>
626 <includes>
627 <include>**/**.json</include>
628 </includes>
629 <filtering>true</filtering>
630 <targetPath>${project.build.directory}/clamp-ui</targetPath>
631 </testResource>
632 <testResource>
633 <directory>src/main/resources/META-INF/resources/designer</directory>
634 <filtering>false</filtering>
635 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
636 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100637 </testResources>
638 <resources>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200639 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
640 Otherwise they will be broken and unreadable
641 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100642 <resource>
643 <directory>src/main/resources</directory>
644 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200645 <excludes>
646 <exclude>clds/aaf/**</exclude>
647 </excludes>
648 </resource>
649 <resource>
650 <directory>src/main/resources</directory>
651 <filtering>false</filtering>
652 <includes>
653 <include>clds/aaf/**</include>
654 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100655 </resource>
656 <resource>
657 <directory>src/main/docker</directory>
658 <includes>
659 <include>**/*</include>
660 </includes>
661 <filtering>true</filtering>
662 </resource>
663 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700664
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100665 <plugins>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200666 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
667 generate a list of .adoc files containing the APIs info in more structured
668 way -->
669 <plugin>
670 <groupId>io.github.swagger2markup</groupId>
671 <artifactId>swagger2markup-maven-plugin</artifactId>
672 <version>1.3.3</version>
673 <dependencies>
674 <dependency>
675 <groupId>io.github.swagger2markup</groupId>
676 <artifactId>swagger2markup-import-files-ext</artifactId>
677 <version>1.3.3</version>
678 </dependency>
679 <dependency>
680 <groupId>io.github.swagger2markup</groupId>
681 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
682 <version>1.3.3</version>
683 </dependency>
684 </dependencies>
685 <configuration>
686 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
687 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
688 <config>
689 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
690 </config>
691 </configuration>
692 <executions>
693 <execution>
694 <phase>post-integration-test</phase>
695 <goals>
696 <goal>convertSwagger2markup</goal>
697 </goals>
698 </execution>
699 </executions>
700 </plugin>
701
702 <!-- Run the generated asciidoc through Asciidoctor to generate other
703 documentation types, such as PDFs or HTML5 -->
704 <plugin>
705 <groupId>org.asciidoctor</groupId>
706 <artifactId>asciidoctor-maven-plugin</artifactId>
707 <version>1.5.6</version>
708 <dependencies>
709 <dependency>
710 <groupId>org.asciidoctor</groupId>
711 <artifactId>asciidoctorj-pdf</artifactId>
712 <version>1.5.0-alpha.10.1</version>
713 </dependency>
714 <dependency>
715 <groupId>org.jruby</groupId>
716 <artifactId>jruby-complete</artifactId>
717 <version>1.7.21</version>
718 </dependency>
719 </dependencies>
720 <configuration>
721 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
722 <sourceDocumentName>swagger.adoc</sourceDocumentName>
723 <attributes>
724 <doctype>book</doctype>
725 <toc>left</toc>
726 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700727 <numbered/>
728 <hardbreaks/>
729 <sectlinks/>
730 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200731 <generated>${project.build.directory}/asciidoc/generated</generated>
732 </attributes>
733 </configuration>
734
735 <executions>
736 <execution>
737 <id>output-html</id>
738 <phase>post-integration-test</phase>
739 <goals>
740 <goal>process-asciidoc</goal>
741 </goals>
742 <configuration>
743 <backend>html5</backend>
744 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
745 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
746 </configuration>
747 </execution>
748 <execution>
749 <id>output-pdf</id>
750 <phase>post-integration-test</phase>
751 <goals>
752 <goal>process-asciidoc</goal>
753 </goals>
754 <configuration>
755 <backend>pdf</backend>
756 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
757 </configuration>
758 </execution>
759 </executions>
760 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100761 <plugin>
762 <groupId>org.codehaus.groovy.maven</groupId>
763 <artifactId>gmaven-plugin</artifactId>
764 <version>1.0</version>
765 <executions>
766 <execution>
767 <phase>validate</phase>
768 <goals>
769 <goal>execute</goal>
770 </goals>
771 <configuration>
772 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
773 </configuration>
774 </execution>
775 </executions>
776 </plugin>
777 <plugin>
778 <groupId>org.apache.maven.plugins</groupId>
779 <artifactId>maven-jar-plugin</artifactId>
780 <version>3.0.2</version>
781 <executions>
782 <execution>
783 <id>jar-with-only-classes</id>
784 <phase>package</phase>
785 <goals>
786 <goal>jar</goal>
787 </goals>
788 <configuration>
789 <classifier>classes</classifier>
790 <includes>
791 <include>org/**</include>
792 </includes>
793 </configuration>
794 </execution>
795 </executions>
796 </plugin>
797 <plugin>
798 <groupId>org.codehaus.mojo</groupId>
799 <artifactId>build-helper-maven-plugin</artifactId>
800 <version>3.0.0</version>
801 <executions>
802 <execution>
803 <goals>
804 <goal>attach-artifact</goal>
805 </goals>
806 <phase>package</phase>
807 <configuration>
808 <artifacts>
809 <artifact>
810 <file>${project.build.directory}/clamp-classes.jar</file>
811 <type>jar</type>
812 <classifier>classes</classifier>
813 </artifact>
814 </artifacts>
815 </configuration>
816 </execution>
817 </executions>
818 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700819
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100820 <plugin>
821 <groupId>org.springframework.boot</groupId>
822 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200823 <!-- Temporary fix -->
824 <version>1.5.13.RELEASE</version>
825 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100826 <executions>
827 <execution>
828 <goals>
829 <goal>repackage</goal>
830 </goals>
831 <phase>package</phase>
832 </execution>
833 </executions>
834 </plugin>
835 <plugin>
836 <groupId>org.sonatype.plugins</groupId>
837 <artifactId>nexus-staging-maven-plugin</artifactId>
838 <version>1.6.7</version>
839 <extensions>true</extensions>
840 <configuration>
841 <nexusUrl>https://nexus.onap.org</nexusUrl>
842 <stagingProfileId>176c31dfe190a</stagingProfileId>
843 <serverId>ecomp-staging</serverId>
844 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
845 </configuration>
846 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200847
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100848 <plugin>
849 <groupId>org.apache.maven.plugins</groupId>
850 <artifactId>maven-surefire-plugin</artifactId>
851 <version>2.19.1</version>
852 <configuration>
853 <forkCount>1</forkCount>
854 <reuseForks>false</reuseForks>
855 </configuration>
856 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200857
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100858 <plugin>
859 <groupId>org.apache.maven.plugins</groupId>
860 <artifactId>maven-failsafe-plugin</artifactId>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200861 <version>2.17</version>
ChrisC5e9feb22017-06-21 02:38:57 -0700862
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100863 <executions>
864 <execution>
865 <id>integration-tests</id>
866 <goals>
867 <goal>integration-test</goal>
868 <goal>verify</goal>
869 </goals>
870 <configuration>
871 <includes>
872 <include>**/*ItCase.java</include>
873 </includes>
874 <forkCount>1</forkCount>
875 <reuseForks>false</reuseForks>
876 </configuration>
877 </execution>
878 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200879
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100880 </plugin>
881 <plugin>
882 <groupId>io.fabric8</groupId>
883 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200884 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100885 <configuration>
886 <verbose>true</verbose>
887 <apiVersion>1.23</apiVersion>
888 <images>
889 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200890 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100891 <alias>mariadb</alias>
892 <run>
893 <env>
894 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
895 </env>
896 <hostname>mariadb</hostname>
897 <volumes>
898 <bind>
899 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
900 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
901 </bind>
902 </volumes>
903 <wait>
904 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100905 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100906 </wait>
907 <ports>
908 <port>${docker.mariadb.port.host}:3306</port>
909 </ports>
910 </run>
911 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100912 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200913 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100914 <alias>python</alias>
915 <run>
916 <hostname>python</hostname>
917 <volumes>
918 <bind>
919 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100920 <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 +0100921 </bind>
922 </volumes>
923 <wait>
924 <tcp>
925 <ports>
926 <port>8080</port>
927 </ports>
928 <mode>direct</mode>
929 </tcp>
930 <time>120000</time>
931 </wait>
932 <ports>
933 <port>${docker.http-cache.port.host}:8080</port>
934 </ports>
935 <workingDir>/usr/src/http-cache-app</workingDir>
936 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200937 <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 +0100938 </cmd>
939 </run>
940 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200941 <image>
942 <name>onap/clamp</name>
943 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200944 <run>
945 <skip>true</skip>
946 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200947 <build>
948 <cleanup>true</cleanup>
949 <tags>
950 <tag>latest</tag>
951 <tag>${project.docker.latesttagtimestamp.version}</tag>
952 <tag>${project.docker.latesttag.version}</tag>
953 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200954 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
955 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200956 <dockerFile>Dockerfile</dockerFile>
957 <assembly>
958 <descriptor>assembly/clamp-files.xml</descriptor>
959 <name>onap-clamp</name>
960 </assembly>
961 </build>
962 </image>
ac255096f162e2018-09-18 10:07:58 +0200963 <image>
964 <name>onap/clamp-dashboard-logstash</name>
965 <alias>onap-clamp-dashboard-logstash</alias>
966 <run>
967 <skip>true</skip>
968 </run>
969 <build>
970 <cleanup>true</cleanup>
971 <tags>
972 <tag>latest</tag>
973 <tag>${project.docker.latesttagtimestamp.version}</tag>
974 <tag>${project.docker.latesttag.version}</tag>
975 </tags>
ac2550a61b86e2018-10-10 13:54:08 +0200976 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +0200977 </build>
978 </image>
ac2550ead10512018-10-05 13:50:23 +0200979 <image>
980 <name>onap/clamp-dashboard-kibana</name>
981 <alias>onap-clamp-dashboard-kibana</alias>
982 <run>
983 <skip>true</skip>
984 </run>
985 <build>
986 <cleanup>true</cleanup>
987 <tags>
988 <tag>latest</tag>
989 <tag>${project.docker.latesttagtimestamp.version}</tag>
990 <tag>${project.docker.latesttag.version}</tag>
991 </tags>
992 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
993 </build>
994 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100995 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100996 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200997
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100998 <executions>
999 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001000 <id>generate-images</id>
1001 <phase>install</phase>
1002 <goals>
1003 <goal>build</goal>
1004 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001005 </execution>
1006 <execution>
1007 <id>push-images</id>
1008 <phase>deploy</phase>
1009 <goals>
1010 <goal>push</goal>
1011 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001012 </execution>
1013 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001014 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001015 <phase>pre-integration-test</phase>
1016 <goals>
1017 <goal>start</goal>
1018 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001019 </execution>
1020 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001021 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001022 <phase>post-integration-test</phase>
1023 <goals>
1024 <goal>stop</goal>
1025 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001026 </execution>
1027 </executions>
1028 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001029
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001030 <plugin>
1031 <groupId>org.jacoco</groupId>
1032 <artifactId>jacoco-maven-plugin</artifactId>
1033 <version>0.7.7.201606060606</version>
1034 <configuration>
1035 <dumpOnExit>true</dumpOnExit>
1036 <includes>
1037 <include>org.onap.clamp.*</include>
1038 </includes>
1039 </configuration>
1040 <executions>
1041 <execution>
1042 <id>pre-unit-test</id>
1043 <goals>
1044 <goal>prepare-agent</goal>
1045 </goals>
1046 <configuration>
1047 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1048 <!-- <append>true</append> -->
1049 </configuration>
1050 </execution>
1051 <execution>
1052 <id>pre-integration-test</id>
1053 <phase>pre-integration-test</phase>
1054 <goals>
1055 <goal>prepare-agent</goal>
1056 </goals>
1057 <configuration>
1058 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1059 <!-- <append>true</append> -->
1060 </configuration>
1061 </execution>
1062 <execution>
1063 <goals>
1064 <goal>merge</goal>
1065 </goals>
1066 <phase>post-integration-test</phase>
1067 <configuration>
1068 <fileSets>
1069 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1070 <directory>${project.build.directory}/coverage-reports</directory>
1071 <includes>
1072 <include>*.exec</include>
1073 </includes>
1074 </fileSet>
1075 </fileSets>
1076 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1077 </configuration>
1078 </execution>
1079 </executions>
1080 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001081
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001082 <!-- This plugin will be useful when we will have multi-modules project -->
1083 <plugin>
1084 <groupId>org.codehaus.mojo</groupId>
1085 <artifactId>versions-maven-plugin</artifactId>
1086 <version>1.3.1</version>
1087 </plugin>
sebdete4422002018-10-16 17:47:54 +02001088
1089 <plugin>
1090 <groupId>com.github.eirslett</groupId>
1091 <artifactId>frontend-maven-plugin</artifactId>
1092 <version>1.6</version>
1093 <configuration>
1094 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1095 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1096 <skip>${maven.test.skip}</skip>
1097 </configuration>
1098
1099 <executions>
1100 <execution>
1101 <id>install_node_and_npm</id>
1102 <goals>
1103 <goal>install-node-and-npm</goal>
1104 </goals>
1105 <phase>test</phase>
1106 <configuration>
1107 <nodeVersion>v8.11.1</nodeVersion>
1108 <npmVersion>5.6.0</npmVersion>
1109 </configuration>
1110 </execution>
1111 <execution>
1112 <id>npm_install</id>
1113 <goals>
1114 <goal>npm</goal>
1115 </goals>
1116 <phase>test</phase>
1117 <configuration>
1118 <arguments>install</arguments>
1119 </configuration>
1120 </execution>
1121 <execution>
1122 <id>npm_test</id>
1123 <goals>
1124 <goal>npm</goal>
1125 </goals>
1126 <phase>test</phase>
1127 <configuration>
1128 <arguments>run-script test:coverage</arguments>
1129 </configuration>
1130 </execution>
1131
1132 </executions>
1133 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001134 </plugins>
1135 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001136</project>