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.4.2-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.2.2-SNAPSHOT</version>
254 <groupId>io.swagger</groupId>
255 <artifactId>swagger-core</artifactId>
256 <version>1.5.20</version>
259 <groupId>org.springframework.boot</groupId>
260 <artifactId>spring-boot-starter-web</artifactId>
261 <version>${springboot.version}</version>
264 <groupId>org.springframework.boot</groupId>
265 <artifactId>spring-boot-starter-jersey</artifactId>
266 <version>${springboot.version}</version>
269 <groupId>org.springframework.boot</groupId>
270 <artifactId>spring-boot-starter-actuator</artifactId>
271 <version>${springboot.version}</version>
274 <groupId>org.springframework.boot</groupId>
275 <artifactId>spring-boot-loader-tools</artifactId>
276 <version>${springboot.version}</version>
279 <groupId>org.springframework.boot</groupId>
280 <artifactId>spring-boot-starter-test</artifactId>
281 <version>${springboot.version}</version>
285 <groupId>org.springframework.boot</groupId>
286 <artifactId>spring-boot-starter-tomcat</artifactId>
287 <version>${springboot.version}</version>
288 <scope>compile</scope>
291 <groupId>org.springframework.boot</groupId>
292 <artifactId>spring-boot-starter-data-jpa</artifactId>
293 <version>${springboot.version}</version>
294 <scope>compile</scope>
297 <groupId>org.apache.httpcomponents</groupId>
298 <artifactId>httpclient</artifactId>
301 <groupId>javax.ws.rs</groupId>
302 <artifactId>javax.ws.rs-api</artifactId>
303 <version>2.1</version>
306 <groupId>commons-lang</groupId>
307 <artifactId>commons-lang</artifactId>
308 <version>2.6</version>
311 <groupId>org.liquibase</groupId>
312 <artifactId>liquibase-core</artifactId>
315 <groupId>org.mariadb.jdbc</groupId>
316 <artifactId>mariadb-java-client</artifactId>
317 <version>${mariadb.connector.version}</version>
320 <groupId>com.h2database</groupId>
321 <artifactId>h2</artifactId>
324 <groupId>org.springframework.boot</groupId>
325 <artifactId>spring-boot-configuration-processor</artifactId>
326 <version>${springboot.version}</version>
327 <optional>true</optional>
330 <groupId>org.springframework</groupId>
331 <artifactId>spring-test</artifactId>
332 <version>${spring.version}</version>
336 <groupId>org.springframework</groupId>
337 <artifactId>spring-aop</artifactId>
338 <version>${spring.version}</version>
341 <groupId>org.springframework</groupId>
342 <artifactId>spring-beans</artifactId>
345 <groupId>org.springframework</groupId>
346 <artifactId>spring-beans</artifactId>
347 <version>${spring.version}</version>
350 <groupId>org.springframework</groupId>
351 <artifactId>spring-context</artifactId>
352 <version>${spring.version}</version>
355 <groupId>org.springframework</groupId>
356 <artifactId>spring-core</artifactId>
357 <version>${spring.version}</version>
360 <groupId>org.springframework</groupId>
361 <artifactId>spring-expression</artifactId>
362 <version>${spring.version}</version>
365 <groupId>org.springframework</groupId>
366 <artifactId>spring-web</artifactId>
367 <version>${spring.version}</version>
372 <finalName>NetworkElementNameGen</finalName>
376 <groupId>org.codehaus.groovy.maven</groupId>
377 <artifactId>gmaven-plugin</artifactId>
378 <version>1.0</version>
381 <phase>validate</phase>
386 <source>${basedir}/../../TagVersion.groovy</source>
392 <groupId>org.jacoco</groupId>
393 <artifactId>jacoco-maven-plugin</artifactId>
394 <version>0.7.5.201505241946</version>
397 <id>pre-unit-test</id>
399 <goal>prepare-agent</goal>
402 <destFile>${sonar.jacoco.reportPath}</destFile>
403 <propertyName>surefireArgLine</propertyName>
407 <id>post-unit-test</id>
413 <dataFile>${sonar.jacoco.reportPath}</dataFile>
414 <outputDirectory>${jacoco.path}</outputDirectory>
418 <id>pre-integration-test</id>
419 <phase>pre-integration-test</phase>
421 <goal>prepare-agent</goal>
424 <destFile>${sonar.jacoco.itReportPath}</destFile>
425 <propertyName>failsafeArgLine</propertyName>
429 <id>post-integration-test</id>
430 <phase>post-integration-test</phase>
435 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
436 <outputDirectory>${jacoco.itPath}</outputDirectory>
442 <groupId>org.apache.maven.plugins</groupId>
443 <artifactId>maven-surefire-plugin</artifactId>
445 <argLine>${surefireArgLine}</argLine>
446 <skipTests>${skip.unit.tests}</skipTests>
448 <exclude>**/IT*.java</exclude>
453 <groupId>org.apache.maven.plugins</groupId>
454 <artifactId>maven-failsafe-plugin</artifactId>
457 <id>integration-tests</id>
459 <goal>integration-test</goal>
463 <argLine>${failsafeArgLine}</argLine>
464 <skipTests>${skip.integration.tests}</skipTests>
470 <artifactId>maven-dependency-plugin</artifactId>
473 <groupId>com.github.kongchen</groupId>
474 <artifactId>swagger-maven-plugin</artifactId>
475 <version>3.1.3</version>
479 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
480 <basePath>/web</basePath>
482 <title>${project.artifactId} Service</title>
483 <version>${project.version}</version>
485 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
491 <phase>package</phase>
493 <goal>generate</goal>
500 <artifactId>exec-maven-plugin</artifactId>
501 <groupId>org.codehaus.mojo</groupId>
505 <groupId>org.springframework.boot</groupId>
506 <artifactId>spring-boot-maven-plugin</artifactId>
507 <version>${springboot.version}</version>
511 <goal>repackage</goal>
520 <directory>src/main/resources</directory>
521 <filtering>true</filtering>
523 <include>**/*</include>
527 <directory>opt/aai/keystore</directory>
528 <targetPath>../opt/aai/keystore</targetPath>
529 <filtering>false</filtering>
531 <include>**/*</include>
536 <directory>opt/etc/config</directory>
537 <targetPath>../opt/etc/config</targetPath>
538 <filtering>true</filtering>
540 <include>**/*</include>
544 <directory>opt/etc/keystore</directory>
545 <targetPath>../opt/etc/keystore</targetPath>
546 <filtering>false</filtering>
548 <include>**/*</include>
552 <directory>opt/etc/truststore</directory>
553 <targetPath>../opt/etc/truststore</targetPath>
554 <filtering>false</filtering>
556 <include>**/*</include>
562 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
564 <groupId>org.eclipse.m2e</groupId>
565 <artifactId>lifecycle-mapping</artifactId>
566 <version>1.0.0</version>
568 <lifecycleMappingMetadata>
571 <pluginExecutionFilter>
573 org.apache.maven.plugins
576 maven-checkstyle-plugin
584 </pluginExecutionFilter>
590 <pluginExecutionFilter>
595 properties-maven-plugin
602 set-system-properties
605 </pluginExecutionFilter>
611 </lifecycleMappingMetadata>