blob: 7b941a1e03e60d3e67d0db0830f97dc2737fa8f6 [file] [log] [blame]
BT29832ea106c2018-07-22 14:08:34 -06001<?xml version="1.0" encoding="UTF-8"?>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -04002<!--
BT29832ea106c2018-07-22 14:08:34 -06003 * ============LICENSE_START=======================================================
4 * ONAP : CCSDK.apps
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
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -040011 *
BT29832ea106c2018-07-22 14:08:34 -060012 * http://www.apache.org/licenses/LICENSE-2.0
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -040013 *
BT29832ea106c2018-07-22 14:08:34 -060014 * 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=========================================================
20 -->
Timoney, Dan (dt5972)b78d5812019-01-08 14:40:54 -050021<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">
BT29832ea106c2018-07-22 14:08:34 -060022 <modelVersion>4.0.0</modelVersion>
23
BT29833db41ee2018-08-01 20:09:20 -060024 <groupId>org.onap.ccsdk.apps</groupId>
25 <artifactId>ccsdk-apps-ms-neng</artifactId>
Dan Timoney9ba68b22021-03-22 09:52:43 -040026 <version>1.1.2-SNAPSHOT</version>
Alexis de Talhouët5decf252019-01-03 16:53:40 -050027 <name>Naming Generation</name>
BT29832ea106c2018-07-22 14:08:34 -060028
29 <properties>
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>
BT29839783a8b2018-09-16 21:30:20 -060034 <docker.registry>nexus3.onap.org:10001</docker.registry>
BT29832ea106c2018-07-22 14:08:34 -060035 <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>
BT29832ea106c2018-07-22 14:08:34 -060043 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
BT29839cbcdac2018-08-16 21:48:07 -060044 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
Timoney, Dan (dt5972)74896072018-09-12 15:31:10 -040045 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
BT2983933fa9b2018-09-20 14:26:33 -060046 <docker.push.phase>deploy</docker.push.phase>
BT2983933fa9b2018-09-20 14:26:33 -060047 <docker.verbose>true</docker.verbose>
48 <ccsdk.project.version>${project.version}</ccsdk.project.version>
Dan Timoney177eccd2021-02-24 11:22:32 -050049 <base.image.name>onap/ccsdk-alpine-j11-image</base.image.name>
50 <base.image.version>1.1.1</base.image.version>
BT2983933fa9b2018-09-20 14:26:33 -060051 <image.name>onap/ccsdk-apps-ms-neng</image.name>
bt2983ad92a272018-09-23 16:39:54 -060052 <timestamp>${maven.build.timestamp}</timestamp>
Timoney, Dan (dt5972)00c38482019-02-14 13:52:48 -050053 <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>
BT29832ea106c2018-07-22 14:08:34 -060056 </properties>
57
58 <profiles>
59 <profile>
60 <id>all-tests</id>
61 <properties>
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>
65 </properties>
66 </profile>
67 <profile>
68 <id>dev</id>
69 </profile>
70 <profile>
71 <id>integration-test</id>
72 <properties>
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>
76 </properties>
77 </profile>
BT29839cbcdac2018-08-16 21:48:07 -060078
79 <profile>
80 <id>blackduck</id>
81 <activation>
82 <property>
83 <name>blackduck-scan</name>
84 </property>
85 </activation>
86 <build>
87 <plugins>
88 <plugin>
89 <groupId>com.blackducksoftware.integration</groupId>
90 <artifactId>hub-maven-plugin</artifactId>
91 <version>1.4.0</version>
92 <inherited>false</inherited>
93 <configuration>
94 <hubProjectName>${project.name}</hubProjectName>
95 <outputDirectory>${project.basedir}</outputDirectory>
96 </configuration>
97 <executions>
98 <execution>
99 <id>create-bdio-file</id>
100 <phase>package</phase>
101 <goals>
102 <goal>createHubOutput</goal>
103 </goals>
104 </execution>
105 </executions>
106 </plugin>
107 </plugins>
108 </build>
109 </profile>
110
BT2983933fa9b2018-09-20 14:26:33 -0600111 <profile>
112 <id>docker</id>
113 <build>
114 <plugins>
115 <plugin>
116 <artifactId>maven-resources-plugin</artifactId>
117 <version>2.6</version>
118 <executions>
119 <execution>
120 <id>copy-dockerfile</id>
121 <goals>
122 <goal>copy-resources</goal>
123 </goals>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400124 <phase>validate</phase>
BT2983933fa9b2018-09-20 14:26:33 -0600125 <configuration>
126 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
127 <resources>
128 <resource>
129 <directory>src/main/docker</directory>
130 <includes>
131 <include>startService.sh</include>
132 <include>Dockerfile</include>
133 </includes>
134 <filtering>true</filtering>
135 </resource>
136 </resources>
137 </configuration>
138 </execution>
139 <execution>
140 <id>copy-app-jar</id>
141 <goals>
142 <goal>copy-resources</goal>
143 </goals>
Dan Timoney42624f12020-11-11 13:13:42 -0500144 <phase>package</phase>
BT2983933fa9b2018-09-20 14:26:33 -0600145 <configuration>
146 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
147 <resources>
148 <resource>
149 <directory>${basedir}/target/</directory>
150 <includes>
151 <include>NetworkElementNameGen.jar</include>
152 </includes>
153 <filtering>false</filtering>
154 </resource>
155 </resources>
156 </configuration>
157 </execution>
158 <execution>
159 <id>copy-config</id>
160 <goals>
161 <goal>copy-resources</goal>
162 </goals>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400163 <phase>validate</phase>
BT2983933fa9b2018-09-20 14:26:33 -0600164 <configuration>
165 <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
166 <resources>
167 <resource>
168 <directory>${basedir}/opt/etc/config</directory>
169 <includes>
170 <include>*</include>
171 </includes>
172 <filtering>true</filtering>
173 </resource>
174 </resources>
175 </configuration>
176 </execution>
177 </executions>
178 </plugin>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400179
180
BT2983933fa9b2018-09-20 14:26:33 -0600181 <plugin>
182 <groupId>io.fabric8</groupId>
183 <artifactId>docker-maven-plugin</artifactId>
Dan Timoney42624f12020-11-11 13:13:42 -0500184 <version>0.28.0</version>
BT2983933fa9b2018-09-20 14:26:33 -0600185 <inherited>false</inherited>
186 <configuration>
187 <images>
188 <image>
189 <name>${image.name}</name>
190 <build>
191 <cleanup>try</cleanup>
192 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
193 <tags>
Timoney, Dan (dt5972)00c38482019-02-14 13:52:48 -0500194 <tag>${project.docker.latestminortag.version}</tag>
195 <tag>${project.docker.latestfulltag.version}</tag>
196 <tag>${project.docker.latesttagtimestamp.version}</tag>
BT2983933fa9b2018-09-20 14:26:33 -0600197 </tags>
198 </build>
199 </image>
200 </images>
201 <verbose>true</verbose>
202 </configuration>
203 <executions>
204 <execution>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400205 <id>generate-images</id>
206 <phase>package</phase>
207 <goals>
208 <goal>build</goal>
209 </goals>
210 </execution>
211 <execution>
BT2983933fa9b2018-09-20 14:26:33 -0600212 <id>push-images</id>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400213 <phase>${docker.push.phase}</phase>
BT2983933fa9b2018-09-20 14:26:33 -0600214 <goals>
215 <goal>build</goal>
216 <goal>push</goal>
217 </goals>
218 </execution>
219 </executions>
220 </plugin>
221 </plugins>
222 </build>
223 </profile>
Timoney, Dan (dt5972)74896072018-09-12 15:31:10 -0400224
BT29832ea106c2018-07-22 14:08:34 -0600225 </profiles>
226
227 <developers>
228 <developer>
229 <id>${userId}</id>
230 </developer>
231 </developers>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400232
233
BT29832ea106c2018-07-22 14:08:34 -0600234 <parent>
BT29833db41ee2018-08-01 20:09:20 -0600235 <groupId>org.onap.ccsdk.parent</groupId>
bt2983ec939492020-03-01 16:30:26 -0700236 <artifactId>spring-boot-starter-parent</artifactId>
Dan Timoney8a0b24c2021-08-25 17:01:07 -0400237 <version>2.1.8</version>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400238 <relativePath/>
BT29832ea106c2018-07-22 14:08:34 -0600239 </parent>
240
Timoney, Dan (dt5972)a8588a42019-01-04 10:43:33 -0500241
BT29833db41ee2018-08-01 20:09:20 -0600242
BT29832ea106c2018-07-22 14:08:34 -0600243 <dependencies>
244 <dependency>
245 <groupId>io.swagger</groupId>
246 <artifactId>swagger-core</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600247 </dependency>
248 <dependency>
249 <groupId>org.springframework.boot</groupId>
250 <artifactId>spring-boot-starter-web</artifactId>
251 </dependency>
252 <dependency>
253 <groupId>org.springframework.boot</groupId>
254 <artifactId>spring-boot-starter-jersey</artifactId>
255 </dependency>
256 <dependency>
257 <groupId>org.springframework.boot</groupId>
258 <artifactId>spring-boot-starter-actuator</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600259 </dependency>
260 <dependency>
261 <groupId>org.springframework.boot</groupId>
262 <artifactId>spring-boot-loader-tools</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600263 </dependency>
264 <dependency>
265 <groupId>org.springframework.boot</groupId>
266 <artifactId>spring-boot-starter-test</artifactId>
267 <scope>test</scope>
268 </dependency>
269 <dependency>
270 <groupId>org.springframework.boot</groupId>
271 <artifactId>spring-boot-starter-tomcat</artifactId>
272 <scope>compile</scope>
273 </dependency>
274 <dependency>
275 <groupId>org.springframework.boot</groupId>
276 <artifactId>spring-boot-starter-data-jpa</artifactId>
277 <scope>compile</scope>
278 </dependency>
279 <dependency>
280 <groupId>org.apache.httpcomponents</groupId>
281 <artifactId>httpclient</artifactId>
282 </dependency>
283 <dependency>
284 <groupId>javax.ws.rs</groupId>
285 <artifactId>javax.ws.rs-api</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600286 </dependency>
287 <dependency>
288 <groupId>commons-lang</groupId>
289 <artifactId>commons-lang</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600290 </dependency>
291 <dependency>
292 <groupId>org.liquibase</groupId>
293 <artifactId>liquibase-core</artifactId>
294 </dependency>
BT2983933fa9b2018-09-20 14:26:33 -0600295 <dependency>
296 <groupId>org.mariadb.jdbc</groupId>
297 <artifactId>mariadb-java-client</artifactId>
BT2983933fa9b2018-09-20 14:26:33 -0600298 </dependency>
BT29832ea106c2018-07-22 14:08:34 -0600299 <dependency>
300 <groupId>com.h2database</groupId>
301 <artifactId>h2</artifactId>
302 </dependency>
BT29832ea106c2018-07-22 14:08:34 -0600303 <dependency>
BT29833db41ee2018-08-01 20:09:20 -0600304 <groupId>org.springframework.boot</groupId>
305 <artifactId>spring-boot-configuration-processor</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600306 <optional>true</optional>
307 </dependency>
308 <dependency>
309 <groupId>org.springframework</groupId>
310 <artifactId>spring-test</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600311 <scope>test</scope>
312 </dependency>
313 <dependency>
314 <groupId>org.springframework</groupId>
315 <artifactId>spring-aop</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600316 </dependency>
317 <dependency>
318 <groupId>org.springframework</groupId>
319 <artifactId>spring-beans</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600320 </dependency>
321 <dependency>
322 <groupId>org.springframework</groupId>
323 <artifactId>spring-beans</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600324 </dependency>
325 <dependency>
326 <groupId>org.springframework</groupId>
327 <artifactId>spring-context</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600328 </dependency>
329 <dependency>
330 <groupId>org.springframework</groupId>
331 <artifactId>spring-core</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600332 </dependency>
333 <dependency>
334 <groupId>org.springframework</groupId>
335 <artifactId>spring-expression</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600336 </dependency>
337 <dependency>
338 <groupId>org.springframework</groupId>
339 <artifactId>spring-web</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600340 </dependency>
bt2983ec939492020-03-01 16:30:26 -0700341
342 <dependency>
343 <groupId>org.elasticsearch</groupId>
344 <artifactId>elasticsearch</artifactId>
Dan Timoneye7f8cfa2020-08-31 14:59:19 -0400345 <version>7.6.1</version>
bt2983ec939492020-03-01 16:30:26 -0700346 </dependency>
347 <dependency>
348 <groupId>io.searchbox</groupId>
349 <artifactId>jest</artifactId>
350 <version>5.3.3</version>
351 </dependency>
BT29832ea106c2018-07-22 14:08:34 -0600352 </dependencies>
353
354 <build>
355 <finalName>NetworkElementNameGen</finalName>
356 <plugins>
BT2983933fa9b2018-09-20 14:26:33 -0600357
BT29832ea106c2018-07-22 14:08:34 -0600358 <plugin>
Timoney, Dan (dt5972)74896072018-09-12 15:31:10 -0400359 <groupId>org.codehaus.groovy.maven</groupId>
360 <artifactId>gmaven-plugin</artifactId>
361 <version>1.0</version>
362 <executions>
363 <execution>
364 <phase>validate</phase>
365 <goals>
366 <goal>execute</goal>
367 </goals>
368 <configuration>
Timoney, Dan (dt5972)00c38482019-02-14 13:52:48 -0500369 <source>${basedir}/../../TagVersion.groovy</source>
Timoney, Dan (dt5972)74896072018-09-12 15:31:10 -0400370 </configuration>
371 </execution>
372 </executions>
373 </plugin>
374 <plugin>
BT29832ea106c2018-07-22 14:08:34 -0600375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-surefire-plugin</artifactId>
377 <configuration>
378 <argLine>${surefireArgLine}</argLine>
379 <skipTests>${skip.unit.tests}</skipTests>
380 <excludes>
381 <exclude>**/IT*.java</exclude>
382 </excludes>
383 </configuration>
384 </plugin>
385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-failsafe-plugin</artifactId>
388 <executions>
389 <execution>
390 <id>integration-tests</id>
391 <goals>
392 <goal>integration-test</goal>
393 <goal>verify</goal>
394 </goals>
395 <configuration>
396 <argLine>${failsafeArgLine}</argLine>
397 <skipTests>${skip.integration.tests}</skipTests>
398 </configuration>
399 </execution>
400 </executions>
401 </plugin>
402 <plugin>
403 <artifactId>maven-dependency-plugin</artifactId>
404 </plugin>
405 <plugin>
406 <groupId>com.github.kongchen</groupId>
407 <artifactId>swagger-maven-plugin</artifactId>
408 <version>3.1.3</version>
409 <configuration>
410 <apiSources>
411 <apiSource>
412 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
413 <basePath>/web</basePath>
414 <info>
415 <title>${project.artifactId} Service</title>
416 <version>${project.version}</version>
417 </info>
418 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
419 </apiSource>
420 </apiSources>
421 </configuration>
422 <executions>
423 <execution>
424 <phase>package</phase>
425 <goals>
426 <goal>generate</goal>
427 </goals>
428 </execution>
429 </executions>
430 </plugin>
431
432 <plugin>
433 <artifactId>exec-maven-plugin</artifactId>
434 <groupId>org.codehaus.mojo</groupId>
435 </plugin>
Alexis de Talhouët84cd8c42018-09-21 11:08:46 -0400436
BT29832ea106c2018-07-22 14:08:34 -0600437 <plugin>
438 <groupId>org.springframework.boot</groupId>
439 <artifactId>spring-boot-maven-plugin</artifactId>
BT29832ea106c2018-07-22 14:08:34 -0600440 <executions>
441 <execution>
442 <goals>
443 <goal>repackage</goal>
444 </goals>
445 </execution>
446 </executions>
447 </plugin>
448 </plugins>
BT2983933fa9b2018-09-20 14:26:33 -0600449
BT29832ea106c2018-07-22 14:08:34 -0600450 <resources>
451 <resource>
452 <directory>src/main/resources</directory>
453 <filtering>true</filtering>
454 <includes>
455 <include>**/*</include>
456 </includes>
457 </resource>
458 <resource>
459 <directory>opt/aai/keystore</directory>
460 <targetPath>../opt/aai/keystore</targetPath>
461 <filtering>false</filtering>
462 <includes>
463 <include>**/*</include>
464 </includes>
465 </resource>
466
467 <resource>
468 <directory>opt/etc/config</directory>
469 <targetPath>../opt/etc/config</targetPath>
470 <filtering>true</filtering>
471 <includes>
472 <include>**/*</include>
473 </includes>
474 </resource>
475 <resource>
476 <directory>opt/etc/keystore</directory>
477 <targetPath>../opt/etc/keystore</targetPath>
478 <filtering>false</filtering>
479 <includes>
480 <include>**/*</include>
481 </includes>
482 </resource>
483 <resource>
484 <directory>opt/etc/truststore</directory>
485 <targetPath>../opt/etc/truststore</targetPath>
486 <filtering>false</filtering>
487 <includes>
488 <include>**/*</include>
489 </includes>
490 </resource>
491 </resources>
BT29839cbcdac2018-08-16 21:48:07 -0600492 <pluginManagement>
493 <plugins>
494 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
495 <plugin>
496 <groupId>org.eclipse.m2e</groupId>
497 <artifactId>lifecycle-mapping</artifactId>
498 <version>1.0.0</version>
499 <configuration>
500 <lifecycleMappingMetadata>
501 <pluginExecutions>
502 <pluginExecution>
503 <pluginExecutionFilter>
504 <groupId>
505 org.apache.maven.plugins
506 </groupId>
507 <artifactId>
508 maven-checkstyle-plugin
509 </artifactId>
510 <versionRange>
511 [2.17,)
512 </versionRange>
513 <goals>
514 <goal>check</goal>
515 </goals>
516 </pluginExecutionFilter>
517 <action>
Timoney, Dan (dt5972)b78d5812019-01-08 14:40:54 -0500518 <ignore/>
BT29839cbcdac2018-08-16 21:48:07 -0600519 </action>
520 </pluginExecution>
521 <pluginExecution>
522 <pluginExecutionFilter>
523 <groupId>
524 org.codehaus.mojo
525 </groupId>
526 <artifactId>
527 properties-maven-plugin
528 </artifactId>
529 <versionRange>
530 [1.0.0,)
531 </versionRange>
532 <goals>
533 <goal>
534 set-system-properties
535 </goal>
536 </goals>
537 </pluginExecutionFilter>
538 <action>
Timoney, Dan (dt5972)b78d5812019-01-08 14:40:54 -0500539 <ignore/>
BT29839cbcdac2018-08-16 21:48:07 -0600540 </action>
541 </pluginExecution>
542 </pluginExecutions>
543 </lifecycleMappingMetadata>
544 </configuration>
545 </plugin>
546 </plugins>
547 </pluginManagement>
BT29832ea106c2018-07-22 14:08:34 -0600548 </build>
bt2983ad92a272018-09-23 16:39:54 -0600549</project>