1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.onap.ccsdk.apps.ms.vlantagapi</groupId>
6 <artifactId>vlantag-api</artifactId>
7 <version>0.6.0</version>
8 <packaging>jar</packaging>
10 <name>Vlantag API</name>
11 <description>Vlantag Api Service for Vlantag management of VNFs</description>
14 <swagger.directory>${basedir}/target/main/resources/META-INF/resources/swagger-ui/dist</swagger.directory>
15 <swagger.annotations.version>1.5.8</swagger.annotations.version>
16 <java.version>1.8</java.version>
17 <springboot.version>2.0.4.RELEASE</springboot.version>
18 <mariadb.connector.version>2.1.1</mariadb.connector.version>
19 <docker.registry>TBD:5100</docker.registry>
20 <serviceArtifactName>vlantagapi</serviceArtifactName>
23 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
24 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
25 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
26 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
27 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
28 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
29 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
30 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
31 <sonar.language>java</sonar.language>
32 <ilib.version>2.0.7</ilib.version>
33 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
34 <docker.push.phase>deploy</docker.push.phase>
35 <docker.verbose>true</docker.verbose>
36 <ccsdk.project.version>${project.version}</ccsdk.project.version>
37 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
41 <groupId>org.onap.ccsdk.parent</groupId>
42 <artifactId>spring-boot-starter-parent</artifactId>
43 <version>1.4.0</version>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-jersey</artifactId>
54 <groupId>org.springframework.boot</groupId>
55 <artifactId>spring-boot-starter-web</artifactId>
58 <groupId>org.springframework.boot</groupId>
59 <artifactId>spring-boot-starter-test</artifactId>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-actuator</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-security</artifactId>
74 <groupId>org.onap.ccsdk.sli.core</groupId>
75 <artifactId>sli-common</artifactId>
76 <version>${ccsdk.sli.core.version}</version>
77 <scope>provided</scope>
80 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
81 <artifactId>resource-assignment-provider</artifactId>
82 <version>${ccsdk.sli.adaptors.version}</version>
85 <groupId>org.slf4j</groupId>
86 <artifactId>slf4j-simple</artifactId>
92 <groupId>org.mariadb.jdbc</groupId>
93 <artifactId>mariadb-java-client</artifactId>
97 <groupId>io.swagger</groupId>
98 <artifactId>swagger-annotations</artifactId>
107 <groupId>org.codehaus.groovy.maven</groupId>
108 <artifactId>gmaven-plugin</artifactId>
109 <version>1.0</version>
112 <phase>validate</phase>
117 <source>${basedir}/../../TagVersion.groovy</source>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-surefire-plugin</artifactId>
126 <argLine>${surefireArgLine}</argLine>
127 <skipTests>${skip.unit.tests}</skipTests>
129 <exclude>**/IT*.java</exclude>
134 <groupId>org.jacoco</groupId>
135 <artifactId>jacoco-maven-plugin</artifactId>
136 <version>0.7.5.201505241946</version>
138 <!-- Prepares the property pointing to the JaCoCo runtime agent which
139 is passed as VM argument when Maven the Surefire plugin is executed. -->
141 <id>pre-unit-test</id>
143 <goal>prepare-agent</goal>
146 <!-- Sets the path to the file which contains the execution data. -->
147 <destFile>${sonar.jacoco.reportPath}</destFile>
148 <propertyName>surefireArgLine</propertyName>
151 <!-- Ensures that the code coverage report for unit tests is created
152 after unit tests have been run. -->
154 <id>post-unit-test</id>
160 <!-- Sets the path to the file which contains the execution data. -->
161 <dataFile>${sonar.jacoco.reportPath}</dataFile>
162 <!-- Sets the output directory for the code coverage report. -->
163 <outputDirectory>${jacoco.path}</outputDirectory>
169 <groupId>com.github.kongchen</groupId>
170 <artifactId>swagger-maven-plugin</artifactId>
171 <version>3.1.7</version>
176 <scheme>http</scheme>
177 <scheme>https</scheme>
179 <host>localhost:9091</host>
181 <location>org.onap.ccsdk.apps.ms.vlantagapi.core.service</location>
182 <location>org.onap.ccsdk.apps.ms.vlantagapi.core.model</location>
184 <!-- <locations>org.onap.ccsdk.apps.ms.vlantagapi.core.service</locations> -->
185 <basePath>/vlantagapi</basePath>
187 <title>${project.artifactId} Service</title>
188 <version>${project.version}</version>
190 <securityDefinitions>
192 <name>basicAuth</name>
194 </securityDefinition>
195 </securityDefinitions>
196 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
202 <!-- <phase>compile</phase> -->
203 <phase>package</phase>
205 <goal>generate</goal>
211 <groupId>com.spotify</groupId>
212 <artifactId>docker-maven-plugin</artifactId>
213 <version>0.4.11</version>
215 <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName>
216 <dockerDirectory>src/main/docker</dockerDirectory>
217 <serverId>docker-hub</serverId>
218 <registryUrl>https://${docker.registry}</registryUrl>
220 <imageTag>${project.docker.latestminortag.version}</imageTag>
221 <imageTag>${project.docker.latestfulltag.version}</imageTag>
222 <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>
224 <forceTags>true</forceTags>
227 <targetPath>/</targetPath>
228 <directory>${project.build.directory}</directory>
229 <include>${project.build.finalName}.jar</include>
235 <groupId>org.springframework.boot</groupId>
236 <artifactId>spring-boot-maven-plugin</artifactId>
237 <version>${springboot.version}</version>
241 <goal>repackage</goal>
255 <groupId>com.spotify</groupId>
256 <artifactId>docker-maven-plugin</artifactId>
257 <version>0.4.11</version>
259 <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName>
260 <dockerDirectory>src/main/docker</dockerDirectory>
261 <serverId>docker-hub</serverId>
262 <registryUrl>https://${docker.registry}</registryUrl>
264 <imageTag>${project.version}</imageTag>
265 <imageTag>${project.version}-STAGING-${maven.build.timestamp}</imageTag>
266 <imageTag>${project.docker.latesttag.version}</imageTag>
268 <forceTags>true</forceTags>
271 <targetPath>/</targetPath>
272 <directory>${project.build.directory}</directory>
273 <include>${project.build.finalName}.jar</include>