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