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