Generate dependency list
[ccsdk/apps.git] / ms / neng / pom.xml
1 <?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" 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>
23
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>
28
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>
34         <spring.version>4.3.17.RELEASE</spring.version>
35         <springboot.version>1.5.16.RELEASE</springboot.version>
36         <docker.registry>nexus3.onap.org:10001</docker.registry>
37         <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>
55         <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
56         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
57         <docker.push.phase>deploy</docker.push.phase>
58         <docker.verbose>true</docker.verbose>
59         <ccsdk.project.version>${project.version}</ccsdk.project.version>
60         <image.name>onap/ccsdk-apps-ms-neng</image.name>
61         <timestamp>${maven.build.timestamp}</timestamp>
62         <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>    
63                 <ccsdk.project.version>${project.version}</ccsdk.project.version>
64                 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
65     </properties>
66
67     <profiles>
68         <profile>
69             <id>all-tests</id>
70             <properties>
71                 <build.profile.id>all-tests</build.profile.id>
72                 <skip.integration.tests>false</skip.integration.tests>
73                 <skip.unit.tests>false</skip.unit.tests>
74             </properties>
75         </profile>
76         <profile>
77             <id>dev</id>
78         </profile>
79         <profile>
80             <id>integration-test</id>
81             <properties>
82                 <build.profile.id>integration-test</build.profile.id>
83                 <skip.integration.tests>false</skip.integration.tests>
84                 <skip.unit.tests>true</skip.unit.tests>
85             </properties>
86         </profile>
87
88         <profile>
89             <id>blackduck</id>
90             <activation>
91                 <property>
92                     <name>blackduck-scan</name>
93                 </property>
94             </activation>
95             <build>
96                 <plugins>
97                     <plugin>
98                         <groupId>com.blackducksoftware.integration</groupId>
99                         <artifactId>hub-maven-plugin</artifactId>
100                         <version>1.4.0</version>
101                         <inherited>false</inherited>
102                         <configuration>
103                             <hubProjectName>${project.name}</hubProjectName>
104                             <outputDirectory>${project.basedir}</outputDirectory>
105                         </configuration>
106                         <executions>
107                             <execution>
108                                 <id>create-bdio-file</id>
109                                 <phase>package</phase>
110                                 <goals>
111                                     <goal>createHubOutput</goal>
112                                 </goals>
113                             </execution>
114                         </executions>
115                     </plugin>
116                 </plugins>
117             </build>
118         </profile>
119
120         <profile>
121             <id>docker</id>
122             <build>
123                 <plugins>
124                     <plugin>
125                         <artifactId>maven-resources-plugin</artifactId>
126                         <version>2.6</version>
127                         <executions>
128                             <execution>
129                                 <id>copy-dockerfile</id>
130                                 <goals>
131                                     <goal>copy-resources</goal>
132                                 </goals>
133                                 <phase>validate</phase>
134                                 <configuration>
135                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
136                                     <resources>
137                                         <resource>
138                                             <directory>src/main/docker</directory>
139                                             <includes>
140                                                 <include>startService.sh</include>
141                                                 <include>Dockerfile</include>
142                                             </includes>
143                                             <filtering>true</filtering>
144                                         </resource>
145                                     </resources>
146                                 </configuration>
147                             </execution>
148                             <execution>
149                                 <id>copy-app-jar</id>
150                                 <goals>
151                                     <goal>copy-resources</goal>
152                                 </goals>
153                                 <phase>package</phase>
154                                 <configuration>
155                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
156                                     <resources>
157                                         <resource>
158                                             <directory>${basedir}/target/</directory>
159                                             <includes>
160                                                 <include>NetworkElementNameGen.jar</include>
161                                             </includes>
162                                             <filtering>false</filtering>
163                                         </resource>
164                                     </resources>
165                                 </configuration>
166                             </execution>
167                             <execution>
168                                 <id>copy-config</id>
169                                 <goals>
170                                     <goal>copy-resources</goal>
171                                 </goals>
172                                 <phase>validate</phase>
173                                 <configuration>
174                                     <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
175                                     <resources>
176                                         <resource>
177                                             <directory>${basedir}/opt/etc/config</directory>
178                                             <includes>
179                                                 <include>*</include>
180                                             </includes>
181                                             <filtering>true</filtering>
182                                         </resource>
183                                     </resources>
184                                 </configuration>
185                             </execution>
186                         </executions>
187                     </plugin>
188
189
190                     <plugin>
191                         <groupId>io.fabric8</groupId>
192                         <artifactId>docker-maven-plugin</artifactId>
193                         <version>0.16.5</version>
194                         <inherited>false</inherited>
195                         <configuration>
196                             <images>
197                                 <image>
198                                     <name>${image.name}</name>
199                                     <build>
200                                         <cleanup>try</cleanup>
201                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
202                                         <tags>
203                                                                                         <tag>${project.docker.latestminortag.version}</tag>
204                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
205                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
206                                         </tags>
207                                     </build>
208                                 </image>
209                             </images>
210                             <verbose>true</verbose>
211                         </configuration>
212                         <executions>
213                             <execution>
214                                 <id>generate-images</id>
215                                 <phase>package</phase>
216                                 <goals>
217                                     <goal>build</goal>
218                                 </goals>
219                             </execution>
220                             <execution>
221                                 <id>push-images</id>
222                                 <phase>${docker.push.phase}</phase>
223                                 <goals>
224                                     <goal>build</goal>
225                                     <goal>push</goal>
226                                 </goals>
227                             </execution>
228                         </executions>
229                     </plugin>
230                 </plugins>
231             </build>
232         </profile>
233
234     </profiles>
235
236     <developers>
237         <developer>
238             <id>${userId}</id>
239         </developer>
240     </developers>
241
242
243     <parent>
244         <groupId>org.onap.ccsdk.parent</groupId>
245         <artifactId>spring-boot-1-starter-parent</artifactId>
246         <version>1.5.1-SNAPSHOT</version>
247         <relativePath/>
248     </parent>
249
250
251
252     <dependencies>
253         <dependency>
254             <groupId>io.swagger</groupId>
255             <artifactId>swagger-core</artifactId>
256         </dependency>
257         <dependency>
258             <groupId>org.springframework.boot</groupId>
259             <artifactId>spring-boot-starter-web</artifactId>
260         </dependency>
261         <dependency>
262             <groupId>org.springframework.boot</groupId>
263             <artifactId>spring-boot-starter-jersey</artifactId>
264         </dependency>
265         <dependency>
266             <groupId>org.springframework.boot</groupId>
267             <artifactId>spring-boot-starter-actuator</artifactId>
268         </dependency>
269         <dependency>
270             <groupId>org.springframework.boot</groupId>
271             <artifactId>spring-boot-loader-tools</artifactId>
272         </dependency>
273         <dependency>
274             <groupId>org.springframework.boot</groupId>
275             <artifactId>spring-boot-starter-test</artifactId>
276             <scope>test</scope>
277         </dependency>
278         <dependency>
279             <groupId>org.springframework.boot</groupId>
280             <artifactId>spring-boot-starter-tomcat</artifactId>
281             <scope>compile</scope>
282         </dependency>
283         <dependency>
284             <groupId>org.springframework.boot</groupId>
285             <artifactId>spring-boot-starter-data-jpa</artifactId>
286             <scope>compile</scope>
287         </dependency>
288         <dependency>
289             <groupId>org.apache.httpcomponents</groupId>
290             <artifactId>httpclient</artifactId>
291         </dependency>
292         <dependency>
293             <groupId>javax.ws.rs</groupId>
294             <artifactId>javax.ws.rs-api</artifactId>
295         </dependency>
296         <dependency>
297             <groupId>commons-lang</groupId>
298             <artifactId>commons-lang</artifactId>
299         </dependency>
300         <dependency>
301             <groupId>org.liquibase</groupId>
302             <artifactId>liquibase-core</artifactId>
303         </dependency>
304         <dependency>
305             <groupId>org.mariadb.jdbc</groupId>
306             <artifactId>mariadb-java-client</artifactId>
307         </dependency>
308         <dependency>
309             <groupId>com.h2database</groupId>
310             <artifactId>h2</artifactId>
311         </dependency>
312         <dependency>
313             <groupId>org.springframework.boot</groupId>
314             <artifactId>spring-boot-configuration-processor</artifactId>
315             <optional>true</optional>
316         </dependency>
317         <dependency>
318             <groupId>org.springframework</groupId>
319             <artifactId>spring-test</artifactId>
320             <scope>test</scope>
321         </dependency>
322         <dependency>
323             <groupId>org.springframework</groupId>
324             <artifactId>spring-aop</artifactId>
325         </dependency>
326         <dependency>
327             <groupId>org.springframework</groupId>
328             <artifactId>spring-beans</artifactId>
329         </dependency>
330         <dependency>
331             <groupId>org.springframework</groupId>
332             <artifactId>spring-beans</artifactId>
333         </dependency>
334         <dependency>
335             <groupId>org.springframework</groupId>
336             <artifactId>spring-context</artifactId>
337         </dependency>
338         <dependency>
339             <groupId>org.springframework</groupId>
340             <artifactId>spring-core</artifactId>
341         </dependency>
342         <dependency>
343             <groupId>org.springframework</groupId>
344             <artifactId>spring-expression</artifactId>
345         </dependency>
346         <dependency>
347             <groupId>org.springframework</groupId>
348             <artifactId>spring-web</artifactId>
349         </dependency>
350     </dependencies>
351
352     <build>
353         <finalName>NetworkElementNameGen</finalName>
354         <plugins>
355
356             <plugin>
357                 <groupId>org.codehaus.groovy.maven</groupId>
358                 <artifactId>gmaven-plugin</artifactId>
359                 <version>1.0</version>
360                 <executions>
361                     <execution>
362                         <phase>validate</phase>
363                         <goals>
364                             <goal>execute</goal>
365                         </goals>
366                         <configuration>
367                             <source>${basedir}/../../TagVersion.groovy</source>
368                         </configuration>
369                     </execution>
370                 </executions>
371             </plugin>
372             <plugin>
373                 <groupId>org.jacoco</groupId>
374                 <artifactId>jacoco-maven-plugin</artifactId>
375                 <executions>
376                     <execution>
377                         <id>pre-unit-test</id>
378                         <goals>
379                             <goal>prepare-agent</goal>
380                         </goals>
381                         <configuration>
382                             <destFile>${sonar.jacoco.reportPath}</destFile>
383                             <propertyName>surefireArgLine</propertyName>
384                         </configuration>
385                     </execution>
386                     <execution>
387                         <id>post-unit-test</id>
388                         <phase>test</phase>
389                         <goals>
390                             <goal>report</goal>
391                         </goals>
392                         <configuration>
393                             <dataFile>${sonar.jacoco.reportPath}</dataFile>
394                             <outputDirectory>${jacoco.path}</outputDirectory>
395                         </configuration>
396                     </execution>
397                     <execution>
398                         <id>pre-integration-test</id>
399                         <phase>pre-integration-test</phase>
400                         <goals>
401                             <goal>prepare-agent</goal>
402                         </goals>
403                         <configuration>
404                             <destFile>${sonar.jacoco.itReportPath}</destFile>
405                             <propertyName>failsafeArgLine</propertyName>
406                         </configuration>
407                     </execution>
408                     <execution>
409                         <id>post-integration-test</id>
410                         <phase>post-integration-test</phase>
411                         <goals>
412                             <goal>report</goal>
413                         </goals>
414                         <configuration>
415                             <dataFile>${sonar.jacoco.itReportPath}/</dataFile>
416                             <outputDirectory>${jacoco.itPath}</outputDirectory>
417                         </configuration>
418                     </execution>
419                 </executions>
420             </plugin>
421             <plugin>
422                 <groupId>org.apache.maven.plugins</groupId>
423                 <artifactId>maven-surefire-plugin</artifactId>
424                 <configuration>
425                     <argLine>${surefireArgLine}</argLine>
426                     <skipTests>${skip.unit.tests}</skipTests>
427                     <excludes>
428                         <exclude>**/IT*.java</exclude>
429                     </excludes>
430                 </configuration>
431             </plugin>
432             <plugin>
433                 <groupId>org.apache.maven.plugins</groupId>
434                 <artifactId>maven-failsafe-plugin</artifactId>
435                 <executions>
436                     <execution>
437                         <id>integration-tests</id>
438                         <goals>
439                             <goal>integration-test</goal>
440                             <goal>verify</goal>
441                         </goals>
442                         <configuration>
443                             <argLine>${failsafeArgLine}</argLine>
444                             <skipTests>${skip.integration.tests}</skipTests>
445                         </configuration>
446                     </execution>
447                 </executions>
448             </plugin>
449             <plugin>
450                 <artifactId>maven-dependency-plugin</artifactId>
451             </plugin>
452             <plugin>
453                 <groupId>com.github.kongchen</groupId>
454                 <artifactId>swagger-maven-plugin</artifactId>
455                 <version>3.1.3</version>
456                 <configuration>
457                     <apiSources>
458                         <apiSource>
459                             <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
460                             <basePath>/web</basePath>
461                             <info>
462                                 <title>${project.artifactId} Service</title>
463                                 <version>${project.version}</version>
464                             </info>
465                             <swaggerDirectory>${swagger.directory}</swaggerDirectory>
466                         </apiSource>
467                     </apiSources>
468                 </configuration>
469                 <executions>
470                     <execution>
471                         <phase>package</phase>
472                         <goals>
473                             <goal>generate</goal>
474                         </goals>
475                     </execution>
476                 </executions>
477             </plugin>
478
479             <plugin>
480                 <artifactId>exec-maven-plugin</artifactId>
481                 <groupId>org.codehaus.mojo</groupId>
482             </plugin>
483
484             <plugin>
485                 <groupId>org.springframework.boot</groupId>
486                 <artifactId>spring-boot-maven-plugin</artifactId>
487                 <executions>
488                     <execution>
489                         <goals>
490                             <goal>repackage</goal>
491                         </goals>
492                     </execution>
493                 </executions>
494             </plugin>
495         </plugins>
496
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>
539         <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/>
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/>
587                                     </action>
588                                 </pluginExecution>
589                             </pluginExecutions>
590                         </lifecycleMappingMetadata>
591                     </configuration>
592                 </plugin>
593             </plugins>
594         </pluginManagement>
595     </build>
596 </project>