9a82b7bf49cf5e49d57fc3264c282e83fcb88421
[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         <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
42     </properties>
43     <dependencies>
44         <dependency>
45             <groupId>org.onap.dcaegen2.platform.mod</groupId>
46             <artifactId>blueprint-generator</artifactId>
47             <version>1.5.2</version>
48             <scope>compile</scope>
49         </dependency>
50         <dependency>
51             <groupId>org.springframework.boot</groupId>
52             <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>com.google.code.gson</groupId>
56             <artifactId>gson</artifactId>
57             <version>2.8.6</version>
58         </dependency>
59         <dependency>
60             <groupId>org.springframework.boot</groupId>
61             <artifactId>spring-boot-starter-web</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>org.springframework.boot</groupId>
65             <artifactId>spring-boot-starter-webflux</artifactId>
66         </dependency>
67         <dependency>
68             <groupId>org.springframework.boot</groupId>
69             <artifactId>spring-boot-starter-validation</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.springframework.boot</groupId>
73             <artifactId>spring-boot-starter-test</artifactId>
74             <scope>test</scope>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.junit.vintage</groupId>
78                     <artifactId>junit-vintage-engine</artifactId>
79                 </exclusion>
80             </exclusions>
81         </dependency>
82         <dependency>
83             <groupId>io.projectreactor</groupId>
84             <artifactId>reactor-test</artifactId>
85             <scope>test</scope>
86         </dependency>
87         <dependency>
88             <groupId>io.springfox</groupId>
89             <artifactId>springfox-swagger2</artifactId>
90             <version>2.9.2</version>
91         </dependency>
92         <dependency>
93             <groupId>io.springfox</groupId>
94             <artifactId>springfox-swagger-ui</artifactId>
95             <version>2.9.2</version>
96         </dependency>
97         <dependency>
98             <groupId>org.projectlombok</groupId>
99             <artifactId>lombok</artifactId>
100             <version>1.18.10</version>
101         </dependency>
102         <dependency>
103             <groupId>com.squareup.okhttp3</groupId>
104             <artifactId>okhttp</artifactId>
105             <version>4.2.2</version>
106         </dependency>
107         <dependency>
108             <groupId>com.squareup.okhttp3</groupId>
109             <artifactId>mockwebserver</artifactId>
110             <version>4.2.2</version>
111             <scope>test</scope>
112         </dependency>
113     </dependencies>
114
115     <dependencyManagement>
116         <dependencies>
117             <dependency>
118                 <!-- Import dependency management from Spring Boot -->
119                 <groupId>org.springframework.boot</groupId>
120                 <artifactId>spring-boot-dependencies</artifactId>
121                 <version>2.2.5.RELEASE</version>
122                 <type>pom</type>
123                 <scope>import</scope>
124             </dependency>
125         </dependencies>
126     </dependencyManagement>
127
128     <build>
129         <plugins>
130             <plugin>
131                 <groupId>org.springframework.boot</groupId>
132                 <artifactId>spring-boot-maven-plugin</artifactId>
133                 <version>${spring-boot.version}</version>
134                 <executions>
135                     <execution>
136                         <goals>
137                             <goal>repackage</goal>
138                         </goals>
139                     </execution>
140                 </executions>
141             </plugin>
142             <plugin>
143                 <groupId>com.spotify</groupId>
144                 <artifactId>dockerfile-maven-plugin</artifactId>
145                 <version>${dockerfile-maven-plugin.version}</version>
146                 <configuration>
147                     <contextDirectory>${project.basedir}</contextDirectory>
148                     <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
149                     <buildArgs>
150                         <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
151                         <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
152                     </buildArgs>
153                 </configuration>
154                 <executions>
155                     <execution>
156                         <id>build-image</id>
157                         <phase>package</phase>
158                         <goals>
159                             <goal>build</goal>
160                         </goals>
161                     </execution>
162                     <execution>
163                         <id>tag-and-push-image-latest</id>
164                         <phase>package</phase>
165                         <goals>
166                             <goal>tag</goal>
167                             <goal>push</goal>
168                         </goals>
169                         <configuration>
170                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
171                             <tag>latest</tag>
172                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
173                         </configuration>
174                     </execution>
175                     <execution>
176                         <id>tag-and-push-image-with-version</id>
177                         <phase>package</phase>
178                         <goals>
179                             <goal>tag</goal>
180                             <goal>push</goal>
181                         </goals>
182                         <configuration>
183                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
184                             <tag>${project.version}</tag>
185                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
186                         </configuration>
187                     </execution>
188                 </executions>
189             </plugin>
190             <plugin>
191                 <groupId>org.apache.maven.plugins</groupId>
192                 <artifactId>maven-surefire-plugin</artifactId>
193                 <version>2.22.2</version>
194             </plugin>
195         </plugins>
196         <finalName>mod-catalog-service</finalName>
197     </build>
198     <reporting>
199         <plugins>
200             <plugin>
201                 <groupId>org.codehaus.mojo</groupId>
202                 <artifactId>cobertura-maven-plugin</artifactId>
203                 <version>2.7</version>
204             </plugin>
205         </plugins>
206     </reporting>
207 </project>