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