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=========================================================
22 <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">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.ccsdk.apps</groupId>
26 <artifactId>ccsdk-apps-ms-neng</artifactId>
27 <version>1.1.1-SNAPSHOT</version>
28 <name>Naming Generation</name>
31 <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory>
32 <icd.file>service.json</icd.file>
33 <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package>
34 <java.version>1.8</java.version>
35 <docker.registry>nexus3.onap.org:10001</docker.registry>
36 <build.number>local</build.number>
37 <kube.namespace>TBD</kube.namespace>
38 <service.account>TBD</service.account>
39 <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
40 <maven.compiler.source>1.8</maven.compiler.source>
41 <maven.compiler.target>1.8</maven.compiler.target>
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
43 <sdk.java.rest>6.2.0.11</sdk.java.rest>
44 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
45 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
46 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
47 <docker.push.phase>deploy</docker.push.phase>
48 <docker.verbose>true</docker.verbose>
49 <ccsdk.project.version>${project.version}</ccsdk.project.version>
50 <base.image.name>onap/ccsdk-alpine-j11-image</base.image.name>
51 <base.image.version>1.1.1</base.image.version>
52 <image.name>onap/ccsdk-apps-ms-neng</image.name>
53 <timestamp>${maven.build.timestamp}</timestamp>
54 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
55 <ccsdk.project.version>${project.version}</ccsdk.project.version>
56 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
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>
117 <artifactId>maven-resources-plugin</artifactId>
118 <version>2.6</version>
121 <id>copy-dockerfile</id>
123 <goal>copy-resources</goal>
125 <phase>validate</phase>
127 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
130 <directory>src/main/docker</directory>
132 <include>startService.sh</include>
133 <include>Dockerfile</include>
135 <filtering>true</filtering>
141 <id>copy-app-jar</id>
143 <goal>copy-resources</goal>
145 <phase>package</phase>
147 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
150 <directory>${basedir}/target/</directory>
152 <include>NetworkElementNameGen.jar</include>
154 <filtering>false</filtering>
162 <goal>copy-resources</goal>
164 <phase>validate</phase>
166 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
169 <directory>${basedir}/opt/etc/config</directory>
173 <filtering>true</filtering>
183 <groupId>io.fabric8</groupId>
184 <artifactId>docker-maven-plugin</artifactId>
185 <version>0.28.0</version>
186 <inherited>false</inherited>
190 <name>${image.name}</name>
192 <cleanup>try</cleanup>
193 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
195 <tag>${project.docker.latestminortag.version}</tag>
196 <tag>${project.docker.latestfulltag.version}</tag>
197 <tag>${project.docker.latesttagtimestamp.version}</tag>
202 <verbose>true</verbose>
206 <id>generate-images</id>
207 <phase>package</phase>
214 <phase>${docker.push.phase}</phase>
236 <groupId>org.onap.ccsdk.parent</groupId>
237 <artifactId>spring-boot-starter-parent</artifactId>
238 <version>2.1.1</version>
246 <groupId>io.swagger</groupId>
247 <artifactId>swagger-core</artifactId>
250 <groupId>org.springframework.boot</groupId>
251 <artifactId>spring-boot-starter-web</artifactId>
254 <groupId>org.springframework.boot</groupId>
255 <artifactId>spring-boot-starter-jersey</artifactId>
258 <groupId>org.springframework.boot</groupId>
259 <artifactId>spring-boot-starter-actuator</artifactId>
262 <groupId>org.springframework.boot</groupId>
263 <artifactId>spring-boot-loader-tools</artifactId>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-starter-test</artifactId>
271 <groupId>org.springframework.boot</groupId>
272 <artifactId>spring-boot-starter-tomcat</artifactId>
273 <scope>compile</scope>
276 <groupId>org.springframework.boot</groupId>
277 <artifactId>spring-boot-starter-data-jpa</artifactId>
278 <scope>compile</scope>
281 <groupId>org.apache.httpcomponents</groupId>
282 <artifactId>httpclient</artifactId>
285 <groupId>javax.ws.rs</groupId>
286 <artifactId>javax.ws.rs-api</artifactId>
289 <groupId>commons-lang</groupId>
290 <artifactId>commons-lang</artifactId>
293 <groupId>org.liquibase</groupId>
294 <artifactId>liquibase-core</artifactId>
297 <groupId>org.mariadb.jdbc</groupId>
298 <artifactId>mariadb-java-client</artifactId>
301 <groupId>com.h2database</groupId>
302 <artifactId>h2</artifactId>
305 <groupId>org.springframework.boot</groupId>
306 <artifactId>spring-boot-configuration-processor</artifactId>
307 <optional>true</optional>
310 <groupId>org.springframework</groupId>
311 <artifactId>spring-test</artifactId>
315 <groupId>org.springframework</groupId>
316 <artifactId>spring-aop</artifactId>
319 <groupId>org.springframework</groupId>
320 <artifactId>spring-beans</artifactId>
323 <groupId>org.springframework</groupId>
324 <artifactId>spring-beans</artifactId>
327 <groupId>org.springframework</groupId>
328 <artifactId>spring-context</artifactId>
331 <groupId>org.springframework</groupId>
332 <artifactId>spring-core</artifactId>
335 <groupId>org.springframework</groupId>
336 <artifactId>spring-expression</artifactId>
339 <groupId>org.springframework</groupId>
340 <artifactId>spring-web</artifactId>
344 <groupId>org.elasticsearch</groupId>
345 <artifactId>elasticsearch</artifactId>
346 <version>7.6.1</version>
349 <groupId>io.searchbox</groupId>
350 <artifactId>jest</artifactId>
351 <version>5.3.3</version>
356 <finalName>NetworkElementNameGen</finalName>
360 <groupId>org.codehaus.groovy.maven</groupId>
361 <artifactId>gmaven-plugin</artifactId>
362 <version>1.0</version>
365 <phase>validate</phase>
370 <source>${basedir}/../../TagVersion.groovy</source>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-surefire-plugin</artifactId>
379 <argLine>${surefireArgLine}</argLine>
380 <skipTests>${skip.unit.tests}</skipTests>
382 <exclude>**/IT*.java</exclude>
387 <groupId>org.apache.maven.plugins</groupId>
388 <artifactId>maven-failsafe-plugin</artifactId>
391 <id>integration-tests</id>
393 <goal>integration-test</goal>
397 <argLine>${failsafeArgLine}</argLine>
398 <skipTests>${skip.integration.tests}</skipTests>
404 <artifactId>maven-dependency-plugin</artifactId>
407 <groupId>com.github.kongchen</groupId>
408 <artifactId>swagger-maven-plugin</artifactId>
409 <version>3.1.3</version>
413 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
414 <basePath>/web</basePath>
416 <title>${project.artifactId} Service</title>
417 <version>${project.version}</version>
419 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
425 <phase>package</phase>
427 <goal>generate</goal>
434 <artifactId>exec-maven-plugin</artifactId>
435 <groupId>org.codehaus.mojo</groupId>
439 <groupId>org.springframework.boot</groupId>
440 <artifactId>spring-boot-maven-plugin</artifactId>
444 <goal>repackage</goal>
453 <directory>src/main/resources</directory>
454 <filtering>true</filtering>
456 <include>**/*</include>
460 <directory>opt/aai/keystore</directory>
461 <targetPath>../opt/aai/keystore</targetPath>
462 <filtering>false</filtering>
464 <include>**/*</include>
469 <directory>opt/etc/config</directory>
470 <targetPath>../opt/etc/config</targetPath>
471 <filtering>true</filtering>
473 <include>**/*</include>
477 <directory>opt/etc/keystore</directory>
478 <targetPath>../opt/etc/keystore</targetPath>
479 <filtering>false</filtering>
481 <include>**/*</include>
485 <directory>opt/etc/truststore</directory>
486 <targetPath>../opt/etc/truststore</targetPath>
487 <filtering>false</filtering>
489 <include>**/*</include>
495 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
497 <groupId>org.eclipse.m2e</groupId>
498 <artifactId>lifecycle-mapping</artifactId>
499 <version>1.0.0</version>
501 <lifecycleMappingMetadata>
504 <pluginExecutionFilter>
506 org.apache.maven.plugins
509 maven-checkstyle-plugin
517 </pluginExecutionFilter>
523 <pluginExecutionFilter>
528 properties-maven-plugin
535 set-system-properties
538 </pluginExecutionFilter>
544 </lifecycleMappingMetadata>