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