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.0-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 <image.name>onap/ccsdk-apps-ms-neng</image.name>
51 <timestamp>${maven.build.timestamp}</timestamp>
52 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
53 <ccsdk.project.version>${project.version}</ccsdk.project.version>
54 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
61 <build.profile.id>all-tests</build.profile.id>
62 <skip.integration.tests>false</skip.integration.tests>
63 <skip.unit.tests>false</skip.unit.tests>
70 <id>integration-test</id>
72 <build.profile.id>integration-test</build.profile.id>
73 <skip.integration.tests>false</skip.integration.tests>
74 <skip.unit.tests>true</skip.unit.tests>
82 <name>blackduck-scan</name>
88 <groupId>com.blackducksoftware.integration</groupId>
89 <artifactId>hub-maven-plugin</artifactId>
90 <version>1.4.0</version>
91 <inherited>false</inherited>
93 <hubProjectName>${project.name}</hubProjectName>
94 <outputDirectory>${project.basedir}</outputDirectory>
98 <id>create-bdio-file</id>
99 <phase>package</phase>
101 <goal>createHubOutput</goal>
115 <artifactId>maven-resources-plugin</artifactId>
116 <version>2.6</version>
119 <id>copy-dockerfile</id>
121 <goal>copy-resources</goal>
123 <phase>validate</phase>
125 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
128 <directory>src/main/docker</directory>
130 <include>startService.sh</include>
131 <include>Dockerfile</include>
133 <filtering>true</filtering>
139 <id>copy-app-jar</id>
141 <goal>copy-resources</goal>
143 <phase>package</phase>
145 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
148 <directory>${basedir}/target/</directory>
150 <include>NetworkElementNameGen.jar</include>
152 <filtering>false</filtering>
160 <goal>copy-resources</goal>
162 <phase>validate</phase>
164 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
167 <directory>${basedir}/opt/etc/config</directory>
171 <filtering>true</filtering>
181 <groupId>io.fabric8</groupId>
182 <artifactId>docker-maven-plugin</artifactId>
183 <version>0.28.0</version>
184 <inherited>false</inherited>
188 <name>${image.name}</name>
190 <cleanup>try</cleanup>
191 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
193 <tag>${project.docker.latestminortag.version}</tag>
194 <tag>${project.docker.latestfulltag.version}</tag>
195 <tag>${project.docker.latesttagtimestamp.version}</tag>
200 <verbose>true</verbose>
204 <id>generate-images</id>
205 <phase>package</phase>
212 <phase>${docker.push.phase}</phase>
234 <groupId>org.onap.ccsdk.parent</groupId>
235 <artifactId>spring-boot-starter-parent</artifactId>
236 <version>2.1.0</version>
244 <groupId>io.swagger</groupId>
245 <artifactId>swagger-core</artifactId>
248 <groupId>org.springframework.boot</groupId>
249 <artifactId>spring-boot-starter-web</artifactId>
252 <groupId>org.springframework.boot</groupId>
253 <artifactId>spring-boot-starter-jersey</artifactId>
256 <groupId>org.springframework.boot</groupId>
257 <artifactId>spring-boot-starter-actuator</artifactId>
260 <groupId>org.springframework.boot</groupId>
261 <artifactId>spring-boot-loader-tools</artifactId>
264 <groupId>org.springframework.boot</groupId>
265 <artifactId>spring-boot-starter-test</artifactId>
269 <groupId>org.springframework.boot</groupId>
270 <artifactId>spring-boot-starter-tomcat</artifactId>
271 <scope>compile</scope>
274 <groupId>org.springframework.boot</groupId>
275 <artifactId>spring-boot-starter-data-jpa</artifactId>
276 <scope>compile</scope>
279 <groupId>org.apache.httpcomponents</groupId>
280 <artifactId>httpclient</artifactId>
283 <groupId>javax.ws.rs</groupId>
284 <artifactId>javax.ws.rs-api</artifactId>
287 <groupId>commons-lang</groupId>
288 <artifactId>commons-lang</artifactId>
291 <groupId>org.liquibase</groupId>
292 <artifactId>liquibase-core</artifactId>
295 <groupId>org.mariadb.jdbc</groupId>
296 <artifactId>mariadb-java-client</artifactId>
299 <groupId>com.h2database</groupId>
300 <artifactId>h2</artifactId>
303 <groupId>org.springframework.boot</groupId>
304 <artifactId>spring-boot-configuration-processor</artifactId>
305 <optional>true</optional>
308 <groupId>org.springframework</groupId>
309 <artifactId>spring-test</artifactId>
313 <groupId>org.springframework</groupId>
314 <artifactId>spring-aop</artifactId>
317 <groupId>org.springframework</groupId>
318 <artifactId>spring-beans</artifactId>
321 <groupId>org.springframework</groupId>
322 <artifactId>spring-beans</artifactId>
325 <groupId>org.springframework</groupId>
326 <artifactId>spring-context</artifactId>
329 <groupId>org.springframework</groupId>
330 <artifactId>spring-core</artifactId>
333 <groupId>org.springframework</groupId>
334 <artifactId>spring-expression</artifactId>
337 <groupId>org.springframework</groupId>
338 <artifactId>spring-web</artifactId>
342 <groupId>org.elasticsearch</groupId>
343 <artifactId>elasticsearch</artifactId>
344 <version>7.6.1</version>
347 <groupId>io.searchbox</groupId>
348 <artifactId>jest</artifactId>
349 <version>5.3.3</version>
354 <finalName>NetworkElementNameGen</finalName>
358 <groupId>org.codehaus.groovy.maven</groupId>
359 <artifactId>gmaven-plugin</artifactId>
360 <version>1.0</version>
363 <phase>validate</phase>
368 <source>${basedir}/../../TagVersion.groovy</source>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-surefire-plugin</artifactId>
377 <argLine>${surefireArgLine}</argLine>
378 <skipTests>${skip.unit.tests}</skipTests>
380 <exclude>**/IT*.java</exclude>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-failsafe-plugin</artifactId>
389 <id>integration-tests</id>
391 <goal>integration-test</goal>
395 <argLine>${failsafeArgLine}</argLine>
396 <skipTests>${skip.integration.tests}</skipTests>
402 <artifactId>maven-dependency-plugin</artifactId>
405 <groupId>com.github.kongchen</groupId>
406 <artifactId>swagger-maven-plugin</artifactId>
407 <version>3.1.3</version>
411 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
412 <basePath>/web</basePath>
414 <title>${project.artifactId} Service</title>
415 <version>${project.version}</version>
417 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
423 <phase>package</phase>
425 <goal>generate</goal>
432 <artifactId>exec-maven-plugin</artifactId>
433 <groupId>org.codehaus.mojo</groupId>
437 <groupId>org.springframework.boot</groupId>
438 <artifactId>spring-boot-maven-plugin</artifactId>
442 <goal>repackage</goal>
451 <directory>src/main/resources</directory>
452 <filtering>true</filtering>
454 <include>**/*</include>
458 <directory>opt/aai/keystore</directory>
459 <targetPath>../opt/aai/keystore</targetPath>
460 <filtering>false</filtering>
462 <include>**/*</include>
467 <directory>opt/etc/config</directory>
468 <targetPath>../opt/etc/config</targetPath>
469 <filtering>true</filtering>
471 <include>**/*</include>
475 <directory>opt/etc/keystore</directory>
476 <targetPath>../opt/etc/keystore</targetPath>
477 <filtering>false</filtering>
479 <include>**/*</include>
483 <directory>opt/etc/truststore</directory>
484 <targetPath>../opt/etc/truststore</targetPath>
485 <filtering>false</filtering>
487 <include>**/*</include>
493 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
495 <groupId>org.eclipse.m2e</groupId>
496 <artifactId>lifecycle-mapping</artifactId>
497 <version>1.0.0</version>
499 <lifecycleMappingMetadata>
502 <pluginExecutionFilter>
504 org.apache.maven.plugins
507 maven-checkstyle-plugin
515 </pluginExecutionFilter>
521 <pluginExecutionFilter>
526 properties-maven-plugin
533 set-system-properties
536 </pluginExecutionFilter>
542 </lifecycleMappingMetadata>