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