Merge "Plugins reorder"
[oom/platform/cert-service.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ================================================================================
4         Copyright (c) 2020 Nokia. All rights reserved.
5         ================================================================================
6         Licensed under the Apache License, Version 2.0 (the "License"); you may not
7         use this file except in compliance with the License. You may obtain a copy
8         of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
9         by applicable law or agreed to in writing, software distributed under the
10         License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
11         OF ANY KIND, either express or implied. See the License for the specific
12         language governing permissions and limitations under the License.
13         ============LICENSE_END=========================================================
14 -->
15 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
17     <modelVersion>4.0.0</modelVersion>
18
19     <parent>
20         <groupId>org.onap.oparent</groupId>
21         <artifactId>oparent</artifactId>
22         <version>3.0.0</version>
23     </parent>
24     <groupId>org.onap.aaf.certservice</groupId>
25     <artifactId>aaf-certservice</artifactId>
26     <version>1.0.0-SNAPSHOT</version>
27     <name>aaf-certservice</name>
28     <description>AAF Certification Service</description>
29     <packaging>pom</packaging>
30
31     <properties>
32         <nexusproxy>https://nexus.onap.org</nexusproxy>
33         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
34         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
35         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
36         <sitePath>/content/sites/site/org/onap/aaf/cert-service/${project.artifactId}/${project.version}</sitePath>
37         <java.version>11</java.version>
38         <springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs</springdoc-openapi-maven-plugin.apiDocsUrl>
39
40         <!-- Dependencies -->
41         <assertj-core.version>3.15.0</assertj-core.version>
42         <mockito-core.version>3.2.4</mockito-core.version>
43         <spring-core.version>5.2.3.RELEASE</spring-core.version>
44         <spring-boot-starter.version>2.2.4.RELEASE</spring-boot-starter.version>
45         <maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
46         <maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
47         <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version>
48         <spring-boot-starter-log4j2.version>2.1.5.RELEASE</spring-boot-starter-log4j2.version>
49         <springdoc-openapi-ui.version>1.2.30</springdoc-openapi-ui.version>
50         <bouncycastle.version>1.60</bouncycastle.version>
51         <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
52         <springdoc-openapi-maven-plugin.version>0.2</springdoc-openapi-maven-plugin.version>
53         <gson.version>2.8.6</gson.version>
54         <httpcomponents.version>4.5.6</httpcomponents.version>
55         <commons-io.version>2.6</commons-io.version>
56         <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
57         <junit.version>5.5.2</junit.version>
58         <mockito-junit-jupiter.version>2.17.0</mockito-junit-jupiter.version>
59         <maven-shade-plugin.version>3.2.2</maven-shade-plugin.version>
60
61         <!-- Docker -->
62         <skipDockerPush>true</skipDockerPush>
63         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
64         <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
65         <docker-image.namespace>onap</docker-image.namespace>
66         <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
67         <docker-image.latest>${project.version}</docker-image.latest>
68         <version>${project.version}</version>
69         <docker.http_proxy/>
70         <immutables.version>2.7.5</immutables.version>
71
72
73     </properties>
74
75     <modules>
76         <module>certService</module>
77         <module>certServiceClient</module>
78     </modules>
79
80     <build>
81         <pluginManagement>
82             <plugins>
83                 <plugin>
84                     <groupId>org.springdoc</groupId>
85                     <artifactId>springdoc-openapi-maven-plugin</artifactId>
86                     <version>${springdoc-openapi-maven-plugin.version}</version>
87                     <executions>
88                         <execution>
89                             <phase>integration-test</phase>
90                             <goals>
91                                 <goal>generate</goal>
92                             </goals>
93                         </execution>
94                     </executions>
95                     <configuration>
96                         <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
97                         <outputFileName>api-docs.json</outputFileName>
98                         <outputDir>${project.build.directory}</outputDir>
99                     </configuration>
100                 </plugin>
101                 <plugin>
102                     <groupId>org.springdoc</groupId>
103                     <artifactId>springdoc-openapi-maven-plugin</artifactId>
104                     <version>${springdoc-openapi-maven-plugin.version}</version>
105                     <executions>
106                         <execution>
107                             <phase>integration-test</phase>
108                             <goals>
109                                 <goal>generate</goal>
110                             </goals>
111                         </execution>
112                     </executions>
113                     <configuration>
114                         <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
115                         <outputFileName>api-docs.json</outputFileName>
116                         <outputDir>${project.build.directory}</outputDir>
117                     </configuration>
118                 </plugin>
119                 <plugin>
120                     <groupId>org.springframework.boot</groupId>
121                     <artifactId>spring-boot-maven-plugin</artifactId>
122                     <version>${spring-boot-starter.version}</version>
123                     <executions>
124                         <execution>
125                             <goals>
126                                 <goal>repackage</goal>
127                             </goals>
128                         </execution>
129                         <execution>
130                             <id>pre-integration-test</id>
131                             <goals>
132                                 <goal>start</goal>
133                             </goals>
134                         </execution>
135                         <execution>
136                             <id>post-integration-test</id>
137                             <goals>
138                                 <goal>stop</goal>
139                             </goals>
140                         </execution>
141                     </executions>
142                 </plugin>
143                 <plugin>
144                     <groupId>org.apache.maven.plugins</groupId>
145                     <artifactId>maven-javadoc-plugin</artifactId>
146                     <version>${maven-javadoc-plugin.version}</version>
147                     <configuration>
148                         <quiet>true</quiet>
149                         <verbose>false</verbose>
150                         <useStandardDocletOptions>false</useStandardDocletOptions>
151                         <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
152                     </configuration>
153                     <executions>
154                         <execution>
155                             <id>aggregate</id>
156                             <phase>site</phase>
157                             <goals>
158                                 <goal>aggregate</goal>
159                             </goals>
160                         </execution>
161                         <execution>
162                             <id>attach-javadoc</id>
163                             <goals>
164                                 <goal>jar</goal>
165                             </goals>
166                         </execution>
167                     </executions>
168                 </plugin>
169                 <plugin>
170                     <groupId>org.apache.maven.plugins</groupId>
171                     <artifactId>maven-surefire-plugin</artifactId>
172                     <version>${maven-surefire-plugin.version}</version>
173                 </plugin>
174             </plugins>
175         </pluginManagement>
176     </build>
177
178     <distributionManagement>
179         <repository>
180             <id>ecomp-releases</id>
181             <name>AAF Release Repository</name>
182             <url>${nexusproxy}${releaseNexusPath}</url>
183         </repository>
184         <snapshotRepository>
185             <id>ecomp-snapshots</id>
186             <name>AAF Snapshot Repository</name>
187             <url>${nexusproxy}${snapshotNexusPath}</url>
188         </snapshotRepository>
189         <site>
190             <id>ecomp-site</id>
191             <url>dav:${nexusproxy}${sitePath}</url>
192         </site>
193     </distributionManagement>
194
195     <dependencyManagement>
196
197         <dependencies>
198             <dependency>
199                 <groupId>org.springframework.boot</groupId>
200                 <artifactId>spring-boot-starter-web</artifactId>
201                 <version>${spring-boot-starter.version}</version>
202                 <exclusions>
203                     <exclusion>
204                         <groupId>org.springframework.boot</groupId>
205                         <artifactId>spring-boot-starter-logging</artifactId>
206                     </exclusion>
207                 </exclusions>
208             </dependency>
209             <dependency>
210                 <groupId>org.springframework.boot</groupId>
211                 <artifactId>spring-boot-starter-log4j2</artifactId>
212                 <version>${spring-boot-starter-log4j2.version}</version>
213             </dependency>
214             <dependency>
215                 <groupId>org.springframework.boot</groupId>
216                 <artifactId>spring-boot-starter-test</artifactId>
217                 <version>${spring-boot-starter.version}</version>
218                 <scope>test</scope>
219                 <exclusions>
220                     <exclusion>
221                         <groupId>org.junit.vintage</groupId>
222                         <artifactId>junit-vintage-engine</artifactId>
223                     </exclusion>
224                 </exclusions>
225             </dependency>
226             <dependency>
227                 <groupId>org.springframework.boot</groupId>
228                 <artifactId>spring-boot-starter-actuator</artifactId>
229                 <version>${spring-boot-starter-actuator.version}</version>
230             </dependency>
231             <dependency>
232                 <groupId>org.springdoc</groupId>
233                 <artifactId>springdoc-openapi-ui</artifactId>
234                 <version>${springdoc-openapi-ui.version}</version>
235             </dependency>
236             <dependency>
237                 <groupId>org.bouncycastle</groupId>
238                 <artifactId>bcpkix-jdk15on</artifactId>
239                 <version>${bouncycastle.version}</version>
240             </dependency>
241             <dependency>
242                 <groupId>org.bouncycastle</groupId>
243                 <artifactId>bcprov-jdk15on</artifactId>
244                 <version>${bouncycastle.version}</version>
245             </dependency>
246             <dependency>
247                 <groupId>com.google.code.gson</groupId>
248                 <artifactId>gson</artifactId>
249                 <version>${gson.version}</version>
250             </dependency>
251             <dependency>
252                 <groupId>org.apache.httpcomponents</groupId>
253                 <artifactId>httpclient</artifactId>
254                 <version>${httpcomponents.version}</version>
255             </dependency>
256             <dependency>
257                 <groupId>commons-io</groupId>
258                 <artifactId>commons-io</artifactId>
259                 <version>${commons-io.version}</version>
260             </dependency>
261             <dependency>
262                 <!-- Import dependency management from Spring Boot -->
263                 <groupId>org.springframework.boot</groupId>
264                 <artifactId>spring-boot-dependencies</artifactId>
265                 <version>${spring-boot-starter.version}</version>
266                 <type>pom</type>
267                 <scope>import</scope>
268             </dependency>
269
270             <!--   Test dependecies    -->
271             <dependency>
272                 <groupId>org.assertj</groupId>
273                 <artifactId>assertj-core</artifactId>
274                 <version>${assertj-core.version}</version>
275                 <scope>test</scope>
276             </dependency>
277             <dependency>
278                 <groupId>org.junit.jupiter</groupId>
279                 <artifactId>junit-jupiter-engine</artifactId>
280                 <version>${junit.version}</version>
281                 <scope>test</scope>
282             </dependency>
283             <dependency>
284                 <groupId>org.junit.jupiter</groupId>
285                 <artifactId>junit-jupiter-api</artifactId>
286                 <version>${junit.version}</version>
287                 <scope>test</scope>
288             </dependency>
289             <dependency>
290                 <groupId>org.mockito</groupId>
291                 <artifactId>mockito-core</artifactId>
292                 <version>${mockito-core.version}</version>
293                 <scope>test</scope>
294             </dependency>
295
296             <dependency>
297                 <groupId>org.mockito</groupId>
298                 <artifactId>mockito-junit-jupiter</artifactId>
299                 <version>${mockito-junit-jupiter.version}</version>
300                 <scope>test</scope>
301             </dependency>
302
303         </dependencies>
304     </dependencyManagement>
305
306 </project>