Set Python and Ubuntu versions in .readthedocs.yaml
[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     <dependencyManagement>
30         <dependencies>
31             <dependency>
32                 <!-- Import dependency management from Spring Boot -->
33                 <groupId>org.springframework.boot</groupId>
34                 <artifactId>spring-boot-dependencies</artifactId>
35                 <version>${spring-boot-starter.version}</version>
36                 <type>pom</type>
37                 <scope>import</scope>
38             </dependency>
39         </dependencies>
40     </dependencyManagement>
41
42     <dependencies>
43         <dependency>
44             <groupId>org.springframework.boot</groupId>
45             <artifactId>spring-boot-starter-web</artifactId>
46             <version>${spring-boot-starter.version}</version>
47             <exclusions>
48                 <exclusion>
49                     <groupId>org.springframework.boot</groupId>
50                     <artifactId>spring-boot-starter-logging</artifactId>
51                 </exclusion>
52             </exclusions>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-log4j2</artifactId>
57             <version>${spring-boot-starter-log4j2.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>org.springframework.boot</groupId>
61             <artifactId>spring-boot-starter-test</artifactId>
62             <version>${spring-boot-starter.version}</version>
63             <scope>test</scope>
64             <exclusions>
65                 <exclusion>
66                     <groupId>org.junit.vintage</groupId>
67                     <artifactId>junit-vintage-engine</artifactId>
68                 </exclusion>
69             </exclusions>
70         </dependency>
71         <dependency>
72             <groupId>org.mockito</groupId>
73             <artifactId>mockito-core</artifactId>
74             <version>${mockito-core.version}</version>
75             <scope>test</scope>
76         </dependency>
77         <dependency>
78             <groupId>org.assertj</groupId>
79             <artifactId>assertj-core</artifactId>
80             <version>${assertj-core.version}</version>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-actuator</artifactId>
86             <version>${spring-boot-starter-actuator.version}</version>
87         </dependency>
88         <dependency>
89             <groupId>org.springdoc</groupId>
90             <artifactId>springdoc-openapi-ui</artifactId>
91             <version>${springdoc-openapi-ui.version}</version>
92         </dependency>
93         <dependency>
94             <groupId>org.bouncycastle</groupId>
95             <artifactId>bcpkix-jdk15on</artifactId>
96             <version>${bouncycastle.version}</version>
97         </dependency>
98         <dependency>
99             <groupId>org.bouncycastle</groupId>
100             <artifactId>bcprov-jdk15on</artifactId>
101             <version>${bouncycastle.version}</version>
102         </dependency>
103         <dependency>
104             <groupId>com.google.code.gson</groupId>
105             <artifactId>gson</artifactId>
106             <version>${gson.version}</version>
107         </dependency>
108     </dependencies>
109
110     <build>
111         <pluginManagement>
112             <plugins>
113                 <plugin>
114                     <groupId>org.springframework.boot</groupId>
115                     <artifactId>spring-boot-maven-plugin</artifactId>
116                     <version>${spring-boot-starter.version}</version>
117                 </plugin>
118                 <plugin>
119                     <artifactId>maven-javadoc-plugin</artifactId>
120                     <version>${maven-javadoc-plugin.version}</version>
121                 </plugin>
122                 <plugin>
123                     <groupId>org.apache.maven.plugins</groupId>
124                     <artifactId>maven-surefire-plugin</artifactId>
125                     <version>${maven-surefire-plugin.version}</version>
126                 </plugin>
127             </plugins>
128         </pluginManagement>
129         <plugins>
130             <plugin>
131                 <groupId>org.springframework.boot</groupId>
132                 <artifactId>spring-boot-maven-plugin</artifactId>
133                 <executions>
134                     <execution>
135                         <goals>
136                             <goal>repackage</goal>
137                         </goals>
138                     </execution>
139                     <execution>
140                         <id>pre-integration-test</id>
141                         <goals>
142                             <goal>start</goal>
143                         </goals>
144                     </execution>
145                     <execution>
146                         <id>post-integration-test</id>
147                         <goals>
148                             <goal>stop</goal>
149                         </goals>
150                     </execution>
151                 </executions>
152             </plugin>
153             <plugin>
154                 <artifactId>maven-javadoc-plugin</artifactId>
155                 <configuration>
156                     <quiet>true</quiet>
157                     <verbose>false</verbose>
158                     <useStandardDocletOptions>false</useStandardDocletOptions>
159                     <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
160                 </configuration>
161                 <executions>
162                     <execution>
163                         <id>aggregate</id>
164                         <phase>site</phase>
165                         <goals>
166                             <goal>aggregate</goal>
167                         </goals>
168                     </execution>
169                     <execution>
170                         <id>attach-javadoc</id>
171                         <goals>
172                             <goal>jar</goal>
173                         </goals>
174                     </execution>
175                 </executions>
176             </plugin>
177             <plugin>
178                 <groupId>org.springdoc</groupId>
179                 <artifactId>springdoc-openapi-maven-plugin</artifactId>
180                 <version>${springdoc-openapi-maven-plugin.version}</version>
181                 <executions>
182                     <execution>
183                         <phase>integration-test</phase>
184                         <goals>
185                             <goal>generate</goal>
186                         </goals>
187                     </execution>
188                 </executions>
189                 <configuration>
190                     <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
191                     <outputFileName>api-docs.json</outputFileName>
192                     <outputDir>${project.build.directory}</outputDir>
193                 </configuration>
194             </plugin>
195         </plugins>
196     </build>
197
198     <profiles>
199         <profile>
200             <id>docker-staging</id>
201             <properties>
202                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
203                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
204             </properties>
205         </profile>
206
207         <profile>
208             <id>docker</id>
209             <activation>
210                 <activeByDefault>false</activeByDefault>
211             </activation>
212             <properties>
213                 <os.detected.name>linux</os.detected.name>
214                 <os.detected.arch>x86_64</os.detected.arch>
215                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
216             </properties>
217             <build>
218                 <plugins>
219                     <plugin>
220                         <groupId>io.fabric8</groupId>
221                         <artifactId>docker-maven-plugin</artifactId>
222                         <version>${docker-maven-plugin.version}</version>
223                         <executions>
224                             <execution>
225                                 <id>docker-build-image</id>
226                                 <phase>package</phase>
227                                 <goals>
228                                     <goal>build</goal>
229                                 </goals>
230                             </execution>
231                             <execution>
232                                 <id>docker-push-image</id>
233                                 <phase>deploy</phase>
234                                 <goals>
235                                     <goal>push</goal>
236                                 </goals>
237                             </execution>
238                         </executions>
239                         <configuration>
240                             <skipPush>${skipDockerPush}</skipPush>
241                             <verbose>true</verbose>
242                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
243                             <images>
244                                 <image>
245                                     <alias>${project.artifactId}</alias>
246                                     <name>${docker-image.namespace}/${docker-image.name}
247                                     </name>
248                                     <registry>${docker-image.registry}</registry>
249                                     <build>
250                                         <dockerFileDir>${project.basedir}</dockerFileDir>
251                                         <tags>
252                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
253                                             <tag>${project.version}</tag>
254                                             <tag>${docker-image.latest}</tag>
255                                         </tags>
256                                     </build>
257                                 </image>
258                             </images>
259                         </configuration>
260                     </plugin>
261                 </plugins>
262             </build>
263         </profile>
264     </profiles>
265
266     <distributionManagement>
267         <repository>
268             <id>ecomp-releases</id>
269             <name>AAF Release Repository</name>
270             <url>${nexusproxy}${releaseNexusPath}</url>
271         </repository>
272         <snapshotRepository>
273             <id>ecomp-snapshots</id>
274             <name>AAF Snapshot Repository</name>
275             <url>${nexusproxy}${snapshotNexusPath}</url>
276         </snapshotRepository>
277         <site>
278             <id>ecomp-site</id>
279             <url>dav:${nexusproxy}${sitePath}</url>
280         </site>
281     </distributionManagement>
282
283 </project>