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: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 <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.build.phase>deploy</docker.build.phase>
60 <docker.verbose>true</docker.verbose>
61 <ccsdk.project.version>${project.version}</ccsdk.project.version>
68 <build.profile.id>all-tests</build.profile.id>
69 <skip.integration.tests>false</skip.integration.tests>
70 <skip.unit.tests>false</skip.unit.tests>
77 <id>integration-test</id>
79 <build.profile.id>integration-test</build.profile.id>
80 <skip.integration.tests>false</skip.integration.tests>
81 <skip.unit.tests>true</skip.unit.tests>
89 <name>blackduck-scan</name>
95 <groupId>com.blackducksoftware.integration</groupId>
96 <artifactId>hub-maven-plugin</artifactId>
97 <version>1.4.0</version>
98 <inherited>false</inherited>
100 <hubProjectName>${project.name}</hubProjectName>
101 <outputDirectory>${project.basedir}</outputDirectory>
105 <id>create-bdio-file</id>
106 <phase>package</phase>
108 <goal>createHubOutput</goal>
122 <groupId>com.spotify</groupId>
123 <artifactId>docker-maven-plugin</artifactId>
124 <version>0.4.11</version>
128 <phase>${docker.build.phase}</phase>
136 <imageName>${docker.registry}/onap/ccsdk-apps-ms-neng:${project.version}</imageName>
137 <dockerDirectory>${basedir}/target/docker</dockerDirectory>
138 <serverId>docker-hub</serverId>
139 <registryUrl>https://${docker.registry}</registryUrl>
141 <imageTag>${project.version}</imageTag>
142 <imageTag>${project.version}-STAGING-${maven.build.timestamp}</imageTag>
143 <imageTag>${project.docker.latesttag.version}</imageTag>
145 <forceTags>true</forceTags>
148 <targetPath>/</targetPath>
149 <directory>${project.build.directory}</directory>
150 <include>${project.build.finalName}.jar</include>
153 <targetPath>/</targetPath>
154 <directory>${project.build.directory}</directory>
155 <include>opt/etc/config/*</include>
158 <targetPath>/</targetPath>
159 <directory>${project.build.directory}</directory>
160 <include>opt/etc/keystore/*</include>
163 <targetPath>/</targetPath>
164 <directory>${project.build.directory}</directory>
165 <include>opt/etc/truststore/*</include>
168 <targetPath>/</targetPath>
169 <directory>${project.build.directory}</directory>
170 <include>opt/aai/keystore/*</include>
173 <targetPath>/</targetPath>
174 <directory>${project.build.directory}</directory>
175 <include>etc/*</include>
194 <groupId>org.onap.ccsdk.parent</groupId>
195 <artifactId>odlparent-lite</artifactId>
196 <version>1.1.0-SNAPSHOT</version>
200 <dependencyManagement>
203 <groupId>org.springframework.boot</groupId>
204 <artifactId>spring-boot-starter-parent</artifactId>
205 <version>${springboot.version}</version>
207 <scope>import</scope>
210 </dependencyManagement>
214 <groupId>io.swagger</groupId>
215 <artifactId>swagger-core</artifactId>
216 <version>1.5.20</version>
219 <groupId>org.springframework.boot</groupId>
220 <artifactId>spring-boot-starter-web</artifactId>
221 <version>${springboot.version}</version>
224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-starter-jersey</artifactId>
226 <version>${springboot.version}</version>
229 <groupId>org.springframework.boot</groupId>
230 <artifactId>spring-boot-starter-actuator</artifactId>
231 <version>${springboot.version}</version>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-loader-tools</artifactId>
236 <version>${springboot.version}</version>
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-starter-test</artifactId>
241 <version>${springboot.version}</version>
245 <groupId>org.springframework.boot</groupId>
246 <artifactId>spring-boot-starter-tomcat</artifactId>
247 <version>${springboot.version}</version>
248 <scope>compile</scope>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-starter-data-jpa</artifactId>
253 <version>${springboot.version}</version>
254 <scope>compile</scope>
257 <groupId>org.apache.httpcomponents</groupId>
258 <artifactId>httpclient</artifactId>
261 <groupId>javax.ws.rs</groupId>
262 <artifactId>javax.ws.rs-api</artifactId>
263 <version>2.1</version>
266 <groupId>commons-lang</groupId>
267 <artifactId>commons-lang</artifactId>
268 <version>2.6</version>
271 <groupId>org.liquibase</groupId>
272 <artifactId>liquibase-core</artifactId>
275 <groupId>org.mariadb.jdbc</groupId>
276 <artifactId>mariadb-java-client</artifactId>
277 <version>${mariadb.connector.version}</version>
280 <groupId>com.h2database</groupId>
281 <artifactId>h2</artifactId>
284 <groupId>org.springframework.boot</groupId>
285 <artifactId>spring-boot-configuration-processor</artifactId>
286 <version>${springboot.version}</version>
287 <optional>true</optional>
290 <groupId>org.springframework</groupId>
291 <artifactId>spring-test</artifactId>
292 <version>${spring.version}</version>
296 <groupId>org.springframework</groupId>
297 <artifactId>spring-aop</artifactId>
298 <version>${spring.version}</version>
301 <groupId>org.springframework</groupId>
302 <artifactId>spring-beans</artifactId>
305 <groupId>org.springframework</groupId>
306 <artifactId>spring-beans</artifactId>
307 <version>${spring.version}</version>
310 <groupId>org.springframework</groupId>
311 <artifactId>spring-context</artifactId>
312 <version>${spring.version}</version>
315 <groupId>org.springframework</groupId>
316 <artifactId>spring-core</artifactId>
317 <version>${spring.version}</version>
320 <groupId>org.springframework</groupId>
321 <artifactId>spring-expression</artifactId>
322 <version>${spring.version}</version>
325 <groupId>org.springframework</groupId>
326 <artifactId>spring-web</artifactId>
327 <version>${spring.version}</version>
332 <finalName>NetworkElementNameGen</finalName>
335 <groupId>org.codehaus.groovy.maven</groupId>
336 <artifactId>gmaven-plugin</artifactId>
337 <version>1.0</version>
340 <phase>validate</phase>
346 println project.properties['ccsdk.project.version'];
348 if (project.properties['ccsdk.project.version'] != null ) {
349 versionArray = project.properties['ccsdk.project.version'].split('\\.');
352 if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT"))
354 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
356 project.properties['project.docker.latesttag.version']=versionArray[0]+'.' + versionArray[1]+"-STAGING-latest";
359 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
366 <groupId>org.jacoco</groupId>
367 <artifactId>jacoco-maven-plugin</artifactId>
368 <version>0.7.5.201505241946</version>
371 <id>pre-unit-test</id>
373 <goal>prepare-agent</goal>
376 <destFile>${sonar.jacoco.reportPath}</destFile>
377 <propertyName>surefireArgLine</propertyName>
381 <id>post-unit-test</id>
387 <dataFile>${sonar.jacoco.reportPath}</dataFile>
388 <outputDirectory>${jacoco.path}</outputDirectory>
392 <id>pre-integration-test</id>
393 <phase>pre-integration-test</phase>
395 <goal>prepare-agent</goal>
398 <destFile>${sonar.jacoco.itReportPath}</destFile>
399 <propertyName>failsafeArgLine</propertyName>
403 <id>post-integration-test</id>
404 <phase>post-integration-test</phase>
409 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
410 <outputDirectory>${jacoco.itPath}</outputDirectory>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-surefire-plugin</artifactId>
419 <argLine>${surefireArgLine}</argLine>
420 <skipTests>${skip.unit.tests}</skipTests>
422 <exclude>**/IT*.java</exclude>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-failsafe-plugin</artifactId>
431 <id>integration-tests</id>
433 <goal>integration-test</goal>
437 <argLine>${failsafeArgLine}</argLine>
438 <skipTests>${skip.integration.tests}</skipTests>
444 <artifactId>maven-dependency-plugin</artifactId>
447 <groupId>com.github.kongchen</groupId>
448 <artifactId>swagger-maven-plugin</artifactId>
449 <version>3.1.3</version>
453 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
454 <basePath>/web</basePath>
456 <title>${project.artifactId} Service</title>
457 <version>${project.version}</version>
459 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
465 <phase>package</phase>
467 <goal>generate</goal>
474 <artifactId>exec-maven-plugin</artifactId>
475 <groupId>org.codehaus.mojo</groupId>
479 <groupId>io.fabric8</groupId>
480 <artifactId>docker-maven-plugin</artifactId>
481 <inherited>false</inherited>
483 <verbose>false</verbose>
486 <name>onap/ccsdk-apps-ms-neng</name>
488 <cleanup>try</cleanup>
489 <dockerFileDir>${basedir}/src/main/docker</dockerFileDir>
490 <dockerFile>Dockerfile</dockerFile>
492 <tag>${project.version}</tag>
496 <targetDir>/</targetDir>
500 <source>${project.build.directory}/${build.finalName}.${project.packaging}</source>
504 <directory>${basedir}/opt/etc</directory>
505 <outputDirectory>opt/etc</outputDirectory>
507 <include>**</include>
520 <id>generate-images</id>
521 <phase>package</phase>
529 <phase>deploy</phase>
541 <groupId>org.springframework.boot</groupId>
542 <artifactId>spring-boot-maven-plugin</artifactId>
543 <version>${springboot.version}</version>
547 <goal>repackage</goal>
555 <directory>src/main/docker</directory>
556 <targetPath>../docker</targetPath>
557 <filtering>true</filtering>
559 <include>**/*</include>
563 <directory>src/main/resources</directory>
564 <filtering>true</filtering>
566 <include>**/*</include>
570 <directory>opt/aai/keystore</directory>
571 <targetPath>../opt/aai/keystore</targetPath>
572 <filtering>false</filtering>
574 <include>**/*</include>
579 <directory>opt/etc/config</directory>
580 <targetPath>../opt/etc/config</targetPath>
581 <filtering>true</filtering>
583 <include>**/*</include>
587 <directory>opt/etc/keystore</directory>
588 <targetPath>../opt/etc/keystore</targetPath>
589 <filtering>false</filtering>
591 <include>**/*</include>
595 <directory>opt/etc/truststore</directory>
596 <targetPath>../opt/etc/truststore</targetPath>
597 <filtering>false</filtering>
599 <include>**/*</include>
605 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
607 <groupId>org.eclipse.m2e</groupId>
608 <artifactId>lifecycle-mapping</artifactId>
609 <version>1.0.0</version>
611 <lifecycleMappingMetadata>
614 <pluginExecutionFilter>
616 org.apache.maven.plugins
619 maven-checkstyle-plugin
627 </pluginExecutionFilter>
633 <pluginExecutionFilter>
638 properties-maven-plugin
645 set-system-properties
648 </pluginExecutionFilter>
654 </lifecycleMappingMetadata>