Unify integration-* image usage
[dcaegen2/platform.git] / mod2 / catalog-service / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~  org.onap.dcae
5   ~  ================================================================================
6   ~  Copyright (c) 2020-2021 AT&T Intellectual Property. All rights reserved.
7   ~  Copyright (c) 2021 Samsung Electronics. All rights reserved.
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 <project xmlns="http://maven.apache.org/POM/4.0.0"
24          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.oparent</groupId>
29         <artifactId>oparent</artifactId>
30         <version>2.0.0</version>
31     </parent>
32     <groupId>org.onap.dcaegen2.platform.mod</groupId>
33     <artifactId>catalog-service</artifactId>
34     <version>1.0.2-SNAPSHOT</version>
35
36     <properties>
37         <java.version>11</java.version>
38         <maven.compiler.source>${java.version}</maven.compiler.source>
39         <maven.compiler.target>${java.version}</maven.compiler.target>
40         <spring-boot.version>2.2.9.RELEASE</spring-boot.version>
41         <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>
42         <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
43     </properties>
44     <dependencies>
45         <dependency>
46             <groupId>org.onap.dcaegen2.platform.mod</groupId>
47             <artifactId>blueprint-generator</artifactId>
48             <version>1.5.2</version>
49             <scope>compile</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.springframework.boot</groupId>
53             <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>com.google.code.gson</groupId>
57             <artifactId>gson</artifactId>
58             <version>2.8.6</version>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-web</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-webflux</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.springframework.boot</groupId>
70             <artifactId>spring-boot-starter-validation</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.springframework.boot</groupId>
74             <artifactId>spring-boot-starter-test</artifactId>
75             <scope>test</scope>
76             <exclusions>
77                 <exclusion>
78                     <groupId>org.junit.vintage</groupId>
79                     <artifactId>junit-vintage-engine</artifactId>
80                 </exclusion>
81             </exclusions>
82         </dependency>
83         <dependency>
84             <groupId>io.projectreactor</groupId>
85             <artifactId>reactor-test</artifactId>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>io.springfox</groupId>
90             <artifactId>springfox-swagger2</artifactId>
91             <version>2.9.2</version>
92         </dependency>
93         <dependency>
94             <groupId>io.springfox</groupId>
95             <artifactId>springfox-swagger-ui</artifactId>
96             <version>2.9.2</version>
97         </dependency>
98         <dependency>
99             <groupId>org.projectlombok</groupId>
100             <artifactId>lombok</artifactId>
101             <version>1.18.10</version>
102         </dependency>
103         <dependency>
104             <groupId>com.squareup.okhttp3</groupId>
105             <artifactId>okhttp</artifactId>
106             <version>4.2.2</version>
107         </dependency>
108         <dependency>
109             <groupId>com.squareup.okhttp3</groupId>
110             <artifactId>mockwebserver</artifactId>
111             <version>4.2.2</version>
112             <scope>test</scope>
113         </dependency>
114         <dependency>
115             <groupId>org.json</groupId>
116             <artifactId>json</artifactId>
117             <version>20190722</version>
118         </dependency>
119     </dependencies>
120
121     <dependencyManagement>
122         <dependencies>
123             <dependency>
124                 <!-- Import dependency management from Spring Boot -->
125                 <groupId>org.springframework.boot</groupId>
126                 <artifactId>spring-boot-dependencies</artifactId>
127                 <version>2.2.5.RELEASE</version>
128                 <type>pom</type>
129                 <scope>import</scope>
130             </dependency>
131         </dependencies>
132     </dependencyManagement>
133
134     <build>
135         <plugins>
136             <plugin>
137                 <groupId>org.springframework.boot</groupId>
138                 <artifactId>spring-boot-maven-plugin</artifactId>
139                 <version>${spring-boot.version}</version>
140                 <executions>
141                     <execution>
142                         <goals>
143                             <goal>repackage</goal>
144                         </goals>
145                     </execution>
146                 </executions>
147             </plugin>
148             <plugin>
149                 <groupId>com.spotify</groupId>
150                 <artifactId>dockerfile-maven-plugin</artifactId>
151                 <version>${dockerfile-maven-plugin.version}</version>
152                 <configuration>
153                     <contextDirectory>${project.basedir}</contextDirectory>
154                     <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
155                     <buildArgs>
156                         <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
157                         <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
158                     </buildArgs>
159                 </configuration>
160                 <executions>
161                     <execution>
162                         <id>build-image</id>
163                         <phase>package</phase>
164                         <goals>
165                             <goal>build</goal>
166                         </goals>
167                     </execution>
168                     <execution>
169                         <id>tag-and-push-image-latest</id>
170                         <phase>package</phase>
171                         <goals>
172                             <goal>tag</goal>
173                             <goal>push</goal>
174                         </goals>
175                         <configuration>
176                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
177                             <tag>latest</tag>
178                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
179                         </configuration>
180                     </execution>
181                     <execution>
182                         <id>tag-and-push-image-with-version</id>
183                         <phase>package</phase>
184                         <goals>
185                             <goal>tag</goal>
186                             <goal>push</goal>
187                         </goals>
188                         <configuration>
189                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
190                             <tag>${project.version}</tag>
191                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
192                         </configuration>
193                     </execution>
194                 </executions>
195             </plugin>
196             <plugin>
197                 <groupId>org.apache.maven.plugins</groupId>
198                 <artifactId>maven-surefire-plugin</artifactId>
199                 <version>2.22.2</version>
200             </plugin>
201         </plugins>
202         <finalName>mod-catalog-service</finalName>
203     </build>
204     <reporting>
205         <plugins>
206             <plugin>
207                 <groupId>org.codehaus.mojo</groupId>
208                 <artifactId>cobertura-maven-plugin</artifactId>
209                 <version>2.7</version>
210             </plugin>
211         </plugins>
212     </reporting>
213 </project>