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>
25 <groupId>org.onap.ccsdk.apps</groupId>
26 <artifactId>ccsdk-apps-ms</artifactId>
27 <version>1.5.0-SNAPSHOT</version>
30 <groupId>org.onap.ccsdk.apps</groupId>
31 <artifactId>ccsdk-apps-ms-neng</artifactId>
32 <version>1.5.0-SNAPSHOT</version>
34 <name>Naming Generation</name>
43 <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory>
44 <icd.file>service.json</icd.file>
45 <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package>
46 <java.version>17</java.version>
47 <docker.registry>nexus3.onap.org:10001</docker.registry>
48 <build.number>local</build.number>
49 <kube.namespace>TBD</kube.namespace>
50 <service.account>TBD</service.account>
51 <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
52 <maven.compiler.source>17</maven.compiler.source>
53 <maven.compiler.target>17</maven.compiler.target>
54 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55 <sdk.java.rest>6.2.0.11</sdk.java.rest>
56 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
57 <ccsdk.distribution.version>1.5.0-SNAPSHOT</ccsdk.distribution.version>
58 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
59 <docker.push.phase>deploy</docker.push.phase>
60 <docker.verbose>true</docker.verbose>
61 <ccsdk.project.version>${project.version}</ccsdk.project.version>
62 <base.image.name>onap/ccsdk-alpine-j11-image</base.image.name>
63 <base.image.version>1.5-STAGING-latest</base.image.version>
64 <image.name>onap/ccsdk-apps-ms-neng</image.name>
65 <timestamp>${maven.build.timestamp}</timestamp>
66 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
67 <ccsdk.project.version>${project.version}</ccsdk.project.version>
68 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
74 <groupId>io.swagger</groupId>
75 <artifactId>swagger-core</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-web</artifactId>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-jersey</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-actuator</artifactId>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-loader-tools</artifactId>
94 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-starter-test</artifactId>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-starter-tomcat</artifactId>
101 <scope>compile</scope>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-data-jpa</artifactId>
106 <scope>compile</scope>
109 <groupId>org.apache.httpcomponents</groupId>
110 <artifactId>httpclient</artifactId>
113 <groupId>javax.ws.rs</groupId>
114 <artifactId>javax.ws.rs-api</artifactId>
117 <groupId>commons-lang</groupId>
118 <artifactId>commons-lang</artifactId>
121 <groupId>org.liquibase</groupId>
122 <artifactId>liquibase-core</artifactId>
125 <groupId>org.mariadb.jdbc</groupId>
126 <artifactId>mariadb-java-client</artifactId>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-configuration-processor</artifactId>
131 <optional>true</optional>
134 <groupId>org.springframework</groupId>
135 <artifactId>spring-test</artifactId>
139 <groupId>org.springframework</groupId>
140 <artifactId>spring-aop</artifactId>
143 <groupId>org.springframework</groupId>
144 <artifactId>spring-beans</artifactId>
147 <groupId>org.springframework</groupId>
148 <artifactId>spring-beans</artifactId>
151 <groupId>org.springframework</groupId>
152 <artifactId>spring-context</artifactId>
155 <groupId>org.springframework</groupId>
156 <artifactId>spring-core</artifactId>
159 <groupId>org.springframework</groupId>
160 <artifactId>spring-expression</artifactId>
163 <groupId>org.springframework</groupId>
164 <artifactId>spring-web</artifactId>
168 <groupId>org.elasticsearch</groupId>
169 <artifactId>elasticsearch</artifactId>
170 <version>7.13.4</version>
173 <groupId>io.searchbox</groupId>
174 <artifactId>jest</artifactId>
175 <version>5.3.3</version>
178 <groupId>org.onap.ccsdk.sli.core</groupId>
179 <artifactId>utils-provider</artifactId>
180 <version>${ccsdk.sli.version}</version>
183 <groupId>com.google.code.gson</groupId>
184 <artifactId>gson</artifactId>
185 <version>${gson.version}</version>
188 <groupId>junit</groupId>
189 <artifactId>junit</artifactId>
193 <groupId>com.h2database</groupId>
194 <artifactId>h2</artifactId>
200 <finalName>NetworkElementNameGen</finalName>
203 <directory>src/main/resources</directory>
204 <filtering>true</filtering>
206 <include>**/*</include>
210 <directory>opt/aai/keystore</directory>
211 <targetPath>../opt/aai/keystore</targetPath>
212 <filtering>false</filtering>
214 <include>**/*</include>
219 <directory>opt/etc/config</directory>
220 <targetPath>../opt/etc/config</targetPath>
221 <filtering>true</filtering>
223 <include>**/*</include>
227 <directory>opt/etc/keystore</directory>
228 <targetPath>../opt/etc/keystore</targetPath>
229 <filtering>false</filtering>
231 <include>**/*</include>
235 <directory>opt/etc/truststore</directory>
236 <targetPath>../opt/etc/truststore</targetPath>
237 <filtering>false</filtering>
239 <include>**/*</include>
245 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
247 <groupId>org.eclipse.m2e</groupId>
248 <artifactId>lifecycle-mapping</artifactId>
249 <version>1.0.0</version>
251 <lifecycleMappingMetadata>
254 <pluginExecutionFilter>
256 org.apache.maven.plugins
259 maven-checkstyle-plugin
267 </pluginExecutionFilter>
273 <pluginExecutionFilter>
278 properties-maven-plugin
285 set-system-properties
288 </pluginExecutionFilter>
294 </lifecycleMappingMetadata>
302 <groupId>org.codehaus.gmaven</groupId>
303 <artifactId>groovy-maven-plugin</artifactId>
304 <version>2.1.1</version>
307 <phase>validate</phase>
312 <source>${basedir}/../../TagVersion.groovy</source>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-surefire-plugin</artifactId>
321 <argLine>${surefireArgLine}</argLine>
322 <skipTests>${skip.unit.tests}</skipTests>
324 <exclude>**/IT*.java</exclude>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-failsafe-plugin</artifactId>
333 <id>integration-tests</id>
335 <goal>integration-test</goal>
339 <argLine>${failsafeArgLine}</argLine>
340 <skipTests>${skip.integration.tests}</skipTests>
346 <artifactId>maven-dependency-plugin</artifactId>
349 <groupId>com.github.kongchen</groupId>
350 <artifactId>swagger-maven-plugin</artifactId>
351 <version>3.1.3</version>
355 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
356 <basePath>/web</basePath>
358 <title>${project.artifactId} Service</title>
359 <version>${project.version}</version>
361 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
367 <phase>package</phase>
369 <goal>generate</goal>
376 <groupId>org.codehaus.mojo</groupId>
377 <artifactId>exec-maven-plugin</artifactId>
381 <groupId>org.springframework.boot</groupId>
382 <artifactId>spring-boot-maven-plugin</artifactId>
386 <goal>repackage</goal>
398 <build.profile.id>all-tests</build.profile.id>
399 <skip.integration.tests>false</skip.integration.tests>
400 <skip.unit.tests>false</skip.unit.tests>
407 <id>integration-test</id>
409 <build.profile.id>integration-test</build.profile.id>
410 <skip.integration.tests>false</skip.integration.tests>
411 <skip.unit.tests>true</skip.unit.tests>
419 <name>blackduck-scan</name>
425 <groupId>com.blackducksoftware.integration</groupId>
426 <artifactId>hub-maven-plugin</artifactId>
427 <version>1.4.0</version>
428 <inherited>false</inherited>
430 <hubProjectName>${project.name}</hubProjectName>
431 <outputDirectory>${project.basedir}</outputDirectory>
435 <id>create-bdio-file</id>
436 <phase>package</phase>
438 <goal>createHubOutput</goal>
452 <artifactId>maven-resources-plugin</artifactId>
453 <version>2.6</version>
456 <id>copy-dockerfile</id>
458 <goal>copy-resources</goal>
460 <phase>validate</phase>
462 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
465 <directory>src/main/docker</directory>
467 <include>startService.sh</include>
468 <include>Dockerfile</include>
470 <filtering>true</filtering>
476 <id>copy-app-jar</id>
478 <goal>copy-resources</goal>
480 <phase>package</phase>
482 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
485 <directory>${basedir}/target/</directory>
487 <include>NetworkElementNameGen.jar</include>
489 <filtering>false</filtering>
497 <goal>copy-resources</goal>
499 <phase>validate</phase>
501 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
504 <directory>${basedir}/opt/etc/config</directory>
508 <filtering>true</filtering>
518 <groupId>io.fabric8</groupId>
519 <artifactId>docker-maven-plugin</artifactId>
520 <version>0.28.0</version>
521 <inherited>false</inherited>
525 <name>${image.name}</name>
527 <cleanup>try</cleanup>
528 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
530 <tag>${project.docker.latestminortag.version}</tag>
531 <tag>${project.docker.latestfulltag.version}</tag>
532 <tag>${project.docker.latesttagtimestamp.version}</tag>
537 <verbose>true</verbose>
541 <id>generate-images</id>
542 <phase>package</phase>
549 <phase>${docker.push.phase}</phase>