1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ============LICENSE_START=======================================================
3 org.onap.optf.cmso ================================================================================
4 Copyright © 2019 AT&T Intellectual Property. All rights reserved. ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 use this file except in compliance with the License. You may obtain a copy
7 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License. ============LICENSE_END========================================================= -->
14 <project xmlns="http://maven.apache.org/POM/4.0.0"
15 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17 <modelVersion>4.0.0</modelVersion>
20 <groupId>org.onap.optf.cmso</groupId>
21 <artifactId>cmso</artifactId>
22 <version>1.0.1-SNAPSHOT</version>
25 <groupId>org.onap.optf.cmso.topology</groupId>
26 <artifactId>cmso-topology</artifactId>
28 <packaging>jar</packaging>
30 <name>cmso-topology</name>
33 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
35 <cmso.project.version>${project.version}</cmso.project.version>
36 <cmso.build.timestamp>${maven.build.timestamp}</cmso.build.timestamp>
38 <service.name>cmso</service.name>
39 <release-tag>Casablanca</release-tag>
40 <name.space>org.onap.optf.cmso</name.space>
41 <serviceArtifactName>cmso</serviceArtifactName>
43 <java.version>1.8</java.version>
44 <eelf.version>1.0.0</eelf.version>
45 <pact.version>3.3.9</pact.version>
46 <spring.version>5.0.10.RELEASE</spring.version>
47 <spring.boot.version>2.1.3.RELEASE</spring.boot.version>
48 <swagger.core.version>2.0.0</swagger.core.version>
50 <maven.compiler.target>1.8</maven.compiler.target>
51 <maven.compiler.source>1.8</maven.compiler.source>
52 <build.number>${maven.build.timestamp}</build.number>
53 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
55 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
56 <mariadb.version>2.2.1</mariadb.version>
57 <swagger.directory>${basedir}/src/main/resources/META-INF/resources/swagger/</swagger.directory>
58 <aaf.version>2.1.4</aaf.version>
61 <ilib.version>2.0.7</ilib.version>
62 <sonar.language>java</sonar.language>
63 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
64 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
65 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
66 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
67 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
68 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
69 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
70 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
72 <docker.push.registry>localhost:5000</docker.push.registry>
73 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
74 <docker.skip.build>false</docker.skip.build>
75 <docker.skip.push>false</docker.skip.push>
76 <docker.skip.tag>false</docker.skip.tag>
77 <skip.staging.artifacts>false</skip.staging.artifacts>
81 <dependencyManagement>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-dependencies</artifactId>
87 <version>${spring.boot.version}</version>
92 </dependencyManagement>
96 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-starter-actuator</artifactId>
100 <groupId>org.springframework.boot</groupId>
101 <artifactId>spring-boot-starter-jersey</artifactId>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-web</artifactId>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-security</artifactId>
111 <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-loader-tools</artifactId>
114 <groupId>org.springframework.boot</groupId>
115 <artifactId>spring-boot-starter-data-jpa</artifactId>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-tomcat</artifactId>
121 <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-configuration-processor</artifactId>
126 <optional>true</optional>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-test</artifactId>
134 <groupId>org.mockito</groupId>
135 <artifactId>mockito-core</artifactId>
140 <groupId>org.apache.httpcomponents</groupId>
141 <artifactId>httpclient</artifactId>
144 <groupId>org.springframework</groupId>
145 <artifactId>spring-test</artifactId>
149 <groupId>org.springframework</groupId>
150 <artifactId>spring-beans</artifactId>
153 <groupId>org.springframework</groupId>
154 <artifactId>spring-beans</artifactId>
157 <groupId>org.springframework</groupId>
158 <artifactId>spring-context</artifactId>
161 <groupId>org.springframework</groupId>
162 <artifactId>spring-core</artifactId>
165 <groupId>org.springframework</groupId>
166 <artifactId>spring-expression</artifactId>
169 <groupId>org.springframework</groupId>
170 <artifactId>spring-web</artifactId>
173 <groupId>org.springframework</groupId>
174 <artifactId>spring-tx</artifactId>
177 <groupId>org.springframework</groupId>
178 <artifactId>spring-context-support</artifactId>
181 <groupId>com.att.eelf</groupId>
182 <artifactId>eelf-core</artifactId>
183 <version>${eelf.version}</version>
186 <groupId>org.mockito</groupId>
187 <artifactId>mockito-core</artifactId>
190 <groupId>org.powermock</groupId>
191 <artifactId>powermock-module</artifactId>
194 <groupId>org.powermock</groupId>
195 <artifactId>powermock-api-mockito</artifactId>
198 <groupId>org.powermock</groupId>
199 <artifactId>powermock-module-junit4</artifactId>
204 <!-- <dependency> <groupId>org.onap.aaf.authz</groupId> <artifactId>aaf-cadi-aaf</artifactId>
205 <version>2.1.1</version> </dependency> -->
207 <groupId>javax.ws.rs</groupId>
208 <artifactId>javax.ws.rs-api</artifactId>
209 <version>2.1</version>
212 <!--Swagger Dependencies -->
214 <groupId>io.swagger.core.v3</groupId>
215 <artifactId>swagger-jaxrs2</artifactId>
216 <version>${swagger.core.version}</version>
219 <groupId>io.swagger.core.v3</groupId>
220 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
221 <version>${swagger.core.version}</version>
225 <groupId>io.swagger</groupId>
226 <artifactId>swagger-jersey2-jaxrs</artifactId>
227 <version>1.5.0</version>
233 <groupId>org.mariadb.jdbc</groupId>
234 <artifactId>mariadb-java-client</artifactId>
238 <groupId>joda-time</groupId>
239 <artifactId>joda-time</artifactId>
242 <groupId>org.apache.commons</groupId>
243 <artifactId>commons-text</artifactId>
244 <version>1.6</version>
246 <!-- Testing Dependencies -->
247 <!-- <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-api-mockito2</artifactId>
248 <version>1.7.4</version> <scope>test</scope> </dependency> -->
250 <groupId>org.mockito</groupId>
251 <artifactId>mockito-all</artifactId>
252 <version>1.9.5</version>
256 <groupId>org.jacoco</groupId>
257 <artifactId>jacoco-maven-plugin</artifactId>
258 <version>0.8.1</version>
262 <groupId>org.onap.aaf.authz</groupId>
263 <artifactId>aaf-cadi-aaf</artifactId>
264 <version>${aaf.version}</version>
269 <finalName>cmso-topology</finalName>
272 <groupId>au.com.dius</groupId>
273 <artifactId>pact-jvm-provider-maven_2.11</artifactId>
274 <version>${pact.version}</version>
276 <!--pactBrokerUrl,user name,password and project version required only
278 <pactBrokerUrl>${BROKER_URL}</pactBrokerUrl>
279 <pactBrokerUsername>pactadmin</pactBrokerUsername>
280 <pactBrokerPassword>pactadmin</pactBrokerPassword>
281 <projectVersion>1.0.0</projectVersion>
282 <!-- service provider required only for producer -->
286 <protocol>http</protocol>
287 <host>${APP_URL}</host>
288 <port>${APP_PORT}</port>
291 <url>${BROKER_URL}</url>
293 <username>pactadmin</username>
294 <password>pactadmin</password>
302 <artifactId>maven-dependency-plugin</artifactId>
305 <groupId>com.github.kongchen</groupId>
306 <artifactId>swagger-maven-plugin</artifactId>
307 <version>3.1.5</version>
312 <location>org.onap.optf.cmso.topology.service.rs</location>
314 <basePath>/topology</basePath>
316 <title>${project.artifactId}</title>
317 <version>${project.version}</version>
319 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
325 <phase>compile</phase>
327 <goal>generate</goal>
333 <groupId>org.codehaus.groovy.maven</groupId>
334 <artifactId>gmaven-plugin</artifactId>
335 <version>1.0</version>
338 <phase>validate</phase>
343 <source>${project.basedir}/src/main/script/TagVersion.groovy</source>
349 <artifactId>exec-maven-plugin</artifactId>
350 <groupId>org.codehaus.mojo</groupId>
353 <groupId>org.springframework.boot</groupId>
354 <artifactId>spring-boot-maven-plugin</artifactId>
355 <version>${spring.boot.version}</version>
359 <goal>repackage</goal>
365 <groupId>io.fabric8</groupId>
366 <artifactId>docker-maven-plugin</artifactId>
367 <version>0.26.0</version>
369 <verbose>true</verbose>
370 <apiVersion>1.23</apiVersion>
373 <name>onap/optf-cmso-topology</name>
374 <alias>onap-optf-cmso-topology</alias>
376 <cleanup>true</cleanup>
379 <tag>${project.docker.latesttagtimestamp.version}</tag>
380 <tag>${project.docker.latesttag.version}</tag>
382 <dockerFile>${project.basedir}/src/main/docker/Dockerfile</dockerFile>
384 <descriptor>${project.basedir}/src/main/docker/assembly/cmso-files.xml</descriptor>
385 <name>onap-cmso-topology</name>
393 <id>generate-images</id>
394 <phase>install</phase>
401 <phase>deploy</phase>
407 <image>onap/optf-cmso-topology:%l</image>
413 <!-- mention the logback.xml location through system property or environment
414 variable to edit logback.xml at run time -->
417 <directory>src/main/resources</directory>
418 <filtering>true</filtering>
420 <include>**/*</include>
424 <directory>etc/config</directory>
425 <filtering>true</filtering>
427 <include>**/*</include>
431 <directory>${basedir}/truststore</directory>
432 <targetPath>${basedir}/target/truststore</targetPath>
433 <filtering>true</filtering>
435 <include>**/*</include>
439 <directory>${basedir}/bin</directory>
440 <targetPath>${basedir}/target/bin</targetPath>
441 <filtering>true</filtering>
443 <include>**/*</include>
447 <directory>${basedir}/data</directory>
448 <targetPath>${basedir}/target/data</targetPath>
449 <filtering>true</filtering>
451 <include>**/*</include>
457 <!--This plugin's configuration is used to store Eclipse m2e settings
458 only. It has no influence on the Maven build itself. -->
460 <groupId>org.eclipse.m2e</groupId>
461 <artifactId>lifecycle-mapping</artifactId>
462 <version>1.0.0</version>
464 <lifecycleMappingMetadata>
467 <pluginExecutionFilter>
478 <goal>generate</goal>
480 </pluginExecutionFilter>
486 </lifecycleMappingMetadata>
497 <activeByDefault>true</activeByDefault>
500 <versionSuffix>-${build.number}-${release-tag}</versionSuffix>
506 <versionSuffix>-${release-tag}</versionSuffix>
512 <versionSuffix>-${release-tag}</versionSuffix>