Merge "Plugins reorder"
[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         <dependency>
71             <groupId>org.apache.httpcomponents</groupId>
72             <artifactId>httpclient</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>commons-io</groupId>
76             <artifactId>commons-io</artifactId>
77         </dependency>
78
79     </dependencies>
80
81     <build>
82         <plugins>
83             <plugin>
84                 <groupId>org.springframework.boot</groupId>
85                 <artifactId>spring-boot-maven-plugin</artifactId>
86             </plugin>
87             <plugin>
88                 <groupId>org.apache.maven.plugins</groupId>
89                 <artifactId>maven-surefire-plugin</artifactId>
90             </plugin>
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-javadoc-plugin</artifactId>
94             </plugin>
95             <plugin>
96                 <groupId>org.springdoc</groupId>
97                 <artifactId>springdoc-openapi-maven-plugin</artifactId>
98             </plugin>
99         </plugins>
100     </build>
101
102     <profiles>
103         <profile>
104             <id>dev</id>
105             <dependencies>
106                 <dependency>
107                     <groupId>org.springframework.boot</groupId>
108                     <artifactId>spring-boot-devtools</artifactId>
109                     <optional>true</optional>
110                 </dependency>
111             </dependencies>
112         </profile>
113         <profile>
114             <id>docker-staging</id>
115             <properties>
116                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
117                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
118             </properties>
119         </profile>
120
121         <profile>
122             <id>docker</id>
123             <activation>
124                 <activeByDefault>false</activeByDefault>
125             </activation>
126             <properties>
127                 <os.detected.name>linux</os.detected.name>
128                 <os.detected.arch>x86_64</os.detected.arch>
129                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
130             </properties>
131             <build>
132                 <plugins>
133                     <plugin>
134                         <groupId>io.fabric8</groupId>
135                         <artifactId>docker-maven-plugin</artifactId>
136                         <version>${docker-maven-plugin.version}</version>
137                         <executions>
138                             <execution>
139                                 <id>docker-build-image</id>
140                                 <phase>package</phase>
141                                 <goals>
142                                     <goal>build</goal>
143                                 </goals>
144                             </execution>
145                             <execution>
146                                 <id>docker-push-image</id>
147                                 <phase>deploy</phase>
148                                 <goals>
149                                     <goal>push</goal>
150                                 </goals>
151                             </execution>
152                         </executions>
153                         <configuration>
154                             <skipPush>${skipDockerPush}</skipPush>
155                             <verbose>true</verbose>
156                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
157                             <images>
158                                 <image>
159                                     <alias>${project.artifactId}</alias>
160                                     <name>${docker-image.namespace}/${docker-image.name}
161                                     </name>
162                                     <registry>${docker-image.registry}</registry>
163                                     <build>
164                                         <dockerFileDir>${project.basedir}</dockerFileDir>
165                                         <tags>
166                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
167                                             <tag>${project.version}</tag>
168                                             <tag>${docker-image.latest}</tag>
169                                         </tags>
170                                     </build>
171                                 </image>
172                             </images>
173                         </configuration>
174                     </plugin>
175                 </plugins>
176             </build>
177         </profile>
178     </profiles>
179
180     <distributionManagement>
181         <repository>
182             <id>ecomp-releases</id>
183             <name>AAF Release Repository</name>
184             <url>${nexusproxy}${releaseNexusPath}</url>
185         </repository>
186         <snapshotRepository>
187             <id>ecomp-snapshots</id>
188             <name>AAF Snapshot Repository</name>
189             <url>${nexusproxy}${snapshotNexusPath}</url>
190         </snapshotRepository>
191         <site>
192             <id>ecomp-site</id>
193             <url>dav:${nexusproxy}${sitePath}</url>
194         </site>
195     </distributionManagement>
196
197 </project>