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