a9f8d7fed6f9d8cf6606b6d15cdba85b6a691a12
[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 AT&T Intellectual Property. All rights reserved.
7   ~  ================================================================================
8   ~  Licensed under the Apache License, Version 2.0 (the "License");
9   ~  you may not use this file except in compliance with the License.
10   ~  You may obtain a copy of the License at
11   ~
12   ~       http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~  Unless required by applicable law or agreed to in writing, software
15   ~  distributed under the License is distributed on an "AS IS" BASIS,
16   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~  See the License for the specific language governing permissions and
18   ~  limitations under the License.
19   ~  ============LICENSE_END=========================================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.oparent</groupId>
28         <artifactId>oparent</artifactId>
29         <version>2.0.0</version>
30     </parent>
31     <groupId>org.onap.dcaegen2.platform.mod</groupId>
32     <artifactId>catalog-service</artifactId>
33     <version>1.0.0-SNAPSHOT</version>
34
35     <properties>
36         <java.version>11</java.version>
37         <maven.compiler.source>${java.version}</maven.compiler.source>
38         <maven.compiler.target>${java.version}</maven.compiler.target>
39         <spring-boot.version>2.2.9.RELEASE</spring-boot.version>
40         <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>
41     </properties>
42     <dependencies>
43         <dependency>
44             <groupId>org.springframework.boot</groupId>
45             <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>com.google.code.gson</groupId>
49             <artifactId>gson</artifactId>
50             <version>2.8.6</version>
51         </dependency>
52         <dependency>
53             <groupId>org.springframework.boot</groupId>
54             <artifactId>spring-boot-starter-web</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-webflux</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-validation</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-test</artifactId>
67             <scope>test</scope>
68             <exclusions>
69                 <exclusion>
70                     <groupId>org.junit.vintage</groupId>
71                     <artifactId>junit-vintage-engine</artifactId>
72                 </exclusion>
73             </exclusions>
74         </dependency>
75         <dependency>
76             <groupId>io.projectreactor</groupId>
77             <artifactId>reactor-test</artifactId>
78             <scope>test</scope>
79         </dependency>
80         <dependency>
81             <groupId>io.springfox</groupId>
82             <artifactId>springfox-swagger2</artifactId>
83             <version>2.9.2</version>
84         </dependency>
85         <dependency>
86             <groupId>io.springfox</groupId>
87             <artifactId>springfox-swagger-ui</artifactId>
88             <version>2.9.2</version>
89         </dependency>
90         <dependency>
91             <groupId>org.projectlombok</groupId>
92             <artifactId>lombok</artifactId>
93             <version>1.18.10</version>
94         </dependency>
95         <dependency>
96             <groupId>com.squareup.okhttp3</groupId>
97             <artifactId>okhttp</artifactId>
98             <version>4.0.1</version>
99         </dependency>
100         <dependency>
101             <groupId>com.squareup.okhttp3</groupId>
102             <artifactId>mockwebserver</artifactId>
103             <version>4.0.1</version>
104             <scope>test</scope>
105         </dependency>
106     </dependencies>
107
108     <dependencyManagement>
109         <dependencies>
110             <dependency>
111                 <!-- Import dependency management from Spring Boot -->
112                 <groupId>org.springframework.boot</groupId>
113                 <artifactId>spring-boot-dependencies</artifactId>
114                 <version>2.2.5.RELEASE</version>
115                 <type>pom</type>
116                 <scope>import</scope>
117             </dependency>
118         </dependencies>
119     </dependencyManagement>
120
121     <build>
122         <plugins>
123             <plugin>
124                 <groupId>org.springframework.boot</groupId>
125                 <artifactId>spring-boot-maven-plugin</artifactId>
126                 <version>${spring-boot.version}</version>
127                 <executions>
128                     <execution>
129                         <goals>
130                             <goal>repackage</goal>
131                         </goals>
132                     </execution>
133                 </executions>
134             </plugin>
135             <plugin>
136                 <groupId>com.spotify</groupId>
137                 <artifactId>dockerfile-maven-plugin</artifactId>
138                 <version>${dockerfile-maven-plugin.version}</version>
139                 <configuration>
140                     <contextDirectory>${project.basedir}</contextDirectory>
141                     <repository>onap/${project.groupId}.${project.artifactId}</repository>
142                     <buildArgs>
143                         <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
144                         <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
145                     </buildArgs>
146                 </configuration>
147                 <executions>
148                     <execution>
149                         <id>build-image</id>
150                         <phase>package</phase>
151                         <goals>
152                             <goal>build</goal>
153                         </goals>
154                     </execution>
155                     <execution>
156                         <id>tag-and-push-image-latest</id>
157                         <phase>package</phase>
158                         <goals>
159                             <goal>tag</goal>
160                             <goal>push</goal>
161                         </goals>
162                         <configuration>
163                             <repository>onap/${project.groupId}.${project.artifactId}</repository>
164                             <tag>latest</tag>
165                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
166                         </configuration>
167                     </execution>
168                     <execution>
169                         <id>tag-and-push-image-with-version</id>
170                         <phase>package</phase>
171                         <goals>
172                             <goal>tag</goal>
173                             <goal>push</goal>
174                         </goals>
175                         <configuration>
176                             <repository>onap/${project.groupId}.${project.artifactId}</repository>
177                             <tag>${project.version}</tag>
178                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
179                         </configuration>
180                     </execution>
181                 </executions>
182             </plugin>
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-surefire-plugin</artifactId>
186                 <version>2.22.2</version>
187             </plugin>
188         </plugins>
189         <finalName>mod-catalog-service</finalName>
190     </build>
191     <reporting>
192         <plugins>
193             <plugin>
194                 <groupId>org.codehaus.mojo</groupId>
195                 <artifactId>cobertura-maven-plugin</artifactId>
196                 <version>2.7</version>
197             </plugin>
198         </plugins>
199     </reporting>
200 </project>