1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START=======================================================
5 * ================================================================================
6 * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.ccsdk.apps</groupId>
26 <artifactId>ccsdk-apps-ms-neng</artifactId>
27 <version>0.3.0-SNAPSHOT</version>
30 <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory>
31 <icd.file>service.json</icd.file>
32 <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package>
33 <java.version>1.8</java.version>
34 <spring.version>4.3.8.RELEASE</spring.version>
35 <springboot.version>1.5.6.RELEASE</springboot.version>
36 <docker.registry>nexus3.onap.org:10003</docker.registry>
37 <build.number>local</build.number>
38 <kube.namespace>TBD</kube.namespace>
39 <service.account>TBD</service.account>
40 <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <sdk.java.rest>6.2.0.11</sdk.java.rest>
45 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
47 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
48 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
49 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
50 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
51 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <sonar.language>java</sonar.language>
54 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
55 <project.version>0.3.0</project.version>
56 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
57 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
58 <docker.push.phase>deploy</docker.push.phase>
59 <docker.verbose>true</docker.verbose>
60 <ccsdk.project.version>${project.version}</ccsdk.project.version>
67 <build.profile.id>all-tests</build.profile.id>
68 <skip.integration.tests>false</skip.integration.tests>
69 <skip.unit.tests>false</skip.unit.tests>
76 <id>integration-test</id>
78 <build.profile.id>integration-test</build.profile.id>
79 <skip.integration.tests>false</skip.integration.tests>
80 <skip.unit.tests>true</skip.unit.tests>
88 <name>blackduck-scan</name>
94 <groupId>com.blackducksoftware.integration</groupId>
95 <artifactId>hub-maven-plugin</artifactId>
96 <version>1.4.0</version>
97 <inherited>false</inherited>
99 <hubProjectName>${project.name}</hubProjectName>
100 <outputDirectory>${project.basedir}</outputDirectory>
104 <id>create-bdio-file</id>
105 <phase>package</phase>
107 <goal>createHubOutput</goal>
121 <groupId>com.spotify</groupId>
122 <artifactId>docker-maven-plugin</artifactId>
123 <version>0.4.11</version>
125 <imageName>onap/ccsdk-apps-ms-neng:${project.version}</imageName>
126 <dockerDirectory>src/main/docker</dockerDirectory>
127 <serverId>docker-hub</serverId>
128 <registryUrl>https://${docker.registry}</registryUrl>
130 <imageTag>${project.version}</imageTag>
131 <imageTag>${project.version}-STAGING-${maven.build.timestamp}</imageTag>
132 <imageTag>${project.docker.latesttag.version}</imageTag>
134 <forceTags>true</forceTags>
137 <targetPath>/</targetPath>
138 <directory>${project.build.directory}</directory>
139 <include>${project.build.finalName}.jar</include>
142 <targetPath>/</targetPath>
143 <directory>${project.build.directory}</directory>
144 <include>opt/etc/config/*</include>
147 <targetPath>/</targetPath>
148 <directory>${project.build.directory}</directory>
149 <include>opt/etc/keystore/*</include>
152 <targetPath>/</targetPath>
153 <directory>${project.build.directory}</directory>
154 <include>opt/etc/truststore/*</include>
157 <targetPath>/</targetPath>
158 <directory>${project.build.directory}</directory>
159 <include>opt/aai/keystore/*</include>
162 <targetPath>/</targetPath>
163 <directory>${project.build.directory}</directory>
164 <include>etc/*</include>
183 <groupId>org.onap.ccsdk.parent</groupId>
184 <artifactId>odlparent-lite</artifactId>
185 <version>1.1.0-SNAPSHOT</version>
189 <dependencyManagement>
192 <groupId>org.springframework.boot</groupId>
193 <artifactId>spring-boot-starter-parent</artifactId>
194 <version>${springboot.version}</version>
196 <scope>import</scope>
199 </dependencyManagement>
203 <groupId>io.swagger</groupId>
204 <artifactId>swagger-core</artifactId>
205 <version>1.5.20</version>
208 <groupId>org.springframework.boot</groupId>
209 <artifactId>spring-boot-starter-web</artifactId>
210 <version>${springboot.version}</version>
213 <groupId>org.springframework.boot</groupId>
214 <artifactId>spring-boot-starter-jersey</artifactId>
215 <version>${springboot.version}</version>
218 <groupId>org.springframework.boot</groupId>
219 <artifactId>spring-boot-starter-actuator</artifactId>
220 <version>${springboot.version}</version>
223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-loader-tools</artifactId>
225 <version>${springboot.version}</version>
228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-starter-test</artifactId>
230 <version>${springboot.version}</version>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-starter-tomcat</artifactId>
236 <version>${springboot.version}</version>
237 <scope>compile</scope>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-starter-data-jpa</artifactId>
242 <version>${springboot.version}</version>
243 <scope>compile</scope>
246 <groupId>org.apache.httpcomponents</groupId>
247 <artifactId>httpclient</artifactId>
250 <groupId>javax.ws.rs</groupId>
251 <artifactId>javax.ws.rs-api</artifactId>
252 <version>2.1</version>
255 <groupId>commons-lang</groupId>
256 <artifactId>commons-lang</artifactId>
257 <version>2.6</version>
260 <groupId>org.liquibase</groupId>
261 <artifactId>liquibase-core</artifactId>
264 <groupId>org.mariadb.jdbc</groupId>
265 <artifactId>mariadb-java-client</artifactId>
266 <version>${mariadb.connector.version}</version>
269 <groupId>com.h2database</groupId>
270 <artifactId>h2</artifactId>
273 <groupId>org.springframework.boot</groupId>
274 <artifactId>spring-boot-configuration-processor</artifactId>
275 <version>${springboot.version}</version>
276 <optional>true</optional>
279 <groupId>org.springframework</groupId>
280 <artifactId>spring-test</artifactId>
281 <version>${spring.version}</version>
285 <groupId>org.springframework</groupId>
286 <artifactId>spring-aop</artifactId>
287 <version>${spring.version}</version>
290 <groupId>org.springframework</groupId>
291 <artifactId>spring-beans</artifactId>
294 <groupId>org.springframework</groupId>
295 <artifactId>spring-beans</artifactId>
296 <version>${spring.version}</version>
299 <groupId>org.springframework</groupId>
300 <artifactId>spring-context</artifactId>
301 <version>${spring.version}</version>
304 <groupId>org.springframework</groupId>
305 <artifactId>spring-core</artifactId>
306 <version>${spring.version}</version>
309 <groupId>org.springframework</groupId>
310 <artifactId>spring-expression</artifactId>
311 <version>${spring.version}</version>
314 <groupId>org.springframework</groupId>
315 <artifactId>spring-web</artifactId>
316 <version>${spring.version}</version>
321 <finalName>NetworkElementNameGen</finalName>
324 <groupId>org.codehaus.groovy.maven</groupId>
325 <artifactId>gmaven-plugin</artifactId>
326 <version>1.0</version>
329 <phase>validate</phase>
335 println project.properties['ccsdk.project.version'];
337 if (project.properties['ccsdk.project.version'] != null ) {
338 versionArray = project.properties['ccsdk.project.version'].split('\\.');
341 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT"))
343 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
345 project.properties['project.docker.latesttag.version']=versionArray[0]+'.' + versionArray[1]+"-STAGING-latest";
348 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
355 <groupId>org.jacoco</groupId>
356 <artifactId>jacoco-maven-plugin</artifactId>
357 <version>0.7.5.201505241946</version>
360 <id>pre-unit-test</id>
362 <goal>prepare-agent</goal>
365 <destFile>${sonar.jacoco.reportPath}</destFile>
366 <propertyName>surefireArgLine</propertyName>
370 <id>post-unit-test</id>
376 <dataFile>${sonar.jacoco.reportPath}</dataFile>
377 <outputDirectory>${jacoco.path}</outputDirectory>
381 <id>pre-integration-test</id>
382 <phase>pre-integration-test</phase>
384 <goal>prepare-agent</goal>
387 <destFile>${sonar.jacoco.itReportPath}</destFile>
388 <propertyName>failsafeArgLine</propertyName>
392 <id>post-integration-test</id>
393 <phase>post-integration-test</phase>
398 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
399 <outputDirectory>${jacoco.itPath}</outputDirectory>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-surefire-plugin</artifactId>
408 <argLine>${surefireArgLine}</argLine>
409 <skipTests>${skip.unit.tests}</skipTests>
411 <exclude>**/IT*.java</exclude>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-failsafe-plugin</artifactId>
420 <id>integration-tests</id>
422 <goal>integration-test</goal>
426 <argLine>${failsafeArgLine}</argLine>
427 <skipTests>${skip.integration.tests}</skipTests>
433 <artifactId>maven-dependency-plugin</artifactId>
436 <groupId>com.github.kongchen</groupId>
437 <artifactId>swagger-maven-plugin</artifactId>
438 <version>3.1.3</version>
442 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
443 <basePath>/web</basePath>
445 <title>${project.artifactId} Service</title>
446 <version>${project.version}</version>
448 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
454 <phase>package</phase>
456 <goal>generate</goal>
463 <artifactId>exec-maven-plugin</artifactId>
464 <groupId>org.codehaus.mojo</groupId>
468 <groupId>io.fabric8</groupId>
469 <artifactId>docker-maven-plugin</artifactId>
470 <inherited>false</inherited>
472 <verbose>false</verbose>
475 <name>onap/ccsdk-apps-ms-neng</name>
477 <cleanup>try</cleanup>
478 <dockerFileDir>${basedir}/src/main/docker</dockerFileDir>
479 <dockerFile>Dockerfile</dockerFile>
481 <tag>${project.version}</tag>
485 <targetDir>/</targetDir>
489 <source>${project.build.directory}/${build.finalName}.${project.packaging}</source>
493 <directory>${basedir}/opt/etc</directory>
494 <outputDirectory>opt/etc</outputDirectory>
496 <include>**</include>
509 <id>generate-images</id>
510 <phase>package</phase>
518 <phase>deploy</phase>
530 <groupId>org.springframework.boot</groupId>
531 <artifactId>spring-boot-maven-plugin</artifactId>
532 <version>${springboot.version}</version>
536 <goal>repackage</goal>
544 <directory>src/main/resources</directory>
545 <filtering>true</filtering>
547 <include>**/*</include>
551 <directory>opt/aai/keystore</directory>
552 <targetPath>../opt/aai/keystore</targetPath>
553 <filtering>false</filtering>
555 <include>**/*</include>
560 <directory>opt/etc/config</directory>
561 <targetPath>../opt/etc/config</targetPath>
562 <filtering>true</filtering>
564 <include>**/*</include>
568 <directory>opt/etc/keystore</directory>
569 <targetPath>../opt/etc/keystore</targetPath>
570 <filtering>false</filtering>
572 <include>**/*</include>
576 <directory>opt/etc/truststore</directory>
577 <targetPath>../opt/etc/truststore</targetPath>
578 <filtering>false</filtering>
580 <include>**/*</include>
586 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
588 <groupId>org.eclipse.m2e</groupId>
589 <artifactId>lifecycle-mapping</artifactId>
590 <version>1.0.0</version>
592 <lifecycleMappingMetadata>
595 <pluginExecutionFilter>
597 org.apache.maven.plugins
600 maven-checkstyle-plugin
608 </pluginExecutionFilter>
614 <pluginExecutionFilter>
619 properties-maven-plugin
626 set-system-properties
629 </pluginExecutionFilter>
635 </lifecycleMappingMetadata>