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.2-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.17.RELEASE</spring.version>
35 <springboot.version>1.5.16.RELEASE</springboot.version>
36 <docker.registry>nexus3.onap.org:10001</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 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
56 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
57 <docker.push.phase>deploy</docker.push.phase>
58 <docker.verbose>true</docker.verbose>
59 <ccsdk.project.version>${project.version}</ccsdk.project.version>
60 <image.name>onap/ccsdk-apps-ms-neng</image.name>
61 <timestamp>${maven.build.timestamp}</timestamp>
62 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
69 <build.profile.id>all-tests</build.profile.id>
70 <skip.integration.tests>false</skip.integration.tests>
71 <skip.unit.tests>false</skip.unit.tests>
78 <id>integration-test</id>
80 <build.profile.id>integration-test</build.profile.id>
81 <skip.integration.tests>false</skip.integration.tests>
82 <skip.unit.tests>true</skip.unit.tests>
90 <name>blackduck-scan</name>
96 <groupId>com.blackducksoftware.integration</groupId>
97 <artifactId>hub-maven-plugin</artifactId>
98 <version>1.4.0</version>
99 <inherited>false</inherited>
101 <hubProjectName>${project.name}</hubProjectName>
102 <outputDirectory>${project.basedir}</outputDirectory>
106 <id>create-bdio-file</id>
107 <phase>package</phase>
109 <goal>createHubOutput</goal>
123 <artifactId>maven-resources-plugin</artifactId>
124 <version>2.6</version>
127 <id>copy-dockerfile</id>
129 <goal>copy-resources</goal>
131 <phase>validate</phase>
133 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
136 <directory>src/main/docker</directory>
138 <include>startService.sh</include>
139 <include>Dockerfile</include>
141 <filtering>true</filtering>
147 <id>copy-app-jar</id>
149 <goal>copy-resources</goal>
151 <phase>package</phase>
153 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
156 <directory>${basedir}/target/</directory>
158 <include>NetworkElementNameGen.jar</include>
160 <filtering>false</filtering>
168 <goal>copy-resources</goal>
170 <phase>validate</phase>
172 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
175 <directory>${basedir}/opt/etc/config</directory>
179 <filtering>true</filtering>
189 <groupId>io.fabric8</groupId>
190 <artifactId>docker-maven-plugin</artifactId>
191 <version>0.16.5</version>
192 <inherited>false</inherited>
196 <name>${image.name}</name>
198 <cleanup>try</cleanup>
199 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
201 <tag>${project.version}</tag>
202 <tag>${project.docker.latesttag.version}</tag>
203 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
208 <verbose>true</verbose>
212 <id>generate-images</id>
213 <phase>package</phase>
220 <phase>${docker.push.phase}</phase>
242 <groupId>org.onap.ccsdk.parent</groupId>
243 <artifactId>odlparent-lite</artifactId>
244 <version>1.1.2-SNAPSHOT</version>
248 <dependencyManagement>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-starter-parent</artifactId>
253 <version>${springboot.version}</version>
255 <scope>import</scope>
258 </dependencyManagement>
262 <groupId>io.swagger</groupId>
263 <artifactId>swagger-core</artifactId>
264 <version>1.5.20</version>
267 <groupId>org.springframework.boot</groupId>
268 <artifactId>spring-boot-starter-web</artifactId>
269 <version>${springboot.version}</version>
272 <groupId>org.springframework.boot</groupId>
273 <artifactId>spring-boot-starter-jersey</artifactId>
274 <version>${springboot.version}</version>
277 <groupId>org.springframework.boot</groupId>
278 <artifactId>spring-boot-starter-actuator</artifactId>
279 <version>${springboot.version}</version>
282 <groupId>org.springframework.boot</groupId>
283 <artifactId>spring-boot-loader-tools</artifactId>
284 <version>${springboot.version}</version>
287 <groupId>org.springframework.boot</groupId>
288 <artifactId>spring-boot-starter-test</artifactId>
289 <version>${springboot.version}</version>
293 <groupId>org.springframework.boot</groupId>
294 <artifactId>spring-boot-starter-tomcat</artifactId>
295 <version>${springboot.version}</version>
296 <scope>compile</scope>
299 <groupId>org.springframework.boot</groupId>
300 <artifactId>spring-boot-starter-data-jpa</artifactId>
301 <version>${springboot.version}</version>
302 <scope>compile</scope>
305 <groupId>org.apache.httpcomponents</groupId>
306 <artifactId>httpclient</artifactId>
309 <groupId>javax.ws.rs</groupId>
310 <artifactId>javax.ws.rs-api</artifactId>
311 <version>2.1</version>
314 <groupId>commons-lang</groupId>
315 <artifactId>commons-lang</artifactId>
316 <version>2.6</version>
319 <groupId>org.liquibase</groupId>
320 <artifactId>liquibase-core</artifactId>
323 <groupId>org.mariadb.jdbc</groupId>
324 <artifactId>mariadb-java-client</artifactId>
325 <version>${mariadb.connector.version}</version>
328 <groupId>com.h2database</groupId>
329 <artifactId>h2</artifactId>
332 <groupId>org.springframework.boot</groupId>
333 <artifactId>spring-boot-configuration-processor</artifactId>
334 <version>${springboot.version}</version>
335 <optional>true</optional>
338 <groupId>org.springframework</groupId>
339 <artifactId>spring-test</artifactId>
340 <version>${spring.version}</version>
344 <groupId>org.springframework</groupId>
345 <artifactId>spring-aop</artifactId>
346 <version>${spring.version}</version>
349 <groupId>org.springframework</groupId>
350 <artifactId>spring-beans</artifactId>
353 <groupId>org.springframework</groupId>
354 <artifactId>spring-beans</artifactId>
355 <version>${spring.version}</version>
358 <groupId>org.springframework</groupId>
359 <artifactId>spring-context</artifactId>
360 <version>${spring.version}</version>
363 <groupId>org.springframework</groupId>
364 <artifactId>spring-core</artifactId>
365 <version>${spring.version}</version>
368 <groupId>org.springframework</groupId>
369 <artifactId>spring-expression</artifactId>
370 <version>${spring.version}</version>
373 <groupId>org.springframework</groupId>
374 <artifactId>spring-web</artifactId>
375 <version>${spring.version}</version>
380 <finalName>NetworkElementNameGen</finalName>
384 <groupId>org.codehaus.groovy.maven</groupId>
385 <artifactId>gmaven-plugin</artifactId>
386 <version>1.0</version>
389 <phase>validate</phase>
395 println project.properties['ccsdk.project.version'];
397 if (project.properties['ccsdk.project.version'] != null) {
398 versionArray = project.properties['ccsdk.project.version'].split('\\.');
401 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
402 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
404 project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
407 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
414 <groupId>org.jacoco</groupId>
415 <artifactId>jacoco-maven-plugin</artifactId>
416 <version>0.7.5.201505241946</version>
419 <id>pre-unit-test</id>
421 <goal>prepare-agent</goal>
424 <destFile>${sonar.jacoco.reportPath}</destFile>
425 <propertyName>surefireArgLine</propertyName>
429 <id>post-unit-test</id>
435 <dataFile>${sonar.jacoco.reportPath}</dataFile>
436 <outputDirectory>${jacoco.path}</outputDirectory>
440 <id>pre-integration-test</id>
441 <phase>pre-integration-test</phase>
443 <goal>prepare-agent</goal>
446 <destFile>${sonar.jacoco.itReportPath}</destFile>
447 <propertyName>failsafeArgLine</propertyName>
451 <id>post-integration-test</id>
452 <phase>post-integration-test</phase>
457 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
458 <outputDirectory>${jacoco.itPath}</outputDirectory>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-surefire-plugin</artifactId>
467 <argLine>${surefireArgLine}</argLine>
468 <skipTests>${skip.unit.tests}</skipTests>
470 <exclude>**/IT*.java</exclude>
475 <groupId>org.apache.maven.plugins</groupId>
476 <artifactId>maven-failsafe-plugin</artifactId>
479 <id>integration-tests</id>
481 <goal>integration-test</goal>
485 <argLine>${failsafeArgLine}</argLine>
486 <skipTests>${skip.integration.tests}</skipTests>
492 <artifactId>maven-dependency-plugin</artifactId>
495 <groupId>com.github.kongchen</groupId>
496 <artifactId>swagger-maven-plugin</artifactId>
497 <version>3.1.3</version>
501 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
502 <basePath>/web</basePath>
504 <title>${project.artifactId} Service</title>
505 <version>${project.version}</version>
507 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
513 <phase>package</phase>
515 <goal>generate</goal>
522 <artifactId>exec-maven-plugin</artifactId>
523 <groupId>org.codehaus.mojo</groupId>
527 <groupId>org.springframework.boot</groupId>
528 <artifactId>spring-boot-maven-plugin</artifactId>
529 <version>${springboot.version}</version>
533 <goal>repackage</goal>
542 <directory>src/main/resources</directory>
543 <filtering>true</filtering>
545 <include>**/*</include>
549 <directory>opt/aai/keystore</directory>
550 <targetPath>../opt/aai/keystore</targetPath>
551 <filtering>false</filtering>
553 <include>**/*</include>
558 <directory>opt/etc/config</directory>
559 <targetPath>../opt/etc/config</targetPath>
560 <filtering>true</filtering>
562 <include>**/*</include>
566 <directory>opt/etc/keystore</directory>
567 <targetPath>../opt/etc/keystore</targetPath>
568 <filtering>false</filtering>
570 <include>**/*</include>
574 <directory>opt/etc/truststore</directory>
575 <targetPath>../opt/etc/truststore</targetPath>
576 <filtering>false</filtering>
578 <include>**/*</include>
584 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
586 <groupId>org.eclipse.m2e</groupId>
587 <artifactId>lifecycle-mapping</artifactId>
588 <version>1.0.0</version>
590 <lifecycleMappingMetadata>
593 <pluginExecutionFilter>
595 org.apache.maven.plugins
598 maven-checkstyle-plugin
606 </pluginExecutionFilter>
612 <pluginExecutionFilter>
617 properties-maven-plugin
624 set-system-properties
627 </pluginExecutionFilter>
633 </lifecycleMappingMetadata>