Merge "Add more logs and handling DecoderException"
[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.certservice</groupId>
20         <artifactId>aaf-certservice</artifactId>
21         <version>1.0.0-SNAPSHOT</version>
22     </parent>
23     <artifactId>aaf-certservice-api</artifactId>
24     <version>1.0.0-SNAPSHOT</version>
25     <name>aaf-certservice-api</name>
26     <description>AAF Certification Service Api</description>
27     <packaging>jar</packaging>
28
29     <dependencies>
30         <dependency>
31             <groupId>org.springframework.boot</groupId>
32             <artifactId>spring-boot-starter-web</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.springframework.boot</groupId>
36             <artifactId>spring-boot-starter-log4j2</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>org.springframework.boot</groupId>
40             <artifactId>spring-boot-starter-test</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.mockito</groupId>
44             <artifactId>mockito-core</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.springframework.boot</groupId>
48             <artifactId>spring-boot-starter-actuator</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>org.springdoc</groupId>
52             <artifactId>springdoc-openapi-ui</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.bouncycastle</groupId>
56             <artifactId>bcpkix-jdk15on</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.bouncycastle</groupId>
60             <artifactId>bcprov-jdk15on</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>com.google.code.gson</groupId>
64             <artifactId>gson</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.assertj</groupId>
68             <artifactId>assertj-core</artifactId>
69         </dependency>
70     </dependencies>
71
72     <build>
73         <pluginManagement>
74             <plugins>
75                 <plugin>
76                     <groupId>org.springframework.boot</groupId>
77                     <artifactId>spring-boot-maven-plugin</artifactId>
78                     <version>${spring-boot-starter.version}</version>
79                 </plugin>
80                 <plugin>
81                     <artifactId>maven-javadoc-plugin</artifactId>
82                     <version>${maven-javadoc-plugin.version}</version>
83                 </plugin>
84                 <plugin>
85                     <groupId>org.apache.maven.plugins</groupId>
86                     <artifactId>maven-surefire-plugin</artifactId>
87                     <version>${maven-surefire-plugin.version}</version>
88                 </plugin>
89             </plugins>
90         </pluginManagement>
91         <plugins>
92             <plugin>
93                 <groupId>org.springframework.boot</groupId>
94                 <artifactId>spring-boot-maven-plugin</artifactId>
95                 <executions>
96                     <execution>
97                         <goals>
98                             <goal>repackage</goal>
99                         </goals>
100                     </execution>
101                     <execution>
102                         <id>pre-integration-test</id>
103                         <goals>
104                             <goal>start</goal>
105                         </goals>
106                     </execution>
107                     <execution>
108                         <id>post-integration-test</id>
109                         <goals>
110                             <goal>stop</goal>
111                         </goals>
112                     </execution>
113                 </executions>
114             </plugin>
115             <plugin>
116                 <artifactId>maven-javadoc-plugin</artifactId>
117                 <configuration>
118                     <quiet>true</quiet>
119                     <verbose>false</verbose>
120                     <useStandardDocletOptions>false</useStandardDocletOptions>
121                     <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
122                 </configuration>
123                 <executions>
124                     <execution>
125                         <id>aggregate</id>
126                         <phase>site</phase>
127                         <goals>
128                             <goal>aggregate</goal>
129                         </goals>
130                     </execution>
131                     <execution>
132                         <id>attach-javadoc</id>
133                         <goals>
134                             <goal>jar</goal>
135                         </goals>
136                     </execution>
137                 </executions>
138             </plugin>
139             <plugin>
140                 <groupId>org.springdoc</groupId>
141                 <artifactId>springdoc-openapi-maven-plugin</artifactId>
142                 <version>${springdoc-openapi-maven-plugin.version}</version>
143                 <executions>
144                     <execution>
145                         <phase>integration-test</phase>
146                         <goals>
147                             <goal>generate</goal>
148                         </goals>
149                     </execution>
150                 </executions>
151                 <configuration>
152                     <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
153                     <outputFileName>api-docs.json</outputFileName>
154                     <outputDir>${project.build.directory}</outputDir>
155                 </configuration>
156             </plugin>
157         </plugins>
158     </build>
159
160     <profiles>
161         <profile>
162             <id>docker-staging</id>
163             <properties>
164                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
165                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
166             </properties>
167         </profile>
168
169         <profile>
170             <id>docker</id>
171             <activation>
172                 <activeByDefault>false</activeByDefault>
173             </activation>
174             <properties>
175                 <os.detected.name>linux</os.detected.name>
176                 <os.detected.arch>x86_64</os.detected.arch>
177                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
178             </properties>
179             <build>
180                 <plugins>
181                     <plugin>
182                         <groupId>io.fabric8</groupId>
183                         <artifactId>docker-maven-plugin</artifactId>
184                         <version>${docker-maven-plugin.version}</version>
185                         <executions>
186                             <execution>
187                                 <id>docker-build-image</id>
188                                 <phase>package</phase>
189                                 <goals>
190                                     <goal>build</goal>
191                                 </goals>
192                             </execution>
193                             <execution>
194                                 <id>docker-push-image</id>
195                                 <phase>deploy</phase>
196                                 <goals>
197                                     <goal>push</goal>
198                                 </goals>
199                             </execution>
200                         </executions>
201                         <configuration>
202                             <skipPush>${skipDockerPush}</skipPush>
203                             <verbose>true</verbose>
204                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
205                             <images>
206                                 <image>
207                                     <alias>${project.artifactId}</alias>
208                                     <name>${docker-image.namespace}/${docker-image.name}
209                                     </name>
210                                     <registry>${docker-image.registry}</registry>
211                                     <build>
212                                         <dockerFileDir>${project.basedir}</dockerFileDir>
213                                         <tags>
214                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
215                                             <tag>${project.version}</tag>
216                                             <tag>${docker-image.latest}</tag>
217                                         </tags>
218                                     </build>
219                                 </image>
220                             </images>
221                         </configuration>
222                     </plugin>
223                 </plugins>
224             </build>
225         </profile>
226     </profiles>
227
228     <distributionManagement>
229         <repository>
230             <id>ecomp-releases</id>
231             <name>AAF Release Repository</name>
232             <url>${nexusproxy}${releaseNexusPath}</url>
233         </repository>
234         <snapshotRepository>
235             <id>ecomp-snapshots</id>
236             <name>AAF Snapshot Repository</name>
237             <url>${nexusproxy}${snapshotNexusPath}</url>
238         </snapshotRepository>
239         <site>
240             <id>ecomp-site</id>
241             <url>dav:${nexusproxy}${sitePath}</url>
242         </site>
243     </distributionManagement>
244
245 </project>