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