Fix sfcDriver Jenkins job failure
[vfc/nfvo/driver/sfc.git] / zte / sfc-driver / sfc-driver / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     Copyright 2016 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10             http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20     <parent>
21         <groupId>org.onap.vfc.nfvo.driver.sfc</groupId>
22         <artifactId>sfc-driver-parent</artifactId>
23         <version>1.3.0-SNAPSHOT</version>
24     </parent>
25     <modelVersion>4.0.0</modelVersion>
26     <groupId>org.onap.vfc.nfvo.driver.sfc.zte.sfc-driver</groupId>
27     <artifactId>sfc-driver</artifactId>
28     <name>vfc/nfvo/driver/sfc/zte/sfc-driver/sfc-driver</name>
29     <packaging>jar</packaging>
30     <version>1.3.0-SNAPSHOT</version>
31     <properties>
32         <dropwizard.version>1.3.9</dropwizard.version>
33         <jetty.version>9.4.18.v20190429</jetty.version>
34         <jackson-version>2.5.1</jackson-version>
35         <jersey.version>2.22.2</jersey.version>
36         <swagger.version>1.5.3</swagger.version>
37         <junit.version>4.11</junit.version>
38         <powermock.version>1.6.6</powermock.version>
39     </properties>
40
41
42     <dependencyManagement>
43         <dependencies>
44
45 <!--        <dependency>
46             <groupId>org.glassfish.jersey.media</groupId>
47             <artifactId>jersey-media-multipart</artifactId>
48             <version>${jersey.version}</version>
49         </dependency>-->
50
51 <!--        <dependency>
52             <groupId>org.glassfish.jersey.containers</groupId>
53             <artifactId>jersey-container-servlet-core</artifactId>
54             <version>${jersey.version}</version>
55         </dependency>
56                 
57                 <dependency>
58                         <groupId>org.glassfish.jersey.containers</groupId>
59                         <artifactId>jersey-container-servlet</artifactId>
60                         <version>2.16</version>
61                 </dependency>
62                 <dependency>
63                         <groupId>org.glassfish.jersey.core</groupId>
64                         <artifactId>jersey-client</artifactId>
65                         <version>2.16</version>
66                 </dependency>
67                 <dependency>
68                         <groupId>org.glassfish.jersey.core</groupId>
69                         <artifactId>jersey-common</artifactId>
70                         <version>2.16</version>
71                 </dependency>-->
72
73 <!--        <dependency>
74           <groupId>com.fasterxml.jackson.dataformat</groupId>
75           <artifactId>jackson-dataformat-xml</artifactId>
76           <version>${jackson-version}</version>
77         </dependency>-->
78
79 <!--            <dependency>
80                 <groupId>org.glassfish.jersey.containers</groupId>
81                 <artifactId>jersey-container-servlet-core</artifactId>
82                 <version>${jersey.version}</version>
83             </dependency>
84
85             <dependency>
86                 <groupId>org.glassfish.jersey.core</groupId>
87                 <artifactId>jersey-common</artifactId>
88                 <version>${jersey.version}</version>
89             </dependency>-->
90
91          <dependency>
92                 <groupId>org.codehaus.jackson</groupId>
93                 <artifactId>jackson-jaxrs</artifactId>
94                 <version>1.9.11</version>
95          </dependency>
96
97 <!--            <dependency>
98           <groupId>com.fasterxml.jackson.core</groupId>
99           <artifactId>jackson-annotations</artifactId>
100           <version>${jackson-version}</version>
101         </dependency>-->
102
103     </dependencies>
104     </dependencyManagement>
105
106   <dependencies>
107
108     <dependency>
109         <groupId>io.dropwizard</groupId>
110         <artifactId>dropwizard-core</artifactId>
111         <version>${dropwizard.version}</version>
112     </dependency>
113     <dependency>
114         <groupId>io.dropwizard</groupId>
115         <artifactId>dropwizard-assets</artifactId>
116         <version>${dropwizard.version}</version>
117     </dependency>
118     <dependency>
119       <groupId>io.swagger</groupId>
120       <artifactId>swagger-jersey2-jaxrs</artifactId>
121       <version>${swagger.version}</version>
122       <scope>compile</scope>
123     </dependency>
124       <dependency>
125           <groupId>com.eclipsesource.jaxrs</groupId>
126           <artifactId>consumer</artifactId>
127           <version>2.3</version>
128       </dependency>
129
130         <dependency>
131             <groupId>com.google.code.gson</groupId>
132             <artifactId>gson</artifactId>
133             <version>2.2.4</version>
134         </dependency>
135                 
136     <dependency>
137             <groupId>junit</groupId>
138             <artifactId>junit</artifactId>
139          <version>${junit.version}</version>
140          <scope>test</scope>
141     </dependency>
142   
143         <dependency>
144                 <groupId>org.powermock</groupId>
145                 <artifactId>powermock-module-junit4</artifactId>
146                 <version>${powermock.version}</version>
147                 <scope>test</scope>
148         </dependency>
149         <dependency>
150                 <groupId>org.powermock</groupId>
151                 <artifactId>powermock-api-mockito</artifactId>
152                 <version>${powermock.version}</version>
153                 <scope>test</scope>
154         </dependency>
155       <dependency>
156           <groupId>org.powermock</groupId>
157           <artifactId>powermock-core</artifactId>
158           <version>1.6.6</version>
159       </dependency>
160       <dependency>
161           <groupId>org.projectlombok</groupId>
162           <artifactId>lombok</artifactId>
163           <version>1.16.8</version>
164       </dependency>
165
166       <dependency>
167           <groupId>org.glassfish.jersey.core</groupId>
168           <artifactId>jersey-server</artifactId>
169           <version>${jersey.version}</version>
170       </dependency>
171       <dependency>
172           <groupId>org.glassfish.jersey.core</groupId>
173           <artifactId>jersey-client</artifactId>
174           <version>${jersey.version}</version>
175       </dependency>
176       <dependency>
177           <groupId>org.glassfish.jersey.core</groupId>
178           <artifactId>jersey-common</artifactId>
179           <version>${jersey.version}</version>
180       </dependency>
181       <dependency>
182           <groupId>org.glassfish.jersey.containers</groupId>
183           <artifactId>jersey-container-servlet-core</artifactId>
184           <version>${jersey.version}</version>
185       </dependency>
186
187 <!--      <dependency>
188           <groupId>ch.qos.logback</groupId>
189           <artifactId>logback-classic</artifactId>
190           <version>1.1.2</version>
191       </dependency>-->
192   </dependencies>
193     <build>
194         <plugins>
195             <plugin>
196                 <groupId>org.apache.maven.plugins</groupId>
197                 <artifactId>maven-jar-plugin</artifactId>
198                 <version>2.4</version>
199                 <configuration>
200                     <archive>
201                         <manifest>
202                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
203                         </manifest>
204                     </archive>
205                 </configuration>
206             </plugin>
207             <plugin>
208                 <groupId>org.apache.maven.plugins</groupId>
209                 <artifactId>maven-shade-plugin</artifactId>
210                 <version>2.3</version>
211                 <configuration>
212                     <createDependencyReducedPom>true</createDependencyReducedPom>
213                     <filters>
214                         <filter>
215                             <artifact>*:*</artifact>
216                             <excludes>
217                                 <exclude>META-INF/*.SF</exclude>
218                                 <exclude>META-INF/*.DSA</exclude>
219                                 <exclude>META-INF/*.RSA</exclude>
220                             </excludes>
221                         </filter>
222                     </filters>
223                 </configuration>
224                 <executions>
225                     <execution>
226                         <phase>package</phase>
227                         <goals>
228                             <goal>shade</goal>
229                         </goals>
230                         <configuration>
231                             <transformers>
232                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
233                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
234                                  <mainClass>org.onap.sfc.SfcDriver</mainClass>
235                                 </transformer>
236                             </transformers>
237                         </configuration>
238                     </execution>
239                 </executions>
240             </plugin>
241             <plugin>
242                 <groupId>org.apache.maven.plugins</groupId>
243                 <artifactId>maven-dependency-plugin</artifactId>
244                 <executions>
245                     <execution>
246                       <id>copy-dependencies</id>
247                       <phase>package</phase>
248                       <goals>
249                           <goal>copy-dependencies</goal>
250                       </goals>                      
251                       <configuration>
252                         <artifactItems>
253                             <artifactItem>
254                              <groupId>io.dropwizard</groupId>
255                              <artifactId>dropwizard-core</artifactId>
256                              <version>${dropwizard.version}</version>
257                              <overWrite>true</overWrite>
258                          </artifactItem>             
259                      </artifactItems>
260                  </configuration>
261              </execution>  
262          </executions>
263      </plugin>
264         </plugins>
265     </build>
266 </project>