Merge "Migrate to gson"
[vnfsdk/refrepo.git] / vnfmarket-be / vnf-sdk-marketplace / pom.xml
1 <?xml version="1.0"?>
2 <!-- Copyright 2017 Huawei Technologies Co., Ltd. Licensed under the Apache
3     License, Version 2.0 (the "License"); you may not use this file except in
4     compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5     Unless required by applicable law or agreed to in writing, software distributed
6     under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
7     OR CONDITIONS OF ANY KIND, either express or implied. See the License for
8     the specific language governing permissions and limitations under the License. -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <parent>
12         <groupId>org.onap.vnfsdk.refrepo</groupId>
13         <artifactId>vnf-sdk-marketplace-core-parent</artifactId>
14         <version>1.4.0-SNAPSHOT</version>
15     </parent>
16
17     <modelVersion>4.0.0</modelVersion>
18     <artifactId>vnf-sdk-marketplace</artifactId>
19     <name>vnf-sdk-marketplace/vnf-sdk-marketplace</name>
20     <packaging>war</packaging>
21
22     <properties>
23         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24         <cxf.version>3.2.5</cxf.version>
25         <!-- slf4j.version>1.6.1</slf4j.version> -->
26         <maven.test.skip>false</maven.test.skip>
27         <maven.test.failure.ignore>false</maven.test.failure.ignore>
28         <swagger-ui.version>3.12.0</swagger-ui.version>
29     </properties>
30
31
32
33     <dependencies>
34     <!--  oclip -->
35           <dependency>
36             <groupId>org.onap.cli</groupId>
37             <artifactId>oclip-grpc-client</artifactId>
38             <version>5.0.2</version>
39           </dependency>
40         <dependency>
41             <groupId>org.apache.cxf</groupId>
42             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
43             <version>${cxf.version}</version>
44             <exclusions>
45                 <exclusion>
46                     <groupId>com.fasterxml.woodstox</groupId>
47                     <artifactId>woodstox-core</artifactId>
48                 </exclusion>
49             </exclusions>
50         </dependency>
51         <!-- added invulnerable version of woodstox-core -->
52         <dependency>
53             <groupId>com.fasterxml.woodstox</groupId>
54             <artifactId>woodstox-core</artifactId>
55             <version>5.3.0</version>
56         </dependency>
57         <dependency>
58             <groupId>org.apache.cxf</groupId>
59             <artifactId>cxf-rt-rs-client</artifactId>
60             <version>${cxf.version}</version>
61         </dependency>
62         <dependency>
63             <groupId>org.apache.cxf</groupId>
64             <artifactId>cxf-rt-transports-http-hc</artifactId>
65             <version>${cxf.version}</version>
66         </dependency>
67         <dependency>
68             <groupId>org.apache.logging.log4j</groupId>
69             <artifactId>log4j-slf4j-impl</artifactId>
70             <version>2.13.0</version>
71             <exclusions>
72                 <exclusion>
73                     <groupId>org.slf4j</groupId>
74                     <artifactId>slf4j-ext</artifactId>
75                 </exclusion>
76             </exclusions>
77         </dependency>
78
79         <dependency>
80             <groupId>org.eclipse.persistence</groupId>
81             <artifactId>javax.persistence</artifactId>
82             <version>2.1.0</version>
83         </dependency>
84
85         <!--excluded com.fasterxml.jackson.core:jackson-databind:jar:2.9.5
86             CVE-2018-11307-->
87         <dependency>
88             <groupId>io.swagger</groupId>
89             <artifactId>swagger-jersey2-jaxrs</artifactId>
90             <version>1.5.19</version>
91             <exclusions>
92                 <exclusion>
93                     <groupId>com.fasterxml.jackson.core</groupId>
94                     <artifactId>jackson-databind</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98         <!-- jersey -->
99 <!-- excluded jetty-util and added invulnerable version -->
100         <dependency>
101             <groupId>org.glassfish.jersey.containers</groupId>
102             <artifactId>jersey-container-jetty-servlet</artifactId>
103             <version>2.24.1</version>
104                 <exclusions>
105                 <exclusion>
106                    <groupId>org.eclipse.jetty</groupId>
107                    <artifactId>jetty-util</artifactId>
108                </exclusion>
109             </exclusions>
110         </dependency>
111 <!-- commons-codec excluded due to Security Issues:- Sonatype-2012-0050
112         and added invulnerable commons-codec-1.13  -->
113         <dependency>
114             <groupId>org.apache.httpcomponents</groupId>
115             <artifactId>httpmime</artifactId>
116             <version>4.5.3</version>
117            <exclusions>
118                 <exclusion>
119                     <groupId>commons-codec</groupId>
120                     <artifactId>commons-codec</artifactId>
121                 </exclusion>
122            </exclusions>
123         </dependency>
124         <dependency>
125             <groupId>commons-codec</groupId>
126             <artifactId>commons-codec</artifactId>
127             <version>1.13</version>
128         </dependency>
129         <!-- jetty -->
130 <!-- Updated jetty-util,jetty-http,jetty-servlet and jetty-server
131 due to Security Issues:- CVE-2019-10241,CVE-2019-10247,CVE-2019-10246
132 -->
133         <dependency>
134             <groupId>org.eclipse.jetty</groupId>
135             <artifactId>jetty-http</artifactId>
136             <version>9.4.20.v20190813</version>
137         </dependency>
138         <dependency>
139             <groupId>org.eclipse.jetty</groupId>
140             <artifactId>jetty-servlet</artifactId>
141             <version>9.4.20.v20190813</version>
142         </dependency>
143         <dependency>
144             <groupId>org.eclipse.jetty</groupId>
145             <artifactId>jetty-server</artifactId>
146             <version>9.4.20.v20190813</version>
147         </dependency>
148         <dependency>
149             <groupId>org.eclipse.jetty</groupId>
150             <artifactId>jetty-util</artifactId>
151             <version>9.4.20.v20190813</version>
152         </dependency>
153         <!-- consumer -->
154         <dependency>
155             <groupId>com.eclipsesource.jaxrs</groupId>
156             <artifactId>consumer</artifactId>
157             <exclusions>
158                 <exclusion>
159                     <groupId>com.eclipsesource.jaxrs</groupId>
160                     <artifactId>jersey-all</artifactId>
161                 </exclusion>
162             </exclusions>
163             <version>5.0</version>
164         </dependency>
165         <!-- gson -->
166         <dependency>
167             <groupId>com.google.code.gson</groupId>
168             <artifactId>gson</artifactId>
169             <version>2.8.2</version>
170         </dependency>
171         <dependency>
172             <groupId>org.postgresql</groupId>
173             <artifactId>postgresql</artifactId>
174             <version>42.2.5</version>
175         </dependency>
176         <dependency>
177             <groupId>org.mybatis</groupId>
178             <artifactId>mybatis</artifactId>
179             <version>3.2.7</version>
180         </dependency>
181         <!-- UT -->
182         <dependency>
183             <groupId>junit</groupId>
184             <artifactId>junit</artifactId>
185             <version>4.12</version>
186             <scope>test</scope>
187         </dependency>
188         <dependency>
189             <groupId>org.powermock</groupId>
190             <artifactId>powermock-module-junit4</artifactId>
191             <version>1.4.10</version>
192             <scope>test</scope>
193         </dependency>
194         <dependency>
195             <groupId>org.powermock</groupId>
196             <artifactId>powermock-api-mockito</artifactId>
197             <version>1.4.10</version>
198             <scope>test</scope>
199         </dependency>
200         <dependency>
201             <groupId>org.jmockit</groupId>
202             <artifactId>jmockit</artifactId>
203             <version>1.19</version>
204             <scope>test</scope>
205         </dependency>
206         <dependency>
207             <groupId>org.jmockit</groupId>
208             <artifactId>jmockit-coverage</artifactId>
209             <version>1.19</version>
210             <scope>test</scope>
211         </dependency>
212         <dependency>
213             <groupId>org.apache.ant</groupId>
214             <artifactId>ant</artifactId>
215             <version>1.8.2</version>
216             <scope>test</scope>
217         </dependency>
218
219
220         <dependency>
221             <groupId>org.apache.commons</groupId>
222             <artifactId>commons-io</artifactId>
223             <version>1.3.2</version>
224         </dependency>
225         <dependency>
226             <groupId>commons-io</groupId>
227             <artifactId>commons-io</artifactId>
228             <version>2.4</version>
229         </dependency>
230         <dependency>
231             <groupId>com.google.guava</groupId>
232             <artifactId>guava</artifactId>
233             <version>25.0-jre</version>
234         </dependency>
235
236     </dependencies>
237     <profiles>
238         <profile>
239             <id>all-tests</id>
240             <properties>
241                 <build.profile.id>all-tests</build.profile.id>
242                 <skip.unit.tests>false</skip.unit.tests>
243             </properties>
244         </profile>
245     </profiles>
246     <build>
247         <finalName>ROOT</finalName>
248         <plugins>
249             <!-- Used for unit tests -->
250             <plugin>
251                 <groupId>org.apache.maven.plugins</groupId>
252                 <artifactId>maven-surefire-plugin</artifactId>
253                 <version>2.20</version>
254                 <configuration>
255                     <forkMode>always</forkMode>
256                     <argLine>${surefireArgLine}</argLine>
257                     <skip>${maven.test.skip}</skip>
258                     <testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
259                     <!-- Excludes integration tests when unit tests are run. -->
260                     <excludes>
261                         <exclude>**/IT*.java</exclude>
262                     </excludes>
263                 </configuration>
264             </plugin>
265             <plugin>
266                 <groupId>com.googlecode.maven-download-plugin</groupId>
267                 <artifactId>download-maven-plugin</artifactId>
268                 <version>1.2.1</version>
269                 <executions>
270                     <execution>
271                         <id>swagger-ui</id>
272                         <goals>
273                             <goal>wget</goal>
274                         </goals>
275                         <configuration>
276                             <url>https://github.com/swagger-api/swagger-ui/archive/master.tar.gz</url>
277                             <unpack>true</unpack>
278                             <outputDirectory>${project.build.directory}</outputDirectory>
279                         </configuration>
280                     </execution>
281                 </executions>
282             </plugin>
283         </plugins>
284     </build>
285 </project>