blob: 8390350ac5c7f96dc8cac9b8a62f70817768c5cf [file] [log] [blame]
BT29832ea106c2018-07-22 14:08:34 -06001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * ============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
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
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=========================================================
20 -->
21<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 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>
24
BT29833db41ee2018-08-01 20:09:20 -060025 <groupId>org.onap.ccsdk.apps</groupId>
26 <artifactId>ccsdk-apps-ms-neng</artifactId>
27 <version>0.3.0-SNAPSHOT</version>
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>
BT29833db41ee2018-08-01 20:09:20 -060034 <spring.version>4.3.8.RELEASE</spring.version>
BT29839cbcdac2018-08-16 21:48:07 -060035 <springboot.version>1.5.6.RELEASE</springboot.version>
36 <docker.registry>nexus3.onap.org:10003</docker.registry>
BT29832ea106c2018-07-22 14:08:34 -060037 <build.number>local</build.number>
38 <kube.namespace>TBD</kube.namespace>
39 <service.account>TBD</service.account>
40 <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <sdk.java.rest>6.2.0.11</sdk.java.rest>
45 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46 <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
47 <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
48 <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
49 <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
50 <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
51 <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <sonar.language>java</sonar.language>
54 <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
BT29839cbcdac2018-08-16 21:48:07 -060055 <project.version>0.3.0</project.version>
56 <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
BT29832ea106c2018-07-22 14:08:34 -060057 </properties>
58
59 <profiles>
60 <profile>
61 <id>all-tests</id>
62 <properties>
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>
66 </properties>
67 </profile>
68 <profile>
69 <id>dev</id>
70 </profile>
71 <profile>
72 <id>integration-test</id>
73 <properties>
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>
77 </properties>
78 </profile>
BT29839cbcdac2018-08-16 21:48:07 -060079
80 <profile>
81 <id>blackduck</id>
82 <activation>
83 <property>
84 <name>blackduck-scan</name>
85 </property>
86 </activation>
87 <build>
88 <plugins>
89 <plugin>
90 <groupId>com.blackducksoftware.integration</groupId>
91 <artifactId>hub-maven-plugin</artifactId>
92 <version>1.4.0</version>
93 <inherited>false</inherited>
94 <configuration>
95 <hubProjectName>${project.name}</hubProjectName>
96 <outputDirectory>${project.basedir}</outputDirectory>
97 </configuration>
98 <executions>
99 <execution>
100 <id>create-bdio-file</id>
101 <phase>package</phase>
102 <goals>
103 <goal>createHubOutput</goal>
104 </goals>
105 </execution>
106 </executions>
107 </plugin>
108 </plugins>
109 </build>
110 </profile>
111
BT29832ea106c2018-07-22 14:08:34 -0600112 </profiles>
113
114 <developers>
115 <developer>
116 <id>${userId}</id>
117 </developer>
118 </developers>
BT29833db41ee2018-08-01 20:09:20 -0600119
120
BT29832ea106c2018-07-22 14:08:34 -0600121 <parent>
BT29833db41ee2018-08-01 20:09:20 -0600122 <groupId>org.onap.ccsdk.parent</groupId>
123 <artifactId>odlparent-lite</artifactId>
124 <version>1.1.0-SNAPSHOT</version>
125 <relativePath />
BT29832ea106c2018-07-22 14:08:34 -0600126 </parent>
127
BT29833db41ee2018-08-01 20:09:20 -0600128 <dependencyManagement>
129 <dependencies>
130 <dependency>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-starter-parent</artifactId>
133 <version>${springboot.version}</version>
134 <type>pom</type>
135 <scope>import</scope>
136 </dependency>
137 </dependencies>
138 </dependencyManagement>
139
BT29832ea106c2018-07-22 14:08:34 -0600140 <dependencies>
141 <dependency>
142 <groupId>io.swagger</groupId>
143 <artifactId>swagger-core</artifactId>
144 <version>1.5.20</version>
145 </dependency>
146 <dependency>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-starter-web</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600149 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600150 </dependency>
151 <dependency>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-jersey</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600154 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600155 </dependency>
156 <dependency>
157 <groupId>org.springframework.boot</groupId>
158 <artifactId>spring-boot-starter-actuator</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600159 <version>${springboot.version}</version>
160 </dependency>
161 <dependency>
162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-loader-tools</artifactId>
164 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600165 </dependency>
166 <dependency>
167 <groupId>org.springframework.boot</groupId>
168 <artifactId>spring-boot-starter-test</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600169 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600170 <scope>test</scope>
171 </dependency>
172 <dependency>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-tomcat</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600175 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600176 <scope>compile</scope>
177 </dependency>
178 <dependency>
179 <groupId>org.springframework.boot</groupId>
180 <artifactId>spring-boot-starter-data-jpa</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600181 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600182 <scope>compile</scope>
183 </dependency>
184 <dependency>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpclient</artifactId>
187 </dependency>
188 <dependency>
189 <groupId>javax.ws.rs</groupId>
190 <artifactId>javax.ws.rs-api</artifactId>
191 <version>2.1</version>
192 </dependency>
193 <dependency>
194 <groupId>commons-lang</groupId>
195 <artifactId>commons-lang</artifactId>
196 <version>2.6</version>
197 </dependency>
198 <dependency>
199 <groupId>org.liquibase</groupId>
200 <artifactId>liquibase-core</artifactId>
201 </dependency>
202 <dependency>
203 <groupId>org.wisdom-framework</groupId>
204 <artifactId>mysql-connector-java</artifactId>
205 <version>5.1.34_1</version>
206 </dependency>
207 <dependency>
208 <groupId>com.h2database</groupId>
209 <artifactId>h2</artifactId>
210 </dependency>
BT29832ea106c2018-07-22 14:08:34 -0600211 <dependency>
BT29833db41ee2018-08-01 20:09:20 -0600212 <groupId>org.springframework.boot</groupId>
213 <artifactId>spring-boot-configuration-processor</artifactId>
214 <version>${springboot.version}</version>
215 <optional>true</optional>
216 </dependency>
217 <dependency>
218 <groupId>org.springframework</groupId>
219 <artifactId>spring-test</artifactId>
220 <version>${spring.version}</version>
221 <scope>test</scope>
222 </dependency>
223 <dependency>
224 <groupId>org.springframework</groupId>
225 <artifactId>spring-aop</artifactId>
226 <version>${spring.version}</version>
BT29833db41ee2018-08-01 20:09:20 -0600227 </dependency>
228 <dependency>
229 <groupId>org.springframework</groupId>
230 <artifactId>spring-beans</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600231 </dependency>
232 <dependency>
233 <groupId>org.springframework</groupId>
234 <artifactId>spring-beans</artifactId>
235 <version>${spring.version}</version>
236 </dependency>
237 <dependency>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-context</artifactId>
240 <version>${spring.version}</version>
241 </dependency>
242 <dependency>
243 <groupId>org.springframework</groupId>
244 <artifactId>spring-core</artifactId>
245 <version>${spring.version}</version>
246 </dependency>
247 <dependency>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-expression</artifactId>
250 <version>${spring.version}</version>
251 </dependency>
252 <dependency>
253 <groupId>org.springframework</groupId>
254 <artifactId>spring-web</artifactId>
255 <version>${spring.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600256 </dependency>
257 </dependencies>
258
259 <build>
260 <finalName>NetworkElementNameGen</finalName>
261 <plugins>
262 <plugin>
263 <groupId>org.jacoco</groupId>
264 <artifactId>jacoco-maven-plugin</artifactId>
265 <version>0.7.5.201505241946</version>
266 <executions>
267 <execution>
268 <id>pre-unit-test</id>
269 <goals>
270 <goal>prepare-agent</goal>
271 </goals>
272 <configuration>
273 <destFile>${sonar.jacoco.reportPath}</destFile>
274 <propertyName>surefireArgLine</propertyName>
275 </configuration>
276 </execution>
277 <execution>
278 <id>post-unit-test</id>
279 <phase>test</phase>
280 <goals>
281 <goal>report</goal>
282 </goals>
283 <configuration>
284 <dataFile>${sonar.jacoco.reportPath}</dataFile>
285 <outputDirectory>${jacoco.path}</outputDirectory>
286 </configuration>
287 </execution>
288 <execution>
289 <id>pre-integration-test</id>
290 <phase>pre-integration-test</phase>
291 <goals>
292 <goal>prepare-agent</goal>
293 </goals>
294 <configuration>
295 <destFile>${sonar.jacoco.itReportPath}</destFile>
296 <propertyName>failsafeArgLine</propertyName>
297 </configuration>
298 </execution>
299 <execution>
300 <id>post-integration-test</id>
301 <phase>post-integration-test</phase>
302 <goals>
303 <goal>report</goal>
304 </goals>
305 <configuration>
306 <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
307 <outputDirectory>${jacoco.itPath}</outputDirectory>
308 </configuration>
309 </execution>
310 </executions>
311 </plugin>
312 <plugin>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-surefire-plugin</artifactId>
315 <configuration>
316 <argLine>${surefireArgLine}</argLine>
317 <skipTests>${skip.unit.tests}</skipTests>
318 <excludes>
319 <exclude>**/IT*.java</exclude>
320 </excludes>
321 </configuration>
322 </plugin>
323 <plugin>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-failsafe-plugin</artifactId>
326 <executions>
327 <execution>
328 <id>integration-tests</id>
329 <goals>
330 <goal>integration-test</goal>
331 <goal>verify</goal>
332 </goals>
333 <configuration>
334 <argLine>${failsafeArgLine}</argLine>
335 <skipTests>${skip.integration.tests}</skipTests>
336 </configuration>
337 </execution>
338 </executions>
339 </plugin>
340 <plugin>
341 <artifactId>maven-dependency-plugin</artifactId>
342 </plugin>
343 <plugin>
344 <groupId>com.github.kongchen</groupId>
345 <artifactId>swagger-maven-plugin</artifactId>
346 <version>3.1.3</version>
347 <configuration>
348 <apiSources>
349 <apiSource>
350 <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
351 <basePath>/web</basePath>
352 <info>
353 <title>${project.artifactId} Service</title>
354 <version>${project.version}</version>
355 </info>
356 <swaggerDirectory>${swagger.directory}</swaggerDirectory>
357 </apiSource>
358 </apiSources>
359 </configuration>
360 <executions>
361 <execution>
362 <phase>package</phase>
363 <goals>
364 <goal>generate</goal>
365 </goals>
366 </execution>
367 </executions>
368 </plugin>
369
370 <plugin>
371 <artifactId>exec-maven-plugin</artifactId>
372 <groupId>org.codehaus.mojo</groupId>
373 </plugin>
BT2983674912e2018-08-20 07:45:32 -0600374 <!--
BT29832ea106c2018-07-22 14:08:34 -0600375 <plugin>
BT29839cbcdac2018-08-16 21:48:07 -0600376 <groupId>io.fabric8</groupId>
BT29832ea106c2018-07-22 14:08:34 -0600377 <artifactId>docker-maven-plugin</artifactId>
BT29839cbcdac2018-08-16 21:48:07 -0600378 <inherited>false</inherited>
BT29832ea106c2018-07-22 14:08:34 -0600379 <configuration>
BT29839cbcdac2018-08-16 21:48:07 -0600380 <verbose>false</verbose>
BT29839cbcdac2018-08-16 21:48:07 -0600381 <images>
382 <image>
383 <name>onap/ccsdk-apps-ms-neng</name>
384 <build>
385 <cleanup>try</cleanup>
386 <dockerFileDir>${basedir}/src/main/docker</dockerFileDir>
387 <dockerFile>Dockerfile</dockerFile>
388 <tags>
389 <tag>${project.version}</tag>
390 </tags>
BT2983674912e2018-08-20 07:45:32 -0600391
392 <assembly>
BT29839cbcdac2018-08-16 21:48:07 -0600393 <targetDir>/</targetDir>
394 <inline>
395 <files>
396 <file>
397 <source>${project.build.directory}/${build.finalName}.${project.packaging}</source>
398 </file>
399 </files>
400 <fileSet>
401 <directory>${basedir}/opt/etc</directory>
402 <outputDirectory>opt/etc</outputDirectory>
403 <includes>
404 <include>**</include>
405 </includes>
406 </fileSet>
407 </inline>
408 </assembly>
BT2983674912e2018-08-20 07:45:32 -0600409
410
BT29839cbcdac2018-08-16 21:48:07 -0600411 </build>
412 </image>
413 </images>
BT29832ea106c2018-07-22 14:08:34 -0600414 </configuration>
BT29839cbcdac2018-08-16 21:48:07 -0600415 <executions>
416 <execution>
417 <id>generate-images</id>
418 <phase>package</phase>
419 <goals>
420 <goal>build</goal>
421 </goals>
422 </execution>
423
424 <execution>
425 <id>push-images</id>
426 <phase>deploy</phase>
427 <goals>
428 <goal>build</goal>
429 <goal>push</goal>
430 </goals>
431 </execution>
432 </executions>
BT2983674912e2018-08-20 07:45:32 -0600433 </plugin>
434 -->
435
436 <plugin>
437 <groupId>com.spotify</groupId>
438 <artifactId>docker-maven-plugin</artifactId>
439 <version>0.4.11</version>
440 <configuration>
BT29837202e8f2018-08-27 19:14:42 -0600441 <imageName>onap/ccsdk-apps-ms-neng:${project.version}</imageName>
BT2983674912e2018-08-20 07:45:32 -0600442 <dockerDirectory>src/main/docker</dockerDirectory>
443 <serverId>docker-hub</serverId>
444 <registryUrl>https://${docker.registry}</registryUrl>
445 <imageTags>
446 <imageTag>${project.version}</imageTag>
447 <imageTag>latest</imageTag>
448 </imageTags>
449 <forceTags>true</forceTags>
450 <resources>
451 <resource>
452 <targetPath>/</targetPath>
453 <directory>${project.build.directory}</directory>
454 <include>${project.build.finalName}.jar</include>
455 </resource>
456 <resource>
457 <targetPath>/</targetPath>
458 <directory>${project.build.directory}</directory>
459 <include>opt/etc/config/*</include>
460 </resource>
461 <resource>
462 <targetPath>/</targetPath>
463 <directory>${project.build.directory}</directory>
464 <include>opt/etc/keystore/*</include>
465 </resource>
466 <resource>
467 <targetPath>/</targetPath>
468 <directory>${project.build.directory}</directory>
469 <include>opt/etc/truststore/*</include>
470 </resource>
471 <resource>
472 <targetPath>/</targetPath>
473 <directory>${project.build.directory}</directory>
474 <include>opt/aai/keystore/*</include>
475 </resource>
476 <resource>
477 <targetPath>/</targetPath>
478 <directory>${project.build.directory}</directory>
479 <include>etc/*</include>
480 </resource>
481 </resources>
482 </configuration>
BT29832ea106c2018-07-22 14:08:34 -0600483 </plugin>
484 <plugin>
485 <groupId>org.springframework.boot</groupId>
486 <artifactId>spring-boot-maven-plugin</artifactId>
BT29833db41ee2018-08-01 20:09:20 -0600487 <version>${springboot.version}</version>
BT29832ea106c2018-07-22 14:08:34 -0600488 <executions>
489 <execution>
490 <goals>
491 <goal>repackage</goal>
492 </goals>
493 </execution>
494 </executions>
495 </plugin>
496 </plugins>
497 <resources>
498 <resource>
499 <directory>src/main/resources</directory>
500 <filtering>true</filtering>
501 <includes>
502 <include>**/*</include>
503 </includes>
504 </resource>
505 <resource>
506 <directory>opt/aai/keystore</directory>
507 <targetPath>../opt/aai/keystore</targetPath>
508 <filtering>false</filtering>
509 <includes>
510 <include>**/*</include>
511 </includes>
512 </resource>
513
514 <resource>
515 <directory>opt/etc/config</directory>
516 <targetPath>../opt/etc/config</targetPath>
517 <filtering>true</filtering>
518 <includes>
519 <include>**/*</include>
520 </includes>
521 </resource>
522 <resource>
523 <directory>opt/etc/keystore</directory>
524 <targetPath>../opt/etc/keystore</targetPath>
525 <filtering>false</filtering>
526 <includes>
527 <include>**/*</include>
528 </includes>
529 </resource>
530 <resource>
531 <directory>opt/etc/truststore</directory>
532 <targetPath>../opt/etc/truststore</targetPath>
533 <filtering>false</filtering>
534 <includes>
535 <include>**/*</include>
536 </includes>
537 </resource>
538 </resources>
BT29839cbcdac2018-08-16 21:48:07 -0600539 <pluginManagement>
540 <plugins>
541 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
542 <plugin>
543 <groupId>org.eclipse.m2e</groupId>
544 <artifactId>lifecycle-mapping</artifactId>
545 <version>1.0.0</version>
546 <configuration>
547 <lifecycleMappingMetadata>
548 <pluginExecutions>
549 <pluginExecution>
550 <pluginExecutionFilter>
551 <groupId>
552 org.apache.maven.plugins
553 </groupId>
554 <artifactId>
555 maven-checkstyle-plugin
556 </artifactId>
557 <versionRange>
558 [2.17,)
559 </versionRange>
560 <goals>
561 <goal>check</goal>
562 </goals>
563 </pluginExecutionFilter>
564 <action>
565 <ignore></ignore>
566 </action>
567 </pluginExecution>
568 <pluginExecution>
569 <pluginExecutionFilter>
570 <groupId>
571 org.codehaus.mojo
572 </groupId>
573 <artifactId>
574 properties-maven-plugin
575 </artifactId>
576 <versionRange>
577 [1.0.0,)
578 </versionRange>
579 <goals>
580 <goal>
581 set-system-properties
582 </goal>
583 </goals>
584 </pluginExecutionFilter>
585 <action>
586 <ignore></ignore>
587 </action>
588 </pluginExecution>
589 </pluginExecutions>
590 </lifecycleMappingMetadata>
591 </configuration>
592 </plugin>
593 </plugins>
594 </pluginManagement>
BT29832ea106c2018-07-22 14:08:34 -0600595 </build>
596</project>
597