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