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         <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
55         <junit.version>5.5.2</junit.version>
56         <mockito-junit-jupiter.version>2.17.0</mockito-junit-jupiter.version>
57         <maven-shade-plugin.version>3.2.2</maven-shade-plugin.version>
58
59         <!-- Docker -->
60         <skipDockerPush>true</skipDockerPush>
61         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
62         <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry>
63         <docker-image.namespace>onap</docker-image.namespace>
64         <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name>
65         <docker-image.latest>${project.version}</docker-image.latest>
66         <version>${project.version}</version>
67         <docker.http_proxy/>
68         <immutables.version>2.7.5</immutables.version>
69
70
71     </properties>
72
73     <modules>
74         <module>certService</module>
75         <module>certServiceClient</module>
76     </modules>
77
78     <build>
79         <pluginManagement>
80             <plugins>
81                 <plugin>
82                     <groupId>org.springdoc</groupId>
83                     <artifactId>springdoc-openapi-maven-plugin</artifactId>
84                     <version>${springdoc-openapi-maven-plugin.version}</version>
85                     <executions>
86                         <execution>
87                             <phase>integration-test</phase>
88                             <goals>
89                                 <goal>generate</goal>
90                             </goals>
91                         </execution>
92                     </executions>
93                     <configuration>
94                         <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
95                         <outputFileName>api-docs.json</outputFileName>
96                         <outputDir>${project.build.directory}</outputDir>
97                     </configuration>
98                 </plugin>
99                 <plugin>
100                     <groupId>org.springframework.boot</groupId>
101                     <artifactId>spring-boot-maven-plugin</artifactId>
102                     <version>${spring-boot-starter.version}</version>
103                     <executions>
104                         <execution>
105                             <goals>
106                                 <goal>repackage</goal>
107                             </goals>
108                         </execution>
109                         <execution>
110                             <id>pre-integration-test</id>
111                             <goals>
112                                 <goal>start</goal>
113                             </goals>
114                         </execution>
115                         <execution>
116                             <id>post-integration-test</id>
117                             <goals>
118                                 <goal>stop</goal>
119                             </goals>
120                         </execution>
121                     </executions>
122                 </plugin>
123                 <plugin>
124                     <groupId>org.apache.maven.plugins</groupId>
125                     <artifactId>maven-javadoc-plugin</artifactId>
126                     <version>${maven-javadoc-plugin.version}</version>
127                     <configuration>
128                         <quiet>true</quiet>
129                         <verbose>false</verbose>
130                         <useStandardDocletOptions>false</useStandardDocletOptions>
131                         <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
132                     </configuration>
133                     <executions>
134                         <execution>
135                             <id>aggregate</id>
136                             <phase>site</phase>
137                             <goals>
138                                 <goal>aggregate</goal>
139                             </goals>
140                         </execution>
141                         <execution>
142                             <id>attach-javadoc</id>
143                             <goals>
144                                 <goal>jar</goal>
145                             </goals>
146                         </execution>
147                     </executions>
148                 </plugin>
149                 <plugin>
150                     <groupId>org.apache.maven.plugins</groupId>
151                     <artifactId>maven-surefire-plugin</artifactId>
152                     <version>${maven-surefire-plugin.version}</version>
153                 </plugin>
154             </plugins>
155         </pluginManagement>
156     </build>
157
158     <distributionManagement>
159         <repository>
160             <id>ecomp-releases</id>
161             <name>AAF Release Repository</name>
162             <url>${nexusproxy}${releaseNexusPath}</url>
163         </repository>
164         <snapshotRepository>
165             <id>ecomp-snapshots</id>
166             <name>AAF Snapshot Repository</name>
167             <url>${nexusproxy}${snapshotNexusPath}</url>
168         </snapshotRepository>
169         <site>
170             <id>ecomp-site</id>
171             <url>dav:${nexusproxy}${sitePath}</url>
172         </site>
173     </distributionManagement>
174
175     <dependencyManagement>
176
177         <dependencies>
178             <dependency>
179                 <groupId>org.springframework.boot</groupId>
180                 <artifactId>spring-boot-starter-web</artifactId>
181                 <version>${spring-boot-starter.version}</version>
182                 <exclusions>
183                     <exclusion>
184                         <groupId>org.springframework.boot</groupId>
185                         <artifactId>spring-boot-starter-logging</artifactId>
186                     </exclusion>
187                 </exclusions>
188             </dependency>
189             <dependency>
190                 <groupId>org.springframework.boot</groupId>
191                 <artifactId>spring-boot-starter-log4j2</artifactId>
192                 <version>${spring-boot-starter-log4j2.version}</version>
193             </dependency>
194             <dependency>
195                 <groupId>org.springframework.boot</groupId>
196                 <artifactId>spring-boot-starter-test</artifactId>
197                 <version>${spring-boot-starter.version}</version>
198                 <scope>test</scope>
199                 <exclusions>
200                     <exclusion>
201                         <groupId>org.junit.vintage</groupId>
202                         <artifactId>junit-vintage-engine</artifactId>
203                     </exclusion>
204                 </exclusions>
205             </dependency>
206             <dependency>
207                 <groupId>org.springframework.boot</groupId>
208                 <artifactId>spring-boot-starter-actuator</artifactId>
209                 <version>${spring-boot-starter-actuator.version}</version>
210             </dependency>
211             <dependency>
212                 <groupId>org.springdoc</groupId>
213                 <artifactId>springdoc-openapi-ui</artifactId>
214                 <version>${springdoc-openapi-ui.version}</version>
215             </dependency>
216             <dependency>
217                 <groupId>org.bouncycastle</groupId>
218                 <artifactId>bcpkix-jdk15on</artifactId>
219                 <version>${bouncycastle.version}</version>
220             </dependency>
221             <dependency>
222                 <groupId>org.bouncycastle</groupId>
223                 <artifactId>bcprov-jdk15on</artifactId>
224                 <version>${bouncycastle.version}</version>
225             </dependency>
226             <dependency>
227                 <groupId>com.google.code.gson</groupId>
228                 <artifactId>gson</artifactId>
229                 <version>${gson.version}</version>
230             </dependency>
231             <dependency>
232                 <!-- Import dependency management from Spring Boot -->
233                 <groupId>org.springframework.boot</groupId>
234                 <artifactId>spring-boot-dependencies</artifactId>
235                 <version>${spring-boot-starter.version}</version>
236                 <type>pom</type>
237                 <scope>import</scope>
238             </dependency>
239
240             <!--   Test dependecies    -->
241             <dependency>
242                 <groupId>org.assertj</groupId>
243                 <artifactId>assertj-core</artifactId>
244                 <version>${assertj-core.version}</version>
245                 <scope>test</scope>
246             </dependency>
247             <dependency>
248                 <groupId>org.junit.jupiter</groupId>
249                 <artifactId>junit-jupiter-engine</artifactId>
250                 <version>${junit.version}</version>
251                 <scope>test</scope>
252             </dependency>
253             <dependency>
254                 <groupId>org.junit.jupiter</groupId>
255                 <artifactId>junit-jupiter-api</artifactId>
256                 <version>${junit.version}</version>
257                 <scope>test</scope>
258             </dependency>
259             <dependency>
260                 <groupId>org.mockito</groupId>
261                 <artifactId>mockito-core</artifactId>
262                 <version>${mockito-core.version}</version>
263                 <scope>test</scope>
264             </dependency>
265
266             <dependency>
267                 <groupId>org.mockito</groupId>
268                 <artifactId>mockito-junit-jupiter</artifactId>
269                 <version>${mockito-junit-jupiter.version}</version>
270                 <scope>test</scope>
271             </dependency>
272
273         </dependencies>
274     </dependencyManagement>
275
276 </project>