Release version 1.3.0 of ccsdk/apps
[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     <parent>
25         <groupId>org.onap.ccsdk.apps</groupId>
26         <artifactId>ccsdk-apps-ms</artifactId>
27         <version>1.3.1-SNAPSHOT</version>
28     </parent>
29
30     <groupId>org.onap.ccsdk.apps</groupId>
31     <artifactId>ccsdk-apps-ms-neng</artifactId>
32     <version>1.3.1-SNAPSHOT</version>
33
34     <name>Naming Generation</name>
35
36     <developers>
37         <developer>
38             <id>${userId}</id>
39         </developer>
40     </developers>
41
42     <properties>
43         <swagger.directory>${basedir}/target/classes/META-INF/resources/swagger</swagger.directory>
44         <icd.file>service.json</icd.file>
45         <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package>
46         <java.version>11</java.version>
47         <docker.registry>nexus3.onap.org:10001</docker.registry>
48         <build.number>local</build.number>
49         <kube.namespace>TBD</kube.namespace>
50         <service.account>TBD</service.account>
51         <namespace>org.onap.ccsdk.apps.ms.neng</namespace>
52         <maven.compiler.source>11</maven.compiler.source>
53         <maven.compiler.target>11</maven.compiler.target>
54         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55         <sdk.java.rest>6.2.0.11</sdk.java.rest>
56         <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName>
57         <ccsdk.distribution.version>1.2.2</ccsdk.distribution.version>
58         <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
59         <docker.push.phase>deploy</docker.push.phase>
60         <docker.verbose>true</docker.verbose>
61         <ccsdk.project.version>${project.version}</ccsdk.project.version>
62         <base.image.name>onap/ccsdk-alpine-j11-image</base.image.name>
63         <base.image.version>1.2.2</base.image.version>
64         <image.name>onap/ccsdk-apps-ms-neng</image.name>
65         <timestamp>${maven.build.timestamp}</timestamp>
66         <maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>    
67                 <ccsdk.project.version>${project.version}</ccsdk.project.version>
68                 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
69     </properties>
70
71     <dependencies>
72         <dependency>
73             <groupId>io.swagger</groupId>
74             <artifactId>swagger-core</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-starter-web</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.springframework.boot</groupId>
82             <artifactId>spring-boot-starter-jersey</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.springframework.boot</groupId>
86             <artifactId>spring-boot-starter-actuator</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-loader-tools</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-test</artifactId>
95             <scope>test</scope>
96         </dependency>
97         <dependency>
98             <groupId>org.springframework.boot</groupId>
99             <artifactId>spring-boot-starter-tomcat</artifactId>
100             <scope>compile</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.springframework.boot</groupId>
104             <artifactId>spring-boot-starter-data-jpa</artifactId>
105             <scope>compile</scope>
106         </dependency>
107         <dependency>
108             <groupId>org.apache.httpcomponents</groupId>
109             <artifactId>httpclient</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>javax.ws.rs</groupId>
113             <artifactId>javax.ws.rs-api</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>commons-lang</groupId>
117             <artifactId>commons-lang</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.liquibase</groupId>
121             <artifactId>liquibase-core</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.mariadb.jdbc</groupId>
125             <artifactId>mariadb-java-client</artifactId>
126         </dependency>
127         <dependency>
128             <groupId>com.h2database</groupId>
129             <artifactId>h2</artifactId>
130         </dependency>
131         <dependency>
132             <groupId>org.springframework.boot</groupId>
133             <artifactId>spring-boot-configuration-processor</artifactId>
134             <optional>true</optional>
135         </dependency>
136         <dependency>
137             <groupId>org.springframework</groupId>
138             <artifactId>spring-test</artifactId>
139             <scope>test</scope>
140         </dependency>
141         <dependency>
142             <groupId>org.springframework</groupId>
143             <artifactId>spring-aop</artifactId>
144         </dependency>
145         <dependency>
146             <groupId>org.springframework</groupId>
147             <artifactId>spring-beans</artifactId>
148         </dependency>
149         <dependency>
150             <groupId>org.springframework</groupId>
151             <artifactId>spring-beans</artifactId>
152         </dependency>
153         <dependency>
154             <groupId>org.springframework</groupId>
155             <artifactId>spring-context</artifactId>
156         </dependency>
157         <dependency>
158             <groupId>org.springframework</groupId>
159             <artifactId>spring-core</artifactId>
160         </dependency>
161         <dependency>
162             <groupId>org.springframework</groupId>
163             <artifactId>spring-expression</artifactId>
164         </dependency>
165         <dependency>
166             <groupId>org.springframework</groupId>
167             <artifactId>spring-web</artifactId>
168         </dependency>
169
170         <dependency>
171             <groupId>org.elasticsearch</groupId>
172             <artifactId>elasticsearch</artifactId>
173             <version>7.13.4</version>
174         </dependency>
175         <dependency>
176             <groupId>io.searchbox</groupId>
177             <artifactId>jest</artifactId>
178             <version>5.3.3</version>
179         </dependency>
180         <dependency>
181             <groupId>org.onap.ccsdk.sli.core</groupId>
182             <artifactId>utils-provider</artifactId>
183             <version>${ccsdk.sli.version}</version>
184         </dependency>
185         <dependency>
186             <groupId>junit</groupId>
187             <artifactId>junit</artifactId>
188             <scope>test</scope>
189         </dependency>
190     </dependencies>
191
192     <build>
193         <finalName>NetworkElementNameGen</finalName>
194         <resources>
195             <resource>
196                 <directory>src/main/resources</directory>
197                 <filtering>true</filtering>
198                 <includes>
199                     <include>**/*</include>
200                 </includes>
201             </resource>
202             <resource>
203                 <directory>opt/aai/keystore</directory>
204                 <targetPath>../opt/aai/keystore</targetPath>
205                 <filtering>false</filtering>
206                 <includes>
207                     <include>**/*</include>
208                 </includes>
209             </resource>
210
211             <resource>
212                 <directory>opt/etc/config</directory>
213                 <targetPath>../opt/etc/config</targetPath>
214                 <filtering>true</filtering>
215                 <includes>
216                     <include>**/*</include>
217                 </includes>
218             </resource>
219             <resource>
220                 <directory>opt/etc/keystore</directory>
221                 <targetPath>../opt/etc/keystore</targetPath>
222                 <filtering>false</filtering>
223                 <includes>
224                     <include>**/*</include>
225                 </includes>
226             </resource>
227             <resource>
228                 <directory>opt/etc/truststore</directory>
229                 <targetPath>../opt/etc/truststore</targetPath>
230                 <filtering>false</filtering>
231                 <includes>
232                     <include>**/*</include>
233                 </includes>
234             </resource>
235         </resources>
236         <pluginManagement>
237             <plugins>
238                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
239                 <plugin>
240                     <groupId>org.eclipse.m2e</groupId>
241                     <artifactId>lifecycle-mapping</artifactId>
242                     <version>1.0.0</version>
243                     <configuration>
244                         <lifecycleMappingMetadata>
245                             <pluginExecutions>
246                                 <pluginExecution>
247                                     <pluginExecutionFilter>
248                                         <groupId>
249                                             org.apache.maven.plugins
250                                         </groupId>
251                                         <artifactId>
252                                             maven-checkstyle-plugin
253                                         </artifactId>
254                                         <versionRange>
255                                             [2.17,)
256                                         </versionRange>
257                                         <goals>
258                                             <goal>check</goal>
259                                         </goals>
260                                     </pluginExecutionFilter>
261                                     <action>
262                                         <ignore/>
263                                     </action>
264                                 </pluginExecution>
265                                 <pluginExecution>
266                                     <pluginExecutionFilter>
267                                         <groupId>
268                                             org.codehaus.mojo
269                                         </groupId>
270                                         <artifactId>
271                                             properties-maven-plugin
272                                         </artifactId>
273                                         <versionRange>
274                                             [1.0.0,)
275                                         </versionRange>
276                                         <goals>
277                                             <goal>
278                                                 set-system-properties
279                                             </goal>
280                                         </goals>
281                                     </pluginExecutionFilter>
282                                     <action>
283                                         <ignore/>
284                                     </action>
285                                 </pluginExecution>
286                             </pluginExecutions>
287                         </lifecycleMappingMetadata>
288                     </configuration>
289                 </plugin>
290             </plugins>
291         </pluginManagement>
292         <plugins>
293
294             <plugin>
295                 <groupId>org.codehaus.groovy.maven</groupId>
296                 <artifactId>gmaven-plugin</artifactId>
297                 <version>1.0</version>
298                 <executions>
299                     <execution>
300                         <phase>validate</phase>
301                         <goals>
302                             <goal>execute</goal>
303                         </goals>
304                         <configuration>
305                             <source>${basedir}/../../TagVersion.groovy</source>
306                         </configuration>
307                     </execution>
308                 </executions>
309             </plugin>
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-surefire-plugin</artifactId>
313                 <configuration>
314                     <argLine>${surefireArgLine}</argLine>
315                     <skipTests>${skip.unit.tests}</skipTests>
316                     <excludes>
317                         <exclude>**/IT*.java</exclude>
318                     </excludes>
319                 </configuration>
320             </plugin>
321             <plugin>
322                 <groupId>org.apache.maven.plugins</groupId>
323                 <artifactId>maven-failsafe-plugin</artifactId>
324                 <executions>
325                     <execution>
326                         <id>integration-tests</id>
327                         <goals>
328                             <goal>integration-test</goal>
329                             <goal>verify</goal>
330                         </goals>
331                         <configuration>
332                             <argLine>${failsafeArgLine}</argLine>
333                             <skipTests>${skip.integration.tests}</skipTests>
334                         </configuration>
335                     </execution>
336                 </executions>
337             </plugin>
338             <plugin>
339                 <artifactId>maven-dependency-plugin</artifactId>
340             </plugin>
341             <plugin>
342                 <groupId>com.github.kongchen</groupId>
343                 <artifactId>swagger-maven-plugin</artifactId>
344                 <version>3.1.3</version>
345                 <configuration>
346                     <apiSources>
347                         <apiSource>
348                             <locations>org.onap.ccsdk.apps.ms.neng.service.rs</locations>
349                             <basePath>/web</basePath>
350                             <info>
351                                 <title>${project.artifactId} Service</title>
352                                 <version>${project.version}</version>
353                             </info>
354                             <swaggerDirectory>${swagger.directory}</swaggerDirectory>
355                         </apiSource>
356                     </apiSources>
357                 </configuration>
358                 <executions>
359                     <execution>
360                         <phase>package</phase>
361                         <goals>
362                             <goal>generate</goal>
363                         </goals>
364                     </execution>
365                 </executions>
366             </plugin>
367
368             <plugin>
369                 <groupId>org.codehaus.mojo</groupId>
370                 <artifactId>exec-maven-plugin</artifactId>
371             </plugin>
372
373             <plugin>
374                 <groupId>org.springframework.boot</groupId>
375                 <artifactId>spring-boot-maven-plugin</artifactId>
376                 <executions>
377                     <execution>
378                         <goals>
379                             <goal>repackage</goal>
380                         </goals>
381                     </execution>
382                 </executions>
383             </plugin>
384         </plugins>
385     </build>
386
387     <profiles>
388         <profile>
389             <id>all-tests</id>
390             <properties>
391                 <build.profile.id>all-tests</build.profile.id>
392                 <skip.integration.tests>false</skip.integration.tests>
393                 <skip.unit.tests>false</skip.unit.tests>
394             </properties>
395         </profile>
396         <profile>
397             <id>dev</id>
398         </profile>
399         <profile>
400             <id>integration-test</id>
401             <properties>
402                 <build.profile.id>integration-test</build.profile.id>
403                 <skip.integration.tests>false</skip.integration.tests>
404                 <skip.unit.tests>true</skip.unit.tests>
405             </properties>
406         </profile>
407
408         <profile>
409             <id>blackduck</id>
410             <activation>
411                 <property>
412                     <name>blackduck-scan</name>
413                 </property>
414             </activation>
415             <build>
416                 <plugins>
417                     <plugin>
418                         <groupId>com.blackducksoftware.integration</groupId>
419                         <artifactId>hub-maven-plugin</artifactId>
420                         <version>1.4.0</version>
421                         <inherited>false</inherited>
422                         <configuration>
423                             <hubProjectName>${project.name}</hubProjectName>
424                             <outputDirectory>${project.basedir}</outputDirectory>
425                         </configuration>
426                         <executions>
427                             <execution>
428                                 <id>create-bdio-file</id>
429                                 <phase>package</phase>
430                                 <goals>
431                                     <goal>createHubOutput</goal>
432                                 </goals>
433                             </execution>
434                         </executions>
435                     </plugin>
436                 </plugins>
437             </build>
438         </profile>
439
440         <profile>
441             <id>docker</id>
442             <build>
443                 <plugins>
444                     <plugin>
445                         <artifactId>maven-resources-plugin</artifactId>
446                         <version>2.6</version>
447                         <executions>
448                             <execution>
449                                 <id>copy-dockerfile</id>
450                                 <goals>
451                                     <goal>copy-resources</goal>
452                                 </goals>
453                                 <phase>validate</phase>
454                                 <configuration>
455                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
456                                     <resources>
457                                         <resource>
458                                             <directory>src/main/docker</directory>
459                                             <includes>
460                                                 <include>startService.sh</include>
461                                                 <include>Dockerfile</include>
462                                             </includes>
463                                             <filtering>true</filtering>
464                                         </resource>
465                                     </resources>
466                                 </configuration>
467                             </execution>
468                             <execution>
469                                 <id>copy-app-jar</id>
470                                 <goals>
471                                     <goal>copy-resources</goal>
472                                 </goals>
473                                 <phase>package</phase>
474                                 <configuration>
475                                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
476                                     <resources>
477                                         <resource>
478                                             <directory>${basedir}/target/</directory>
479                                             <includes>
480                                                 <include>NetworkElementNameGen.jar</include>
481                                             </includes>
482                                             <filtering>false</filtering>
483                                         </resource>
484                                     </resources>
485                                 </configuration>
486                             </execution>
487                             <execution>
488                                 <id>copy-config</id>
489                                 <goals>
490                                     <goal>copy-resources</goal>
491                                 </goals>
492                                 <phase>validate</phase>
493                                 <configuration>
494                                     <outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
495                                     <resources>
496                                         <resource>
497                                             <directory>${basedir}/opt/etc/config</directory>
498                                             <includes>
499                                                 <include>*</include>
500                                             </includes>
501                                             <filtering>true</filtering>
502                                         </resource>
503                                     </resources>
504                                 </configuration>
505                             </execution>
506                         </executions>
507                     </plugin>
508
509
510                     <plugin>
511                         <groupId>io.fabric8</groupId>
512                         <artifactId>docker-maven-plugin</artifactId>
513                         <version>0.28.0</version>
514                         <inherited>false</inherited>
515                         <configuration>
516                             <images>
517                                 <image>
518                                     <name>${image.name}</name>
519                                     <build>
520                                         <cleanup>try</cleanup>
521                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
522                                         <tags>
523                                                                                         <tag>${project.docker.latestminortag.version}</tag>
524                                                                                         <tag>${project.docker.latestfulltag.version}</tag>
525                                                                                         <tag>${project.docker.latesttagtimestamp.version}</tag>
526                                         </tags>
527                                     </build>
528                                 </image>
529                             </images>
530                             <verbose>true</verbose>
531                         </configuration>
532                         <executions>
533                             <execution>
534                                 <id>generate-images</id>
535                                 <phase>package</phase>
536                                 <goals>
537                                     <goal>build</goal>
538                                 </goals>
539                             </execution>
540                             <execution>
541                                 <id>push-images</id>
542                                 <phase>${docker.push.phase}</phase>
543                                 <goals>
544                                     <goal>build</goal>
545                                     <goal>push</goal>
546                                 </goals>
547                             </execution>
548                         </executions>
549                     </plugin>
550                 </plugins>
551             </build>
552         </profile>
553
554     </profiles>
555 </project>