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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.ccsdk.apps</groupId>
25 <artifactId>ccsdk-apps-ms-neng</artifactId>
26 <version>0.6.0-SNAPSHOT</version>
27 <name>Naming Generation</name>
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>
63 <ccsdk.project.version>${project.version}</ccsdk.project.version>
64 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
71 <build.profile.id>all-tests</build.profile.id>
72 <skip.integration.tests>false</skip.integration.tests>
73 <skip.unit.tests>false</skip.unit.tests>
80 <id>integration-test</id>
82 <build.profile.id>integration-test</build.profile.id>
83 <skip.integration.tests>false</skip.integration.tests>
84 <skip.unit.tests>true</skip.unit.tests>
92 <name>blackduck-scan</name>
98 <groupId>com.blackducksoftware.integration</groupId>
99 <artifactId>hub-maven-plugin</artifactId>
100 <version>1.4.0</version>
101 <inherited>false</inherited>
103 <hubProjectName>${project.name}</hubProjectName>
104 <outputDirectory>${project.basedir}</outputDirectory>
108 <id>create-bdio-file</id>
109 <phase>package</phase>
111 <goal>createHubOutput</goal>
125 <artifactId>maven-resources-plugin</artifactId>
126 <version>2.6</version>
129 <id>copy-dockerfile</id>
131 <goal>copy-resources</goal>
133 <phase>validate</phase>
135 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
138 <directory>src/main/docker</directory>
140 <include>startService.sh</include>
141 <include>Dockerfile</include>
143 <filtering>true</filtering>
149 <id>copy-app-jar</id>
151 <goal>copy-resources</goal>
153 <phase>package</phase>
155 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
158 <directory>${basedir}/target/</directory>
160 <include>NetworkElementNameGen.jar</include>
162 <filtering>false</filtering>
170 <goal>copy-resources</goal>
172 <phase>validate</phase>
174 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
177 <directory>${basedir}/opt/etc/config</directory>
181 <filtering>true</filtering>
191 <groupId>io.fabric8</groupId>
192 <artifactId>docker-maven-plugin</artifactId>
193 <version>0.16.5</version>
194 <inherited>false</inherited>
198 <name>${image.name}</name>
200 <cleanup>try</cleanup>
201 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
203 <tag>${project.docker.latestminortag.version}</tag>
204 <tag>${project.docker.latestfulltag.version}</tag>
205 <tag>${project.docker.latesttagtimestamp.version}</tag>
210 <verbose>true</verbose>
214 <id>generate-images</id>
215 <phase>package</phase>
222 <phase>${docker.push.phase}</phase>
244 <groupId>org.onap.ccsdk.parent</groupId>
245 <artifactId>spring-boot-1-starter-parent</artifactId>
246 <version>1.4.0-SNAPSHOT</version>
254 <groupId>io.swagger</groupId>
255 <artifactId>swagger-core</artifactId>
258 <groupId>org.springframework.boot</groupId>
259 <artifactId>spring-boot-starter-web</artifactId>
262 <groupId>org.springframework.boot</groupId>
263 <artifactId>spring-boot-starter-jersey</artifactId>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-starter-actuator</artifactId>
270 <groupId>org.springframework.boot</groupId>
271 <artifactId>spring-boot-loader-tools</artifactId>
274 <groupId>org.springframework.boot</groupId>
275 <artifactId>spring-boot-starter-test</artifactId>
279 <groupId>org.springframework.boot</groupId>
280 <artifactId>spring-boot-starter-tomcat</artifactId>
281 <scope>compile</scope>
284 <groupId>org.springframework.boot</groupId>
285 <artifactId>spring-boot-starter-data-jpa</artifactId>
286 <scope>compile</scope>
289 <groupId>org.apache.httpcomponents</groupId>
290 <artifactId>httpclient</artifactId>
293 <groupId>javax.ws.rs</groupId>
294 <artifactId>javax.ws.rs-api</artifactId>
297 <groupId>commons-lang</groupId>
298 <artifactId>commons-lang</artifactId>
301 <groupId>org.liquibase</groupId>
302 <artifactId>liquibase-core</artifactId>
305 <groupId>org.mariadb.jdbc</groupId>
306 <artifactId>mariadb-java-client</artifactId>
309 <groupId>com.h2database</groupId>
310 <artifactId>h2</artifactId>
313 <groupId>org.springframework.boot</groupId>
314 <artifactId>spring-boot-configuration-processor</artifactId>
315 <optional>true</optional>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-test</artifactId>
323 <groupId>org.springframework</groupId>
324 <artifactId>spring-aop</artifactId>
327 <groupId>org.springframework</groupId>
328 <artifactId>spring-beans</artifactId>
331 <groupId>org.springframework</groupId>
332 <artifactId>spring-beans</artifactId>
335 <groupId>org.springframework</groupId>
336 <artifactId>spring-context</artifactId>
339 <groupId>org.springframework</groupId>
340 <artifactId>spring-core</artifactId>
343 <groupId>org.springframework</groupId>
344 <artifactId>spring-expression</artifactId>
347 <groupId>org.springframework</groupId>
348 <artifactId>spring-web</artifactId>
353 <finalName>NetworkElementNameGen</finalName>
357 <groupId>org.codehaus.groovy.maven</groupId>
358 <artifactId>gmaven-plugin</artifactId>
359 <version>1.0</version>
362 <phase>validate</phase>
367 <source>${basedir}/../../TagVersion.groovy</source>
373 <groupId>org.jacoco</groupId>
374 <artifactId>jacoco-maven-plugin</artifactId>
377 <id>pre-unit-test</id>
379 <goal>prepare-agent</goal>
382 <destFile>${sonar.jacoco.reportPath}</destFile>
383 <propertyName>surefireArgLine</propertyName>
387 <id>post-unit-test</id>
393 <dataFile>${sonar.jacoco.reportPath}</dataFile>
394 <outputDirectory>${jacoco.path}</outputDirectory>
398 <id>pre-integration-test</id>
399 <phase>pre-integration-test</phase>
401 <goal>prepare-agent</goal>
404 <destFile>${sonar.jacoco.itReportPath}</destFile>
405 <propertyName>failsafeArgLine</propertyName>
409 <id>post-integration-test</id>
410 <phase>post-integration-test</phase>
415 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
416 <outputDirectory>${jacoco.itPath}</outputDirectory>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-surefire-plugin</artifactId>
425 <argLine>${surefireArgLine}</argLine>
426 <skipTests>${skip.unit.tests}</skipTests>
428 <exclude>**/IT*.java</exclude>
433 <groupId>org.apache.maven.plugins</groupId>
434 <artifactId>maven-failsafe-plugin</artifactId>
437 <id>integration-tests</id>
439 <goal>integration-test</goal>
443 <argLine>${failsafeArgLine}</argLine>
444 <skipTests>${skip.integration.tests}</skipTests>
450 <artifactId>maven-dependency-plugin</artifactId>
453 <groupId>com.github.kongchen</groupId>
454 <artifactId>swagger-maven-plugin</artifactId>
455 <version>3.1.3</version>
459 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
460 <basePath>/web</basePath>
462 <title>${project.artifactId} Service</title>
463 <version>${project.version}</version>
465 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
471 <phase>package</phase>
473 <goal>generate</goal>
480 <artifactId>exec-maven-plugin</artifactId>
481 <groupId>org.codehaus.mojo</groupId>
485 <groupId>org.springframework.boot</groupId>
486 <artifactId>spring-boot-maven-plugin</artifactId>
490 <goal>repackage</goal>
499 <directory>src/main/resources</directory>
500 <filtering>true</filtering>
502 <include>**/*</include>
506 <directory>opt/aai/keystore</directory>
507 <targetPath>../opt/aai/keystore</targetPath>
508 <filtering>false</filtering>
510 <include>**/*</include>
515 <directory>opt/etc/config</directory>
516 <targetPath>../opt/etc/config</targetPath>
517 <filtering>true</filtering>
519 <include>**/*</include>
523 <directory>opt/etc/keystore</directory>
524 <targetPath>../opt/etc/keystore</targetPath>
525 <filtering>false</filtering>
527 <include>**/*</include>
531 <directory>opt/etc/truststore</directory>
532 <targetPath>../opt/etc/truststore</targetPath>
533 <filtering>false</filtering>
535 <include>**/*</include>
541 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
543 <groupId>org.eclipse.m2e</groupId>
544 <artifactId>lifecycle-mapping</artifactId>
545 <version>1.0.0</version>
547 <lifecycleMappingMetadata>
550 <pluginExecutionFilter>
552 org.apache.maven.plugins
555 maven-checkstyle-plugin
563 </pluginExecutionFilter>
569 <pluginExecutionFilter>
574 properties-maven-plugin
581 set-system-properties
584 </pluginExecutionFilter>
590 </lifecycleMappingMetadata>