blob: f95805f5333cf7f2385c237cb1a81104a6a28f09 [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>
sebdeteff88972018-11-01 16:28:00 +010027 <version>3.0.3-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>
sebdetac4958a2018-11-05 14:12:48 +0100454 <exclusion>
455 <groupId>com.att.research.xacml</groupId>
456 <artifactId>xacml</artifactId>
457 </exclusion>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100458 </exclusions>
459 </dependency>
460 <dependency>
461 <groupId>org.onap.policy.common</groupId>
462 <artifactId>ONAP-Logging</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200463 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100464 <exclusions>
465 <exclusion>
466 <artifactId>log4j</artifactId>
467 <groupId>log4j</groupId>
468 </exclusion>
469 <exclusion>
470 <groupId>org.slf4j</groupId>
471 <artifactId>slf4j-log4j12</artifactId>
472 </exclusion>
473 <exclusion>
474 <artifactId>apache-log4j-extras</artifactId>
475 <groupId>log4j</groupId>
476 </exclusion>
477 </exclusions>
478 </dependency>
479 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200480 <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100481 <artifactId>policy-yaml</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200482 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100483 <exclusions>
484 <exclusion>
485 <artifactId>log4j</artifactId>
486 <groupId>log4j</groupId>
487 </exclusion>
488 <exclusion>
489 <groupId>org.slf4j</groupId>
490 <artifactId>slf4j-log4j12</artifactId>
491 </exclusion>
492 <exclusion>
493 <artifactId>apache-log4j-extras</artifactId>
494 <groupId>log4j</groupId>
495 </exclusion>
496 </exclusions>
497 </dependency>
498 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200499 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100500 <artifactId>sdc</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200501 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100502 <exclusions>
503 <exclusion>
504 <artifactId>log4j</artifactId>
505 <groupId>log4j</groupId>
506 </exclusion>
507 <exclusion>
508 <groupId>org.slf4j</groupId>
509 <artifactId>slf4j-log4j12</artifactId>
510 </exclusion>
511 <exclusion>
512 <artifactId>apache-log4j-extras</artifactId>
513 <groupId>log4j</groupId>
514 </exclusion>
515 </exclusions>
516 </dependency>
517 <dependency>
sebdetd1ff5b92018-09-03 15:12:31 +0200518 <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100519 <artifactId>aai</artifactId>
sebdetd1ff5b92018-09-03 15:12:31 +0200520 <version>1.2.3</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100521 <exclusions>
522 <exclusion>
523 <artifactId>log4j</artifactId>
524 <groupId>log4j</groupId>
525 </exclusion>
526 <exclusion>
527 <groupId>org.slf4j</groupId>
528 <artifactId>slf4j-log4j12</artifactId>
529 </exclusion>
530 <exclusion>
531 <artifactId>apache-log4j-extras</artifactId>
532 <groupId>log4j</groupId>
533 </exclusion>
534 </exclusions>
535 </dependency>
536 <dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100537 <groupId>org.apache.commons</groupId>
538 <artifactId>commons-csv</artifactId>
539 <version>1.3</version>
540 </dependency>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100541 <!-- Other dependencies to fix nexus IQ reported vulnerabilities -->
542 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200543 <groupId>org.codehaus.plexus</groupId>
544 <artifactId>plexus-utils</artifactId>
545 <version>3.0.24</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100546 </dependency>
547 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200548 <groupId>org.jboss.spec.javax.ws.rs</groupId>
549 <artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
550 <version>1.0.1.Final</version>
Determe, Sebastien (sd378r)886191e2018-03-02 11:42:06 +0100551 </dependency>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200552 <dependency>
553 <groupId>com.google.guava</groupId>
554 <artifactId>guava</artifactId>
Determe, Sebastien (sd378r)3df350a2018-07-03 15:38:34 +0200555 </dependency>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100556 <!-- Remove the MYSQL connector and replace it by Mariadb -->
557 <dependency>
558 <groupId>org.mariadb.jdbc</groupId>
559 <artifactId>mariadb-java-client</artifactId>
Determe, Sebastien (sd378r)373a9272018-02-20 18:19:39 +0100560 <version>2.2.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100561 </dependency>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100562 <!-- For SDC Controller -->
563 <dependency>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200564 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100565 <artifactId>sdc-distribution-client</artifactId>
Determe, Sebastien (sd378r)dd2d7902018-04-06 11:48:07 +0200566 <version>1.3.0</version>
Determe, Sebastien (sd378r)465bfe22018-03-01 15:15:30 +0100567 </dependency>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100568 <dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200569 <groupId>org.onap.sdc.sdc-tosca</groupId>
570 <artifactId>sdc-tosca</artifactId>
osgn422w999cc722018-08-27 18:11:16 +0200571 <version>1.4.1</version>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100572 </dependency>
Gabriel2dc06bd2018-06-25 08:25:06 +0200573 <!-- TESTING -->
574 <dependency>
575 <groupId>org.assertj</groupId>
576 <artifactId>assertj-core</artifactId>
577 <version>3.10.0</version>
578 <scope>test</scope>
579 </dependency>
xg353y054f1d12018-07-23 16:02:28 +0200580 <dependency>
581 <groupId>org.mockito</groupId>
582 <artifactId>mockito-core</artifactId>
583 <version>1.10.19</version>
584 <scope>test</scope>
585 </dependency>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200586 </dependencies>
587 <pluginRepositories>
xg353y2aad6d62018-05-18 17:59:06 +0200588 <pluginRepository>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200589 <id>central-for-plugins</id>
590 <name>Maven 2 repository 2</name>
591 <url>http://repo2.maven.org/maven2/</url>
592 </pluginRepository>
593 <pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200594 <snapshots>
595 <enabled>false</enabled>
596 </snapshots>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200597 <id>jcenter-releases-for-plugins</id>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200598 <name>jcenter</name>
599 <url>http://jcenter.bintray.com</url>
xg353y2aad6d62018-05-18 17:59:06 +0200600 </pluginRepository>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200601 </pluginRepositories>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100602 <build>
603 <finalName>clamp</finalName>
ChrisC5e9feb22017-06-21 02:38:57 -0700604
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100605 <testResources>
606 <testResource>
607 <directory>src/test/resources</directory>
608 <excludes>
609 <exclude>**/*.jks</exclude>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100610 <exclude>**/*.csar</exclude>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100611 </excludes>
612 <filtering>true</filtering>
613 </testResource>
614 <testResource>
615 <directory>src/test/resources/https</directory>
616 <includes>
617 <include>**.jks</include>
618 </includes>
619 <filtering>false</filtering>
620 <targetPath>https</targetPath>
621 </testResource>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200622 <testResource>
Determe, Sebastien (sd378r)20296242018-03-12 19:37:34 +0100623 <directory>src/test/resources/example/sdc</directory>
624 <includes>
625 <include>**.csar</include>
626 </includes>
627 <filtering>false</filtering>
628 <targetPath>example/sdc</targetPath>
629 </testResource>
sebdete4422002018-10-16 17:47:54 +0200630
631 <!-- Copy the NPM package.json for CLAMP UI javascript testing framework -->
632 <testResource>
633 <directory>src/test/javascript</directory>
634 <includes>
635 <include>**/**.json</include>
636 </includes>
637 <filtering>true</filtering>
638 <targetPath>${project.build.directory}/clamp-ui</targetPath>
639 </testResource>
640 <testResource>
641 <directory>src/main/resources/META-INF/resources/designer</directory>
642 <filtering>false</filtering>
643 <targetPath>${project.build.directory}/clamp-ui/designer</targetPath>
644 </testResource>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100645 </testResources>
646 <resources>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200647 <!-- For AAF folder maven should not try to filter Keystores/Truststores ...
648 Otherwise they will be broken and unreadable
649 -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100650 <resource>
651 <directory>src/main/resources</directory>
652 <filtering>true</filtering>
Determe, Sebastien (sd378r)e1c2aab2018-08-17 17:41:15 +0200653 <excludes>
654 <exclude>clds/aaf/**</exclude>
655 </excludes>
656 </resource>
657 <resource>
658 <directory>src/main/resources</directory>
659 <filtering>false</filtering>
660 <includes>
661 <include>clds/aaf/**</include>
662 </includes>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100663 </resource>
664 <resource>
665 <directory>src/main/docker</directory>
666 <includes>
667 <include>**/*</include>
668 </includes>
669 <filtering>true</filtering>
670 </resource>
671 </resources>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700672
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100673 <plugins>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200674 <!-- Read the swagger.json file and the definition from SwaggerConfig.java;
675 generate a list of .adoc files containing the APIs info in more structured
676 way -->
677 <plugin>
678 <groupId>io.github.swagger2markup</groupId>
679 <artifactId>swagger2markup-maven-plugin</artifactId>
680 <version>1.3.3</version>
681 <dependencies>
682 <dependency>
683 <groupId>io.github.swagger2markup</groupId>
684 <artifactId>swagger2markup-import-files-ext</artifactId>
685 <version>1.3.3</version>
686 </dependency>
687 <dependency>
688 <groupId>io.github.swagger2markup</groupId>
689 <artifactId>swagger2markup-spring-restdocs-ext</artifactId>
690 <version>1.3.3</version>
691 </dependency>
692 </dependencies>
693 <configuration>
694 <swaggerInput>${project.basedir}/docs/swagger/swagger.json</swaggerInput>
695 <outputDir>${project.build.directory}/asciidoc/generated</outputDir>
696 <config>
697 <swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
698 </config>
699 </configuration>
700 <executions>
701 <execution>
702 <phase>post-integration-test</phase>
703 <goals>
704 <goal>convertSwagger2markup</goal>
705 </goals>
706 </execution>
707 </executions>
708 </plugin>
709
710 <!-- Run the generated asciidoc through Asciidoctor to generate other
711 documentation types, such as PDFs or HTML5 -->
712 <plugin>
713 <groupId>org.asciidoctor</groupId>
714 <artifactId>asciidoctor-maven-plugin</artifactId>
715 <version>1.5.6</version>
716 <dependencies>
717 <dependency>
718 <groupId>org.asciidoctor</groupId>
719 <artifactId>asciidoctorj-pdf</artifactId>
720 <version>1.5.0-alpha.10.1</version>
721 </dependency>
722 <dependency>
723 <groupId>org.jruby</groupId>
724 <artifactId>jruby-complete</artifactId>
725 <version>1.7.21</version>
726 </dependency>
727 </dependencies>
728 <configuration>
729 <sourceDirectory>${project.basedir}/src/main/resources/asciidoc</sourceDirectory>
730 <sourceDocumentName>swagger.adoc</sourceDocumentName>
731 <attributes>
732 <doctype>book</doctype>
733 <toc>left</toc>
734 <toclevels>3</toclevels>
Gary Wu3a0d0272018-08-24 15:18:20 -0700735 <numbered/>
736 <hardbreaks/>
737 <sectlinks/>
738 <sectanchors/>
Determe, Sebastien (sd378r)f7442472018-08-03 15:52:19 +0200739 <generated>${project.build.directory}/asciidoc/generated</generated>
740 </attributes>
741 </configuration>
742
743 <executions>
744 <execution>
745 <id>output-html</id>
746 <phase>post-integration-test</phase>
747 <goals>
748 <goal>process-asciidoc</goal>
749 </goals>
750 <configuration>
751 <backend>html5</backend>
752 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
753 <outputDirectory>${project.basedir}/src/main/resources/META-INF/resources/</outputDirectory>
754 </configuration>
755 </execution>
756 <execution>
757 <id>output-pdf</id>
758 <phase>post-integration-test</phase>
759 <goals>
760 <goal>process-asciidoc</goal>
761 </goals>
762 <configuration>
763 <backend>pdf</backend>
764 <outputDirectory>${project.basedir}/docs/swagger</outputDirectory>
765 </configuration>
766 </execution>
767 </executions>
768 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100769 <plugin>
770 <groupId>org.codehaus.groovy.maven</groupId>
771 <artifactId>gmaven-plugin</artifactId>
772 <version>1.0</version>
773 <executions>
774 <execution>
775 <phase>validate</phase>
776 <goals>
777 <goal>execute</goal>
778 </goals>
779 <configuration>
780 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
781 </configuration>
782 </execution>
783 </executions>
784 </plugin>
785 <plugin>
786 <groupId>org.apache.maven.plugins</groupId>
787 <artifactId>maven-jar-plugin</artifactId>
788 <version>3.0.2</version>
789 <executions>
790 <execution>
791 <id>jar-with-only-classes</id>
792 <phase>package</phase>
793 <goals>
794 <goal>jar</goal>
795 </goals>
796 <configuration>
797 <classifier>classes</classifier>
798 <includes>
799 <include>org/**</include>
800 </includes>
801 </configuration>
802 </execution>
803 </executions>
804 </plugin>
805 <plugin>
806 <groupId>org.codehaus.mojo</groupId>
807 <artifactId>build-helper-maven-plugin</artifactId>
808 <version>3.0.0</version>
809 <executions>
810 <execution>
811 <goals>
812 <goal>attach-artifact</goal>
813 </goals>
814 <phase>package</phase>
815 <configuration>
816 <artifacts>
817 <artifact>
818 <file>${project.build.directory}/clamp-classes.jar</file>
819 <type>jar</type>
820 <classifier>classes</classifier>
821 </artifact>
822 </artifacts>
823 </configuration>
824 </execution>
825 </executions>
826 </plugin>
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -0700827
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100828 <plugin>
829 <groupId>org.springframework.boot</groupId>
830 <artifactId>spring-boot-maven-plugin</artifactId>
Determe, Sebastien (sd378r)bb302a12018-07-02 15:38:28 +0200831 <!-- Temporary fix -->
832 <version>1.5.13.RELEASE</version>
833 <!-- <version>${springboot.version}</version> -->
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100834 <executions>
835 <execution>
836 <goals>
837 <goal>repackage</goal>
838 </goals>
839 <phase>package</phase>
840 </execution>
841 </executions>
842 </plugin>
843 <plugin>
844 <groupId>org.sonatype.plugins</groupId>
845 <artifactId>nexus-staging-maven-plugin</artifactId>
846 <version>1.6.7</version>
847 <extensions>true</extensions>
848 <configuration>
849 <nexusUrl>https://nexus.onap.org</nexusUrl>
850 <stagingProfileId>176c31dfe190a</stagingProfileId>
851 <serverId>ecomp-staging</serverId>
852 <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
853 </configuration>
854 </plugin>
Determe, Sebastien (sd378r)26400da2018-05-24 16:57:30 +0200855
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100856 <plugin>
857 <groupId>org.apache.maven.plugins</groupId>
858 <artifactId>maven-surefire-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100859 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100860 <configuration>
sebdet25793862018-11-08 17:11:10 +0100861 <forkCount>0</forkCount>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100862 <reuseForks>false</reuseForks>
863 </configuration>
864 </plugin>
Determe, Sebastien (sd378r)c06db6e2017-09-22 16:52:51 +0200865
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100866 <plugin>
867 <groupId>org.apache.maven.plugins</groupId>
868 <artifactId>maven-failsafe-plugin</artifactId>
sebdet25793862018-11-08 17:11:10 +0100869 <version>2.22.1</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100870 <executions>
871 <execution>
872 <id>integration-tests</id>
873 <goals>
874 <goal>integration-test</goal>
875 <goal>verify</goal>
876 </goals>
877 <configuration>
sebdet25793862018-11-08 17:11:10 +0100878 <additionalClasspathElements>
879 <additionalClasspathElement>${project.build.directory}/classes</additionalClasspathElement>
880 </additionalClasspathElements>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100881 <includes>
882 <include>**/*ItCase.java</include>
883 </includes>
sebdet25793862018-11-08 17:11:10 +0100884 <forkCount>0</forkCount>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100885 <reuseForks>false</reuseForks>
886 </configuration>
887 </execution>
888 </executions>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200889
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100890 </plugin>
891 <plugin>
892 <groupId>io.fabric8</groupId>
893 <artifactId>docker-maven-plugin</artifactId>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200894 <version>0.26.0</version>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100895 <configuration>
896 <verbose>true</verbose>
897 <apiVersion>1.23</apiVersion>
898 <images>
899 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200900 <name>library/mariadb:10.1.11</name>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100901 <alias>mariadb</alias>
902 <run>
903 <env>
904 <MYSQL_ROOT_PASSWORD>strong_pitchou</MYSQL_ROOT_PASSWORD>
905 </env>
906 <hostname>mariadb</hostname>
907 <volumes>
908 <bind>
909 <volume>${project.basedir}/extra/sql/:/docker-entrypoint-initdb.d</volume>
910 <volume>${project.basedir}/extra/docker/mariadb/conf1:/etc/mysql/conf.d</volume>
911 </bind>
912 </volumes>
913 <wait>
914 <log>socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution</log>
Determe, Sebastien (sd378r)b588fbc2018-02-13 17:25:12 +0100915 <time>600000</time>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +0100916 </wait>
917 <ports>
918 <port>${docker.mariadb.port.host}:3306</port>
919 </ports>
920 </run>
921 </image>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100922 <image>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200923 <name>library/python:2-slim</name>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +0100924 <alias>python</alias>
925 <run>
926 <hostname>python</hostname>
927 <volumes>
928 <bind>
929 <volume>${project.basedir}/src/test/resources/http-cache/:/usr/src/http-cache-app</volume>
ehautot153c8292018-03-15 17:49:50 +0100930 <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 +0100931 </bind>
932 </volumes>
933 <wait>
934 <tcp>
935 <ports>
936 <port>8080</port>
937 </ports>
938 <mode>direct</mode>
939 </tcp>
940 <time>120000</time>
941 </wait>
942 <ports>
943 <port>${docker.http-cache.port.host}:8080</port>
944 </ports>
945 <workingDir>/usr/src/http-cache-app</workingDir>
946 <cmd>
Determe, Sebastien (sd378r)885d7c12018-04-09 17:56:53 +0200947 <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 +0100948 </cmd>
949 </run>
950 </image>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200951 <image>
952 <name>onap/clamp</name>
953 <alias>onap-clamp</alias>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +0200954 <run>
955 <skip>true</skip>
956 </run>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200957 <build>
958 <cleanup>true</cleanup>
959 <tags>
960 <tag>latest</tag>
961 <tag>${project.docker.latesttagtimestamp.version}</tag>
962 <tag>${project.docker.latesttag.version}</tag>
963 </tags>
Determe, Sebastien (sd378r)d3428d82018-06-26 15:05:55 +0200964 <!-- A relative path is looked up in ${project.basedir}/src/main/docker
965 by default -->
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +0200966 <dockerFile>Dockerfile</dockerFile>
967 <assembly>
968 <descriptor>assembly/clamp-files.xml</descriptor>
969 <name>onap-clamp</name>
970 </assembly>
971 </build>
972 </image>
ac255096f162e2018-09-18 10:07:58 +0200973 <image>
974 <name>onap/clamp-dashboard-logstash</name>
975 <alias>onap-clamp-dashboard-logstash</alias>
976 <run>
977 <skip>true</skip>
978 </run>
979 <build>
980 <cleanup>true</cleanup>
981 <tags>
982 <tag>latest</tag>
983 <tag>${project.docker.latesttagtimestamp.version}</tag>
984 <tag>${project.docker.latesttag.version}</tag>
985 </tags>
ac2550a61b86e2018-10-10 13:54:08 +0200986 <dockerFile>logstash/Dockerfile.logstash</dockerFile>
ac255096f162e2018-09-18 10:07:58 +0200987 </build>
988 </image>
ac2550ead10512018-10-05 13:50:23 +0200989 <image>
990 <name>onap/clamp-dashboard-kibana</name>
991 <alias>onap-clamp-dashboard-kibana</alias>
992 <run>
993 <skip>true</skip>
994 </run>
995 <build>
996 <cleanup>true</cleanup>
997 <tags>
998 <tag>latest</tag>
999 <tag>${project.docker.latesttagtimestamp.version}</tag>
1000 <tag>${project.docker.latesttag.version}</tag>
1001 </tags>
1002 <dockerFile>kibana/Dockerfile.kibana</dockerFile>
1003 </build>
1004 </image>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001005 </images>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001006 </configuration>
Determe, Sebastien (sd378r)8607a452018-07-04 11:03:16 +02001007
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001008 <executions>
1009 <execution>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001010 <id>generate-images</id>
1011 <phase>install</phase>
1012 <goals>
1013 <goal>build</goal>
1014 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001015 </execution>
1016 <execution>
1017 <id>push-images</id>
1018 <phase>deploy</phase>
1019 <goals>
1020 <goal>push</goal>
1021 </goals>
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +02001022 </execution>
1023 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001024 <id>docker-start-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001025 <phase>pre-integration-test</phase>
1026 <goals>
1027 <goal>start</goal>
1028 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001029 </execution>
1030 <execution>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001031 <id>docker-stop-for-it</id>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001032 <phase>post-integration-test</phase>
1033 <goals>
1034 <goal>stop</goal>
1035 </goals>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001036 </execution>
1037 </executions>
1038 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001039
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001040 <plugin>
1041 <groupId>org.jacoco</groupId>
1042 <artifactId>jacoco-maven-plugin</artifactId>
1043 <version>0.7.7.201606060606</version>
1044 <configuration>
1045 <dumpOnExit>true</dumpOnExit>
1046 <includes>
1047 <include>org.onap.clamp.*</include>
1048 </includes>
1049 </configuration>
1050 <executions>
1051 <execution>
1052 <id>pre-unit-test</id>
1053 <goals>
1054 <goal>prepare-agent</goal>
1055 </goals>
1056 <configuration>
1057 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
1058 <!-- <append>true</append> -->
1059 </configuration>
1060 </execution>
1061 <execution>
1062 <id>pre-integration-test</id>
1063 <phase>pre-integration-test</phase>
1064 <goals>
1065 <goal>prepare-agent</goal>
1066 </goals>
1067 <configuration>
1068 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
1069 <!-- <append>true</append> -->
1070 </configuration>
1071 </execution>
1072 <execution>
1073 <goals>
1074 <goal>merge</goal>
1075 </goals>
1076 <phase>post-integration-test</phase>
1077 <configuration>
1078 <fileSets>
1079 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
1080 <directory>${project.build.directory}/coverage-reports</directory>
1081 <includes>
1082 <include>*.exec</include>
1083 </includes>
1084 </fileSet>
1085 </fileSets>
1086 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
1087 </configuration>
1088 </execution>
1089 </executions>
1090 </plugin>
ChrisC5e9feb22017-06-21 02:38:57 -07001091
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001092 <!-- This plugin will be useful when we will have multi-modules project -->
1093 <plugin>
1094 <groupId>org.codehaus.mojo</groupId>
1095 <artifactId>versions-maven-plugin</artifactId>
1096 <version>1.3.1</version>
1097 </plugin>
sebdete4422002018-10-16 17:47:54 +02001098
1099 <plugin>
1100 <groupId>com.github.eirslett</groupId>
1101 <artifactId>frontend-maven-plugin</artifactId>
1102 <version>1.6</version>
1103 <configuration>
1104 <installDirectory>${project.build.directory}/clamp-ui</installDirectory>
1105 <workingDirectory>${project.build.directory}/clamp-ui</workingDirectory>
1106 <skip>${maven.test.skip}</skip>
1107 </configuration>
1108
1109 <executions>
1110 <execution>
1111 <id>install_node_and_npm</id>
1112 <goals>
1113 <goal>install-node-and-npm</goal>
1114 </goals>
1115 <phase>test</phase>
1116 <configuration>
1117 <nodeVersion>v8.11.1</nodeVersion>
1118 <npmVersion>5.6.0</npmVersion>
1119 </configuration>
1120 </execution>
1121 <execution>
1122 <id>npm_install</id>
1123 <goals>
1124 <goal>npm</goal>
1125 </goals>
1126 <phase>test</phase>
1127 <configuration>
1128 <arguments>install</arguments>
1129 </configuration>
1130 </execution>
1131 <execution>
1132 <id>npm_test</id>
1133 <goals>
1134 <goal>npm</goal>
1135 </goals>
1136 <phase>test</phase>
1137 <configuration>
1138 <arguments>run-script test:coverage</arguments>
1139 </configuration>
1140 </execution>
1141
1142 </executions>
1143 </plugin>
Determe, Sebastien (sd378r)b4f7cb62017-11-16 13:27:22 +01001144 </plugins>
1145 </build>
ChrisC5e9feb22017-06-21 02:38:57 -07001146</project>