[OOM-CERT-SERVICE]Fix Apache log4j2 vulnerability
[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.apache.logging.log4j</groupId>
36             <artifactId>log4j-slf4j-impl</artifactId>
37             <version>${log4j2.version}</version>
38         </dependency>
39         <dependency>
40             <groupId>org.apache.logging.log4j</groupId>
41             <artifactId>log4j-api</artifactId>
42             <version>${log4j2.version}</version>
43         </dependency>
44         <dependency>
45             <groupId>org.apache.logging.log4j</groupId>
46             <artifactId>log4j-core</artifactId>
47             <version>${log4j2.version}</version>
48         </dependency>
49         <dependency>
50             <groupId>org.apache.logging.log4j</groupId>
51             <artifactId>log4j-jul</artifactId>
52             <version>${log4j2.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>org.springframework.boot</groupId>
56             <artifactId>spring-boot-starter-test</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.mockito</groupId>
60             <artifactId>mockito-core</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.springframework.boot</groupId>
64             <artifactId>spring-boot-starter-actuator</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.springdoc</groupId>
68             <artifactId>springdoc-openapi-ui</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.bouncycastle</groupId>
72             <artifactId>bcpkix-jdk15on</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.bouncycastle</groupId>
76             <artifactId>bcprov-jdk15on</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>com.google.code.gson</groupId>
80             <artifactId>gson</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.assertj</groupId>
84             <artifactId>assertj-core</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.apache.httpcomponents</groupId>
88             <artifactId>httpclient</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>commons-io</groupId>
92             <artifactId>commons-io</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.springframework.cloud</groupId>
96             <artifactId>spring-cloud-starter-config</artifactId>
97         </dependency>
98         <dependency>
99             <groupId>org.springframework.cloud</groupId>
100             <artifactId>spring-cloud-starter-bootstrap</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>org.hibernate.validator</groupId>
104             <artifactId>hibernate-validator</artifactId>
105         </dependency>
106     </dependencies>
107
108     <build>
109         <plugins>
110             <plugin>
111                 <groupId>org.springframework.boot</groupId>
112                 <artifactId>spring-boot-maven-plugin</artifactId>
113             </plugin>
114             <plugin>
115                 <groupId>org.apache.maven.plugins</groupId>
116                 <artifactId>maven-surefire-plugin</artifactId>
117             </plugin>
118             <plugin>
119                 <groupId>org.apache.maven.plugins</groupId>
120                 <artifactId>maven-javadoc-plugin</artifactId>
121             </plugin>
122             <plugin>
123                 <groupId>org.springdoc</groupId>
124                 <artifactId>springdoc-openapi-maven-plugin</artifactId>
125             </plugin>
126         </plugins>
127     </build>
128
129     <profiles>
130         <profile>
131             <id>dev</id>
132             <dependencies>
133                 <dependency>
134                     <groupId>org.springframework.boot</groupId>
135                     <artifactId>spring-boot-devtools</artifactId>
136                     <optional>true</optional>
137                 </dependency>
138             </dependencies>
139         </profile>
140         <profile>
141             <id>docker-staging</id>
142             <properties>
143                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
144                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
145             </properties>
146         </profile>
147
148         <profile>
149             <id>docker</id>
150             <activation>
151                 <activeByDefault>false</activeByDefault>
152             </activation>
153             <properties>
154                 <os.detected.name>linux</os.detected.name>
155                 <os.detected.arch>x86_64</os.detected.arch>
156                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
157             </properties>
158             <build>
159                 <plugins>
160                     <plugin>
161                         <groupId>io.fabric8</groupId>
162                         <artifactId>docker-maven-plugin</artifactId>
163                         <version>${docker-maven-plugin.version}</version>
164                         <executions>
165                             <execution>
166                                 <id>docker-build-image</id>
167                                 <phase>package</phase>
168                                 <goals>
169                                     <goal>build</goal>
170                                 </goals>
171                             </execution>
172                             <execution>
173                                 <id>docker-push-image</id>
174                                 <phase>deploy</phase>
175                                 <goals>
176                                     <goal>push</goal>
177                                 </goals>
178                             </execution>
179                         </executions>
180                         <configuration>
181                             <skipPush>${skipDockerPush}</skipPush>
182                             <verbose>true</verbose>
183                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
184                             <images>
185                                 <image>
186                                     <alias>${project.artifactId}</alias>
187                                     <name>${docker-image.namespace}/${docker-image.name}:${docker-image.tag.latest}
188                                     </name>
189                                     <registry>${docker-image.registry}</registry>
190                                     <build>
191                                         <dockerFileDir>${project.basedir}</dockerFileDir>
192                                         <tags>
193                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
194                                         </tags>
195                                     </build>
196                                 </image>
197                             </images>
198                         </configuration>
199                     </plugin>
200                 </plugins>
201             </build>
202         </profile>
203     </profiles>
204
205     <distributionManagement>
206         <repository>
207             <id>ecomp-releases</id>
208             <name>OOM Release Repository</name>
209             <url>${nexusproxy}${releaseNexusPath}</url>
210         </repository>
211         <snapshotRepository>
212             <id>ecomp-snapshots</id>
213             <name>OOM Snapshot Repository</name>
214             <url>${nexusproxy}${snapshotNexusPath}</url>
215         </snapshotRepository>
216         <site>
217             <id>ecomp-site</id>
218             <url>dav:${nexusproxy}${sitePath}</url>
219         </site>
220     </distributionManagement>
221
222 </project>