Distributing Blueprint to DCAE Dashboard Issue-ID: DCAEGEN2-2385>
[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   ~  ================================================================================
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         <dependency>
114             <groupId>org.json</groupId>
115             <artifactId>json</artifactId>
116             <version>20190722</version>
117         </dependency>
118     </dependencies>
119
120     <dependencyManagement>
121         <dependencies>
122             <dependency>
123                 <!-- Import dependency management from Spring Boot -->
124                 <groupId>org.springframework.boot</groupId>
125                 <artifactId>spring-boot-dependencies</artifactId>
126                 <version>2.2.5.RELEASE</version>
127                 <type>pom</type>
128                 <scope>import</scope>
129             </dependency>
130         </dependencies>
131     </dependencyManagement>
132
133     <build>
134         <plugins>
135             <plugin>
136                 <groupId>org.springframework.boot</groupId>
137                 <artifactId>spring-boot-maven-plugin</artifactId>
138                 <version>${spring-boot.version}</version>
139                 <executions>
140                     <execution>
141                         <goals>
142                             <goal>repackage</goal>
143                         </goals>
144                     </execution>
145                 </executions>
146             </plugin>
147             <plugin>
148                 <groupId>com.spotify</groupId>
149                 <artifactId>dockerfile-maven-plugin</artifactId>
150                 <version>${dockerfile-maven-plugin.version}</version>
151                 <configuration>
152                     <contextDirectory>${project.basedir}</contextDirectory>
153                     <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
154                     <buildArgs>
155                         <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
156                         <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
157                     </buildArgs>
158                 </configuration>
159                 <executions>
160                     <execution>
161                         <id>build-image</id>
162                         <phase>package</phase>
163                         <goals>
164                             <goal>build</goal>
165                         </goals>
166                     </execution>
167                     <execution>
168                         <id>tag-and-push-image-latest</id>
169                         <phase>package</phase>
170                         <goals>
171                             <goal>tag</goal>
172                             <goal>push</goal>
173                         </goals>
174                         <configuration>
175                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
176                             <tag>latest</tag>
177                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
178                         </configuration>
179                     </execution>
180                     <execution>
181                         <id>tag-and-push-image-with-version</id>
182                         <phase>package</phase>
183                         <goals>
184                             <goal>tag</goal>
185                             <goal>push</goal>
186                         </goals>
187                         <configuration>
188                             <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
189                             <tag>${project.version}</tag>
190                             <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
191                         </configuration>
192                     </execution>
193                 </executions>
194             </plugin>
195             <plugin>
196                 <groupId>org.apache.maven.plugins</groupId>
197                 <artifactId>maven-surefire-plugin</artifactId>
198                 <version>2.22.2</version>
199             </plugin>
200         </plugins>
201         <finalName>mod-catalog-service</finalName>
202     </build>
203     <reporting>
204         <plugins>
205             <plugin>
206                 <groupId>org.codehaus.mojo</groupId>
207                 <artifactId>cobertura-maven-plugin</artifactId>
208                 <version>2.7</version>
209             </plugin>
210         </plugins>
211     </reporting>
212 </project>