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 <docker.registry>nexus3.onap.org:10001</docker.registry>
35 <build.number>local</build.number>
36 <kube.namespace>TBD</kube.namespace>
37 <service.account>TBD</service.account>
38 <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
39 <maven.compiler.source>1.8</maven.compiler.source>
40 <maven.compiler.target>1.8</maven.compiler.target>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <sdk.java.rest>6.2.0.11</sdk.java.rest>
43 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
44 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
45 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
46 <docker.push.phase>deploy</docker.push.phase>
47 <docker.verbose>true</docker.verbose>
48 <ccsdk.project.version>${project.version}</ccsdk.project.version>
49 <image.name>onap/ccsdk-apps-ms-neng</image.name>
50 <timestamp>${maven.build.timestamp}</timestamp>
51 <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
52 <ccsdk.project.version>${project.version}</ccsdk.project.version>
53 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
60 <build.profile.id>all-tests</build.profile.id>
61 <skip.integration.tests>false</skip.integration.tests>
62 <skip.unit.tests>false</skip.unit.tests>
69 <id>integration-test</id>
71 <build.profile.id>integration-test</build.profile.id>
72 <skip.integration.tests>false</skip.integration.tests>
73 <skip.unit.tests>true</skip.unit.tests>
81 <name>blackduck-scan</name>
87 <groupId>com.blackducksoftware.integration</groupId>
88 <artifactId>hub-maven-plugin</artifactId>
89 <version>1.4.0</version>
90 <inherited>false</inherited>
92 <hubProjectName>${project.name}</hubProjectName>
93 <outputDirectory>${project.basedir}</outputDirectory>
97 <id>create-bdio-file</id>
98 <phase>package</phase>
100 <goal>createHubOutput</goal>
114 <artifactId>maven-resources-plugin</artifactId>
115 <version>2.6</version>
118 <id>copy-dockerfile</id>
120 <goal>copy-resources</goal>
122 <phase>validate</phase>
124 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
127 <directory>src/main/docker</directory>
129 <include>startService.sh</include>
130 <include>Dockerfile</include>
132 <filtering>true</filtering>
138 <id>copy-app-jar</id>
140 <goal>copy-resources</goal>
142 <phase>validate</phase>
144 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
147 <directory>${basedir}/target/</directory>
149 <include>NetworkElementNameGen.jar</include>
151 <filtering>false</filtering>
159 <goal>copy-resources</goal>
161 <phase>validate</phase>
163 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
166 <directory>${basedir}/opt/etc/config</directory>
170 <filtering>true</filtering>
180 <groupId>io.fabric8</groupId>
181 <artifactId>docker-maven-plugin</artifactId>
182 <version>0.16.5</version>
183 <inherited>false</inherited>
187 <name>${image.name}</name>
189 <cleanup>try</cleanup>
190 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
192 <tag>${project.docker.latestminortag.version}</tag>
193 <tag>${project.docker.latestfulltag.version}</tag>
194 <tag>${project.docker.latesttagtimestamp.version}</tag>
199 <verbose>true</verbose>
203 <id>generate-images</id>
204 <phase>package</phase>
211 <phase>${docker.push.phase}</phase>
233 <groupId>org.onap.ccsdk.parent</groupId>
234 <artifactId>spring-boot-starter-parent</artifactId>
235 <version>1.5.2-SNAPSHOT</version>
243 <groupId>io.swagger</groupId>
244 <artifactId>swagger-core</artifactId>
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-starter-web</artifactId>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-starter-jersey</artifactId>
255 <groupId>org.springframework.boot</groupId>
256 <artifactId>spring-boot-starter-actuator</artifactId>
259 <groupId>org.springframework.boot</groupId>
260 <artifactId>spring-boot-loader-tools</artifactId>
263 <groupId>org.springframework.boot</groupId>
264 <artifactId>spring-boot-starter-test</artifactId>
268 <groupId>org.springframework.boot</groupId>
269 <artifactId>spring-boot-starter-tomcat</artifactId>
270 <scope>compile</scope>
273 <groupId>org.springframework.boot</groupId>
274 <artifactId>spring-boot-starter-data-jpa</artifactId>
275 <scope>compile</scope>
278 <groupId>org.apache.httpcomponents</groupId>
279 <artifactId>httpclient</artifactId>
282 <groupId>javax.ws.rs</groupId>
283 <artifactId>javax.ws.rs-api</artifactId>
286 <groupId>commons-lang</groupId>
287 <artifactId>commons-lang</artifactId>
290 <groupId>org.liquibase</groupId>
291 <artifactId>liquibase-core</artifactId>
294 <groupId>org.mariadb.jdbc</groupId>
295 <artifactId>mariadb-java-client</artifactId>
298 <groupId>com.h2database</groupId>
299 <artifactId>h2</artifactId>
302 <groupId>org.springframework.boot</groupId>
303 <artifactId>spring-boot-configuration-processor</artifactId>
304 <optional>true</optional>
307 <groupId>org.springframework</groupId>
308 <artifactId>spring-test</artifactId>
312 <groupId>org.springframework</groupId>
313 <artifactId>spring-aop</artifactId>
316 <groupId>org.springframework</groupId>
317 <artifactId>spring-beans</artifactId>
320 <groupId>org.springframework</groupId>
321 <artifactId>spring-beans</artifactId>
324 <groupId>org.springframework</groupId>
325 <artifactId>spring-context</artifactId>
328 <groupId>org.springframework</groupId>
329 <artifactId>spring-core</artifactId>
332 <groupId>org.springframework</groupId>
333 <artifactId>spring-expression</artifactId>
336 <groupId>org.springframework</groupId>
337 <artifactId>spring-web</artifactId>
341 <groupId>org.elasticsearch</groupId>
342 <artifactId>elasticsearch</artifactId>
343 <version>5.6.3</version>
346 <groupId>io.searchbox</groupId>
347 <artifactId>jest</artifactId>
348 <version>5.3.3</version>
353 <finalName>NetworkElementNameGen</finalName>
357 <groupId>org.codehaus.groovy.maven</groupId>
358 <artifactId>gmaven-plugin</artifactId>
359 <version>1.0</version>
362 <phase>validate</phase>
367 <source>${basedir}/../../TagVersion.groovy</source>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-surefire-plugin</artifactId>
376 <argLine>${surefireArgLine}</argLine>
377 <skipTests>${skip.unit.tests}</skipTests>
379 <exclude>**/IT*.java</exclude>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-failsafe-plugin</artifactId>
388 <id>integration-tests</id>
390 <goal>integration-test</goal>
394 <argLine>${failsafeArgLine}</argLine>
395 <skipTests>${skip.integration.tests}</skipTests>
401 <artifactId>maven-dependency-plugin</artifactId>
404 <groupId>com.github.kongchen</groupId>
405 <artifactId>swagger-maven-plugin</artifactId>
406 <version>3.1.3</version>
410 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
411 <basePath>/web</basePath>
413 <title>${project.artifactId} Service</title>
414 <version>${project.version}</version>
416 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
422 <phase>package</phase>
424 <goal>generate</goal>
431 <artifactId>exec-maven-plugin</artifactId>
432 <groupId>org.codehaus.mojo</groupId>
436 <groupId>org.springframework.boot</groupId>
437 <artifactId>spring-boot-maven-plugin</artifactId>
441 <goal>repackage</goal>
450 <directory>src/main/resources</directory>
451 <filtering>true</filtering>
453 <include>**/*</include>
457 <directory>opt/aai/keystore</directory>
458 <targetPath>../opt/aai/keystore</targetPath>
459 <filtering>false</filtering>
461 <include>**/*</include>
466 <directory>opt/etc/config</directory>
467 <targetPath>../opt/etc/config</targetPath>
468 <filtering>true</filtering>
470 <include>**/*</include>
474 <directory>opt/etc/keystore</directory>
475 <targetPath>../opt/etc/keystore</targetPath>
476 <filtering>false</filtering>
478 <include>**/*</include>
482 <directory>opt/etc/truststore</directory>
483 <targetPath>../opt/etc/truststore</targetPath>
484 <filtering>false</filtering>
486 <include>**/*</include>
492 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
494 <groupId>org.eclipse.m2e</groupId>
495 <artifactId>lifecycle-mapping</artifactId>
496 <version>1.0.0</version>
498 <lifecycleMappingMetadata>
501 <pluginExecutionFilter>
503 org.apache.maven.plugins
506 maven-checkstyle-plugin
514 </pluginExecutionFilter>
520 <pluginExecutionFilter>
525 properties-maven-plugin
532 set-system-properties
535 </pluginExecutionFilter>
541 </lifecycleMappingMetadata>