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