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>
63 <build.profile.id>all-tests</build.profile.id>
64 <skip.integration.tests>false</skip.integration.tests>
65 <skip.unit.tests>false</skip.unit.tests>
72 <id>integration-test</id>
74 <build.profile.id>integration-test</build.profile.id>
75 <skip.integration.tests>false</skip.integration.tests>
76 <skip.unit.tests>true</skip.unit.tests>
84 <name>blackduck-scan</name>
90 <groupId>com.blackducksoftware.integration</groupId>
91 <artifactId>hub-maven-plugin</artifactId>
92 <version>1.4.0</version>
93 <inherited>false</inherited>
95 <hubProjectName>${project.name}</hubProjectName>
96 <outputDirectory>${project.basedir}</outputDirectory>
100 <id>create-bdio-file</id>
101 <phase>package</phase>
103 <goal>createHubOutput</goal>
122 <groupId>org.onap.ccsdk.parent</groupId>
123 <artifactId>odlparent-lite</artifactId>
124 <version>1.1.0-SNAPSHOT</version>
128 <dependencyManagement>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-starter-parent</artifactId>
133 <version>${springboot.version}</version>
135 <scope>import</scope>
138 </dependencyManagement>
142 <groupId>io.swagger</groupId>
143 <artifactId>swagger-core</artifactId>
144 <version>1.5.20</version>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-starter-web</artifactId>
149 <version>${springboot.version}</version>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-jersey</artifactId>
154 <version>${springboot.version}</version>
157 <groupId>org.springframework.boot</groupId>
158 <artifactId>spring-boot-starter-actuator</artifactId>
159 <version>${springboot.version}</version>
162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-loader-tools</artifactId>
164 <version>${springboot.version}</version>
167 <groupId>org.springframework.boot</groupId>
168 <artifactId>spring-boot-starter-test</artifactId>
169 <version>${springboot.version}</version>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-tomcat</artifactId>
175 <version>${springboot.version}</version>
176 <scope>compile</scope>
179 <groupId>org.springframework.boot</groupId>
180 <artifactId>spring-boot-starter-data-jpa</artifactId>
181 <version>${springboot.version}</version>
182 <scope>compile</scope>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpclient</artifactId>
189 <groupId>javax.ws.rs</groupId>
190 <artifactId>javax.ws.rs-api</artifactId>
191 <version>2.1</version>
194 <groupId>commons-lang</groupId>
195 <artifactId>commons-lang</artifactId>
196 <version>2.6</version>
199 <groupId>org.liquibase</groupId>
200 <artifactId>liquibase-core</artifactId>
203 <groupId>org.wisdom-framework</groupId>
204 <artifactId>mysql-connector-java</artifactId>
205 <version>5.1.34_1</version>
208 <groupId>com.h2database</groupId>
209 <artifactId>h2</artifactId>
212 <groupId>org.springframework.boot</groupId>
213 <artifactId>spring-boot-configuration-processor</artifactId>
214 <version>${springboot.version}</version>
215 <optional>true</optional>
218 <groupId>org.springframework</groupId>
219 <artifactId>spring-test</artifactId>
220 <version>${spring.version}</version>
224 <groupId>org.springframework</groupId>
225 <artifactId>spring-aop</artifactId>
226 <version>${spring.version}</version>
229 <groupId>org.springframework</groupId>
230 <artifactId>spring-beans</artifactId>
233 <groupId>org.springframework</groupId>
234 <artifactId>spring-beans</artifactId>
235 <version>${spring.version}</version>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-context</artifactId>
240 <version>${spring.version}</version>
243 <groupId>org.springframework</groupId>
244 <artifactId>spring-core</artifactId>
245 <version>${spring.version}</version>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-expression</artifactId>
250 <version>${spring.version}</version>
253 <groupId>org.springframework</groupId>
254 <artifactId>spring-web</artifactId>
255 <version>${spring.version}</version>
260 <finalName>NetworkElementNameGen</finalName>
263 <groupId>org.jacoco</groupId>
264 <artifactId>jacoco-maven-plugin</artifactId>
265 <version>0.7.5.201505241946</version>
268 <id>pre-unit-test</id>
270 <goal>prepare-agent</goal>
273 <destFile>${sonar.jacoco.reportPath}</destFile>
274 <propertyName>surefireArgLine</propertyName>
278 <id>post-unit-test</id>
284 <dataFile>${sonar.jacoco.reportPath}</dataFile>
285 <outputDirectory>${jacoco.path}</outputDirectory>
289 <id>pre-integration-test</id>
290 <phase>pre-integration-test</phase>
292 <goal>prepare-agent</goal>
295 <destFile>${sonar.jacoco.itReportPath}</destFile>
296 <propertyName>failsafeArgLine</propertyName>
300 <id>post-integration-test</id>
301 <phase>post-integration-test</phase>
306 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
307 <outputDirectory>${jacoco.itPath}</outputDirectory>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-surefire-plugin</artifactId>
316 <argLine>${surefireArgLine}</argLine>
317 <skipTests>${skip.unit.tests}</skipTests>
319 <exclude>**/IT*.java</exclude>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-failsafe-plugin</artifactId>
328 <id>integration-tests</id>
330 <goal>integration-test</goal>
334 <argLine>${failsafeArgLine}</argLine>
335 <skipTests>${skip.integration.tests}</skipTests>
341 <artifactId>maven-dependency-plugin</artifactId>
344 <groupId>com.github.kongchen</groupId>
345 <artifactId>swagger-maven-plugin</artifactId>
346 <version>3.1.3</version>
350 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
351 <basePath>/web</basePath>
353 <title>${project.artifactId} Service</title>
354 <version>${project.version}</version>
356 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
362 <phase>package</phase>
364 <goal>generate</goal>
371 <artifactId>exec-maven-plugin</artifactId>
372 <groupId>org.codehaus.mojo</groupId>
376 <groupId>io.fabric8</groupId>
377 <artifactId>docker-maven-plugin</artifactId>
378 <inherited>false</inherited>
380 <verbose>false</verbose>
383 <name>onap/ccsdk-apps-ms-neng</name>
385 <cleanup>try</cleanup>
386 <dockerFileDir>${basedir}/src/main/docker</dockerFileDir>
387 <dockerFile>Dockerfile</dockerFile>
389 <tag>${project.version}</tag>
393 <targetDir>/</targetDir>
397 <source>${project.build.directory}/${build.finalName}.${project.packaging}</source>
401 <directory>${basedir}/opt/etc</directory>
402 <outputDirectory>opt/etc</outputDirectory>
404 <include>**</include>
417 <id>generate-images</id>
418 <phase>package</phase>
426 <phase>deploy</phase>
437 <groupId>com.spotify</groupId>
438 <artifactId>docker-maven-plugin</artifactId>
439 <version>0.4.11</version>
441 <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}:${project.version}</imageName>
442 <dockerDirectory>src/main/docker</dockerDirectory>
443 <serverId>docker-hub</serverId>
444 <registryUrl>https://${docker.registry}</registryUrl>
446 <imageTag>${project.version}</imageTag>
447 <imageTag>latest</imageTag>
449 <forceTags>true</forceTags>
452 <targetPath>/</targetPath>
453 <directory>${project.build.directory}</directory>
454 <include>${project.build.finalName}.jar</include>
457 <targetPath>/</targetPath>
458 <directory>${project.build.directory}</directory>
459 <include>opt/etc/config/*</include>
462 <targetPath>/</targetPath>
463 <directory>${project.build.directory}</directory>
464 <include>opt/etc/keystore/*</include>
467 <targetPath>/</targetPath>
468 <directory>${project.build.directory}</directory>
469 <include>opt/etc/truststore/*</include>
472 <targetPath>/</targetPath>
473 <directory>${project.build.directory}</directory>
474 <include>opt/aai/keystore/*</include>
477 <targetPath>/</targetPath>
478 <directory>${project.build.directory}</directory>
479 <include>etc/*</include>
485 <groupId>org.springframework.boot</groupId>
486 <artifactId>spring-boot-maven-plugin</artifactId>
487 <version>${springboot.version}</version>
491 <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>