Add decoding CSR received from client.
[oom/platform/cert-service.git] / certService / 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     <parent>
19         <groupId>org.onap.aaf</groupId>
20         <artifactId>aaf-certservice-parent</artifactId>
21         <version>0.0.1-SNAPSHOT</version>
22     </parent>
23     <artifactId>cert-service</artifactId>
24     <version>0.0.1-SNAPSHOT</version>
25     <name>cert-service</name>
26     <description>Certification service</description>
27     <packaging>jar</packaging>
28
29     <properties>
30         <java.version>11</java.version>
31         <assertj-core.version>3.11.1</assertj-core.version>
32         <mockito-core.version>3.2.4</mockito-core.version>
33         <spring-core.version>5.2.3.RELEASE</spring-core.version>
34         <spring-boot-starter.version>2.2.4.RELEASE</spring-boot-starter.version>
35         <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
36         <maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
37         <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version>
38         <spring-boot-starter-log4j2.version>2.1.5.RELEASE</spring-boot-starter-log4j2.version>
39         <springdoc-openapi-ui.version>1.2.21</springdoc-openapi-ui.version>
40         <bouncycastle.version>1.60</bouncycastle.version>
41         <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
42     </properties>
43
44     <dependencyManagement>
45         <dependencies>
46             <dependency>
47                 <!-- Import dependency management from Spring Boot -->
48                 <groupId>org.springframework.boot</groupId>
49                 <artifactId>spring-boot-dependencies</artifactId>
50                 <version>${spring-boot-starter.version}</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54         </dependencies>
55     </dependencyManagement>
56
57     <dependencies>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-web</artifactId>
61             <version>${spring-boot-starter.version}</version>
62             <exclusions>
63                 <exclusion>
64                     <groupId>org.springframework.boot</groupId>
65                     <artifactId>spring-boot-starter-logging</artifactId>
66                 </exclusion>
67             </exclusions>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-log4j2</artifactId>
72             <version>${spring-boot-starter-log4j2.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-test</artifactId>
77             <version>${spring-boot-starter.version}</version>
78             <scope>test</scope>
79             <exclusions>
80                 <exclusion>
81                     <groupId>org.junit.vintage</groupId>
82                     <artifactId>junit-vintage-engine</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86         <dependency>
87             <groupId>org.mockito</groupId>
88             <artifactId>mockito-core</artifactId>
89             <version>${mockito-core.version}</version>
90             <scope>test</scope>
91         </dependency>
92         <dependency>
93             <groupId>org.assertj</groupId>
94             <artifactId>assertj-core</artifactId>
95             <version>${assertj-core.version}</version>
96             <scope>test</scope>
97         </dependency>
98         <dependency>
99             <groupId>org.springframework.boot</groupId>
100             <artifactId>spring-boot-starter-actuator</artifactId>
101             <version>${spring-boot-starter-actuator.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>org.springdoc</groupId>
105             <artifactId>springdoc-openapi-ui</artifactId>
106             <version>${springdoc-openapi-ui.version}</version>
107         </dependency>
108         <dependency>
109             <groupId>org.bouncycastle</groupId>
110             <artifactId>bcpkix-jdk15on</artifactId>
111             <version>${bouncycastle.version}</version>
112         </dependency>
113         <dependency>
114             <groupId>org.bouncycastle</groupId>
115             <artifactId>bcprov-jdk15on</artifactId>
116             <version>${bouncycastle.version}</version>
117         </dependency>
118     </dependencies>
119
120     <build>
121         <pluginManagement>
122             <plugins>
123                 <plugin>
124                     <groupId>org.springframework.boot</groupId>
125                     <artifactId>spring-boot-maven-plugin</artifactId>
126                     <version>${spring-boot-starter.version}</version>
127                 </plugin>
128                 <plugin>
129                     <artifactId>maven-javadoc-plugin</artifactId>
130                     <version>${maven-javadoc-plugin.version}</version>
131                 </plugin>
132                 <plugin>
133                     <groupId>org.apache.maven.plugins</groupId>
134                     <artifactId>maven-surefire-plugin</artifactId>
135                     <version>${maven-surefire-plugin.version}</version>
136                 </plugin>
137
138             </plugins>
139         </pluginManagement>
140         <plugins>
141             <plugin>
142                 <groupId>org.springframework.boot</groupId>
143                 <artifactId>spring-boot-maven-plugin</artifactId>
144                 <executions>
145                     <execution>
146                         <goals>
147                             <goal>repackage</goal>
148                         </goals>
149                     </execution>
150                 </executions>
151             </plugin>
152             <plugin>
153                 <artifactId>maven-javadoc-plugin</artifactId>
154                 <configuration>
155                     <quiet>true</quiet>
156                     <verbose>false</verbose>
157                     <useStandardDocletOptions>false</useStandardDocletOptions>
158                     <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
159                 </configuration>
160                 <executions>
161                     <execution>
162                         <id>aggregate</id>
163                         <phase>site</phase>
164                         <goals>
165                             <goal>aggregate</goal>
166                         </goals>
167                     </execution>
168                     <execution>
169                         <id>attach-javadoc</id>
170                         <goals>
171                             <goal>jar</goal>
172                         </goals>
173                     </execution>
174                 </executions>
175             </plugin>
176         </plugins>
177     </build>
178
179     <profiles>
180         <profile>
181             <id>docker</id>
182             <activation>
183                 <activeByDefault>false</activeByDefault>
184             </activation>
185             <build>
186                 <plugins>
187                     <plugin>
188                         <groupId>io.fabric8</groupId>
189                         <artifactId>docker-maven-plugin</artifactId>
190                         <version>${docker-maven-plugin.version}</version>
191                         <executions>
192                             <execution>
193                                 <id>start</id>
194                                 <phase>pre-integration-test</phase>
195                                 <goals>
196                                     <goal>build</goal>
197                                     <goal>start</goal>
198                                 </goals>
199                             </execution>
200                             <execution>
201                                 <id>stop</id>
202                                 <phase>post-integration-test</phase>
203                                 <goals>
204                                     <goal>stop</goal>
205                                 </goals>
206                             </execution>
207                         </executions>
208                         <configuration>
209                             <images>
210                                 <image>
211                                     <name>cert-service</name>
212                                     <build>
213                                         <dockerFile>${project.basedir}/Dockerfile</dockerFile >
214                                     </build>
215                                     <run>
216                                         <ports>
217                                             <port>8080:8080</port>
218                                         </ports>
219                                         <wait>
220                                             <!-- Check for this URL to return a 200 return code .... -->
221                                             <url>http://localhost:8080/actuator/health</url>
222                                             <time>120000</time>
223                                         </wait>
224                                     </run>
225                                 </image>
226                             </images>
227                         </configuration>
228                     </plugin>
229                 </plugins>
230             </build>
231         </profile>
232     </profiles>
233 </project>