Change openjdk baseOS img to integration-java11
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-tca-web / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ================================================================================
4   ~ Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
5   ~ Copyright (c) 2021 Samsung Electronics. All rights reserved.
6   ~ ================================================================================
7   ~ Modifications Copyright (C) 2019 IBM
8   ~ ================================================================================
9   ~ Licensed under the Apache License, Version 2.0 (the "License");
10   ~ you may not use this file except in compliance with the License.
11   ~ You may obtain a copy of the License at
12   ~
13   ~      http://www.apache.org/licenses/LICENSE-2.0
14   ~
15   ~ Unless required by applicable law or agreed to in writing, software
16   ~ distributed under the License is distributed on an "AS IS" BASIS,
17   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   ~ See the License for the specific language governing permissions and
19   ~ limitations under the License.
20   ~ ============LICENSE_END=========================================================
21   ~
22   -->
23
24 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xmlns="http://maven.apache.org/POM/4.0.0"
26          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
27
28     <modelVersion>4.0.0</modelVersion>
29
30     <parent>
31         <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
32         <artifactId>dcae-analytics</artifactId>
33         <version>1.3.0-SNAPSHOT</version>
34     </parent>
35
36     <artifactId>dcae-analytics-tca-web</artifactId>
37     <packaging>jar</packaging>
38
39     <!-- THE MODULE CONTAINS WEB RELATED CODE FOR TCA -->
40     <name>DCAE Analytics TCA Web</name>
41     <description>Contains Web related code for TCA</description>
42
43     <properties>
44         <main.basedir>${project.parent.basedir}</main.basedir>
45         <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
46         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>  
47     </properties>
48
49     <dependencies>
50
51         <!-- PROJECT DEPENDENCIES -->
52         <dependency>
53             <groupId>${project.groupId}</groupId>
54             <artifactId>dcae-analytics-web</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>${project.groupId}</groupId>
58             <artifactId>dcae-analytics-tca-core</artifactId>
59         </dependency>
60
61
62         <!-- SPRING DEPENDENCIES -->
63         <dependency>
64             <groupId>org.springframework.boot</groupId>
65             <artifactId>spring-boot-starter-actuator</artifactId>
66             <exclusions>
67                 <exclusion>
68                     <groupId>io.undertow</groupId>
69                     <artifactId>undertow-core</artifactId>
70               </exclusion>
71             </exclusions>
72
73         </dependency>
74         <dependency>
75             <groupId>io.micrometer</groupId>
76             <artifactId>micrometer-registry-prometheus</artifactId>
77         </dependency>
78
79
80         <!-- SPRING CONFIGURATION META DATA ANNOTATION PROCESSOR -->
81         <dependency>
82             <groupId>org.springframework.boot</groupId>
83             <artifactId>spring-boot-configuration-processor</artifactId>
84             <optional>true</optional>
85         </dependency>
86
87         <!-- CODE GENERATION -->
88         <dependency>
89             <groupId>org.projectlombok</groupId>
90             <artifactId>lombok</artifactId>
91             <scope>provided</scope>
92         </dependency>
93
94         <!-- FIND BUGS -->
95         <dependency>
96             <groupId>com.google.code.findbugs</groupId>
97             <artifactId>jsr305</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>com.google.code.findbugs</groupId>
101             <artifactId>annotations</artifactId>
102         </dependency>
103
104         <!-- REST API SWAGGER -->
105         <dependency>
106             <groupId>io.springfox</groupId>
107             <artifactId>springfox-swagger2</artifactId>
108         </dependency>
109         <dependency>
110             <groupId>io.springfox</groupId>
111             <artifactId>springfox-swagger-ui</artifactId>
112         </dependency>
113
114         <!-- TEST DEPENDENCIES -->
115         <dependency>
116             <groupId>${project.groupId}</groupId>
117             <artifactId>dcae-analytics-test</artifactId>
118         </dependency>
119         <!-- https://mvnrepository.com/artifact/io.undertow/undertow-core -->
120       <dependency>
121         <groupId>io.undertow</groupId>
122         <artifactId>undertow-core</artifactId>
123       </dependency>
124         <dependency>
125             <groupId>io.netty</groupId>
126             <artifactId>netty-handler</artifactId>
127             <version>4.1.54.Final</version>
128         </dependency>
129         <dependency>
130             <groupId>io.netty</groupId>
131             <artifactId>netty-handler-proxy</artifactId>
132             <version>4.1.54.Final</version>
133         </dependency>
134
135     </dependencies>
136
137     <dependencyManagement>
138         <dependencies>
139             <dependency>
140                 <groupId>org.springframework</groupId>
141                 <artifactId>spring-core</artifactId>
142                 <version>5.1.12.RELEASE</version>
143             </dependency>
144         </dependencies>
145     </dependencyManagement>
146
147     <build>
148         <resources>
149             <resource>
150                 <directory>${project.basedir}/src/main/resources</directory>
151             </resource>
152             <resource>
153                 <directory>${project.build.directory}/git</directory>
154             </resource>
155         </resources>
156
157         <plugins>
158             <plugin>
159                 <groupId>pl.project13.maven</groupId>
160                 <artifactId>git-commit-id-plugin</artifactId>
161             </plugin>
162             <plugin>
163                 <groupId>org.springframework.boot</groupId>
164                 <artifactId>spring-boot-maven-plugin</artifactId>
165             </plugin>
166             <!-- DOCKER PLUGIN -->
167             <plugin>
168                    <groupId>com.spotify</groupId>
169                    <artifactId>dockerfile-maven-plugin</artifactId>
170                    <version>1.4.10</version>
171                      <configuration>
172                           <contextDirectory>${project.basedir}</contextDirectory>
173                           <repository>${docker.repository}/${docker.image.name}</repository>
174                           <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
175                        <buildArgs>
176                              <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
177                              <DEPENDENCIES_DIR>${dependency.dir.name}</DEPENDENCIES_DIR>
178                              <DOCKER_ARTIFACT_DIR>/opt</DOCKER_ARTIFACT_DIR>
179                              <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
180                        </buildArgs>
181                  </configuration>
182                  <executions>
183                         <execution>
184                                 <id>build-image</id>
185                                 <phase>install</phase>
186                                 <goals>
187                                         <goal>build</goal>
188                                 </goals>
189                         </execution>
190                         <execution>
191                                <id>tag-version</id>
192                                <phase>install</phase>
193                                <goals>
194                                       <goal>tag</goal>
195                                       <goal>push</goal>
196                                </goals>
197                                 <configuration>
198                                         <tag>${project.version}</tag>
199                                 </configuration>
200                         </execution>
201                         <execution>
202                                <id>tag-version-ts</id>
203                                <phase>install</phase>
204                                <goals>
205                                       <goal>tag</goal>
206                                       <goal>push</goal>
207                                </goals>
208                                 <configuration>
209                                         <tag>${project.version}-${maven.build.timestamp}Z</tag>
210                                 </configuration>
211                         </execution>
212                 </executions>
213            </plugin>
214         </plugins>
215     </build>
216 </project>