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.7.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 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
46 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
47 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
48 <docker.push.phase>deploy</docker.push.phase>
49 <docker.verbose>true</docker.verbose>
50 <ccsdk.project.version>${project.version}</ccsdk.project.version>
51 <image.name>onap/ccsdk-apps-ms-neng</image.name>
52 <timestamp>${maven.build.timestamp}</timestamp>
53 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
54 <ccsdk.project.version>${project.version}</ccsdk.project.version>
55 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
62 <build.profile.id>all-tests</build.profile.id>
63 <skip.integration.tests>false</skip.integration.tests>
64 <skip.unit.tests>false</skip.unit.tests>
71 <id>integration-test</id>
73 <build.profile.id>integration-test</build.profile.id>
74 <skip.integration.tests>false</skip.integration.tests>
75 <skip.unit.tests>true</skip.unit.tests>
83 <name>blackduck-scan</name>
89 <groupId>com.blackducksoftware.integration</groupId>
90 <artifactId>hub-maven-plugin</artifactId>
91 <version>1.4.0</version>
92 <inherited>false</inherited>
94 <hubProjectName>${project.name}</hubProjectName>
95 <outputDirectory>${project.basedir}</outputDirectory>
99 <id>create-bdio-file</id>
100 <phase>package</phase>
102 <goal>createHubOutput</goal>
116 <artifactId>maven-resources-plugin</artifactId>
117 <version>2.6</version>
120 <id>copy-dockerfile</id>
122 <goal>copy-resources</goal>
124 <phase>validate</phase>
126 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
129 <directory>src/main/docker</directory>
131 <include>startService.sh</include>
132 <include>Dockerfile</include>
134 <filtering>true</filtering>
140 <id>copy-app-jar</id>
142 <goal>copy-resources</goal>
144 <phase>package</phase>
146 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
149 <directory>${basedir}/target/</directory>
151 <include>NetworkElementNameGen.jar</include>
153 <filtering>false</filtering>
161 <goal>copy-resources</goal>
163 <phase>validate</phase>
165 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
168 <directory>${basedir}/opt/etc/config</directory>
172 <filtering>true</filtering>
182 <groupId>io.fabric8</groupId>
183 <artifactId>docker-maven-plugin</artifactId>
184 <version>0.16.5</version>
185 <inherited>false</inherited>
189 <name>${image.name}</name>
191 <cleanup>try</cleanup>
192 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
194 <tag>${project.docker.latestminortag.version}</tag>
195 <tag>${project.docker.latestfulltag.version}</tag>
196 <tag>${project.docker.latesttagtimestamp.version}</tag>
201 <verbose>true</verbose>
205 <id>generate-images</id>
206 <phase>package</phase>
213 <phase>${docker.push.phase}</phase>
235 <groupId>org.onap.ccsdk.parent</groupId>
236 <artifactId>spring-boot-1-starter-parent</artifactId>
237 <version>1.5.2-SNAPSHOT</version>
245 <groupId>io.swagger</groupId>
246 <artifactId>swagger-core</artifactId>
249 <groupId>org.springframework.boot</groupId>
250 <artifactId>spring-boot-starter-web</artifactId>
253 <groupId>org.springframework.boot</groupId>
254 <artifactId>spring-boot-starter-jersey</artifactId>
257 <groupId>org.springframework.boot</groupId>
258 <artifactId>spring-boot-starter-actuator</artifactId>
261 <groupId>org.springframework.boot</groupId>
262 <artifactId>spring-boot-loader-tools</artifactId>
265 <groupId>org.springframework.boot</groupId>
266 <artifactId>spring-boot-starter-test</artifactId>
270 <groupId>org.springframework.boot</groupId>
271 <artifactId>spring-boot-starter-tomcat</artifactId>
272 <scope>compile</scope>
275 <groupId>org.springframework.boot</groupId>
276 <artifactId>spring-boot-starter-data-jpa</artifactId>
277 <scope>compile</scope>
280 <groupId>org.apache.httpcomponents</groupId>
281 <artifactId>httpclient</artifactId>
284 <groupId>javax.ws.rs</groupId>
285 <artifactId>javax.ws.rs-api</artifactId>
288 <groupId>commons-lang</groupId>
289 <artifactId>commons-lang</artifactId>
292 <groupId>org.liquibase</groupId>
293 <artifactId>liquibase-core</artifactId>
296 <groupId>org.mariadb.jdbc</groupId>
297 <artifactId>mariadb-java-client</artifactId>
300 <groupId>com.h2database</groupId>
301 <artifactId>h2</artifactId>
304 <groupId>org.springframework.boot</groupId>
305 <artifactId>spring-boot-configuration-processor</artifactId>
306 <optional>true</optional>
309 <groupId>org.springframework</groupId>
310 <artifactId>spring-test</artifactId>
314 <groupId>org.springframework</groupId>
315 <artifactId>spring-aop</artifactId>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-beans</artifactId>
322 <groupId>org.springframework</groupId>
323 <artifactId>spring-beans</artifactId>
326 <groupId>org.springframework</groupId>
327 <artifactId>spring-context</artifactId>
330 <groupId>org.springframework</groupId>
331 <artifactId>spring-core</artifactId>
334 <groupId>org.springframework</groupId>
335 <artifactId>spring-expression</artifactId>
338 <groupId>org.springframework</groupId>
339 <artifactId>spring-web</artifactId>
344 <finalName>NetworkElementNameGen</finalName>
348 <groupId>org.codehaus.groovy.maven</groupId>
349 <artifactId>gmaven-plugin</artifactId>
350 <version>1.0</version>
353 <phase>validate</phase>
358 <source>${basedir}/../../TagVersion.groovy</source>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-surefire-plugin</artifactId>
367 <argLine>${surefireArgLine}</argLine>
368 <skipTests>${skip.unit.tests}</skipTests>
370 <exclude>**/IT*.java</exclude>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-failsafe-plugin</artifactId>
379 <id>integration-tests</id>
381 <goal>integration-test</goal>
385 <argLine>${failsafeArgLine}</argLine>
386 <skipTests>${skip.integration.tests}</skipTests>
392 <artifactId>maven-dependency-plugin</artifactId>
395 <groupId>com.github.kongchen</groupId>
396 <artifactId>swagger-maven-plugin</artifactId>
397 <version>3.1.3</version>
401 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
402 <basePath>/web</basePath>
404 <title>${project.artifactId} Service</title>
405 <version>${project.version}</version>
407 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
413 <phase>package</phase>
415 <goal>generate</goal>
422 <artifactId>exec-maven-plugin</artifactId>
423 <groupId>org.codehaus.mojo</groupId>
427 <groupId>org.springframework.boot</groupId>
428 <artifactId>spring-boot-maven-plugin</artifactId>
432 <goal>repackage</goal>
441 <directory>src/main/resources</directory>
442 <filtering>true</filtering>
444 <include>**/*</include>
448 <directory>opt/aai/keystore</directory>
449 <targetPath>../opt/aai/keystore</targetPath>
450 <filtering>false</filtering>
452 <include>**/*</include>
457 <directory>opt/etc/config</directory>
458 <targetPath>../opt/etc/config</targetPath>
459 <filtering>true</filtering>
461 <include>**/*</include>
465 <directory>opt/etc/keystore</directory>
466 <targetPath>../opt/etc/keystore</targetPath>
467 <filtering>false</filtering>
469 <include>**/*</include>
473 <directory>opt/etc/truststore</directory>
474 <targetPath>../opt/etc/truststore</targetPath>
475 <filtering>false</filtering>
477 <include>**/*</include>
483 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
485 <groupId>org.eclipse.m2e</groupId>
486 <artifactId>lifecycle-mapping</artifactId>
487 <version>1.0.0</version>
489 <lifecycleMappingMetadata>
492 <pluginExecutionFilter>
494 org.apache.maven.plugins
497 maven-checkstyle-plugin
505 </pluginExecutionFilter>
511 <pluginExecutionFilter>
516 properties-maven-plugin
523 set-system-properties
526 </pluginExecutionFilter>
532 </lifecycleMappingMetadata>