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>0.8.0</dropwizard.version>
33         <jetty.version>9.4.17.v20190418</jetty.version>
34         <jackson-version>2.5.1</jackson-version>      
35         <jersey.version>2.16</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         <dependency>
45             <groupId>org.glassfish.jersey.media</groupId>
46             <artifactId>jersey-media-multipart</artifactId>
47             <version>${jersey.version}</version>
48         </dependency>
49
50         <dependency>
51             <groupId>org.glassfish.jersey.containers</groupId>
52             <artifactId>jersey-container-servlet-core</artifactId>
53             <version>${jersey.version}</version>
54         </dependency>
55                 
56                 <dependency>
57                         <groupId>org.glassfish.jersey.containers</groupId>
58                         <artifactId>jersey-container-servlet</artifactId>
59                         <version>2.16</version>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.glassfish.jersey.core</groupId>
63                         <artifactId>jersey-client</artifactId>
64                         <version>2.16</version>
65                 </dependency>
66                 <dependency>
67                         <groupId>org.glassfish.jersey.core</groupId>
68                         <artifactId>jersey-common</artifactId>
69                         <version>2.16</version>
70                 </dependency>
71
72         <dependency>
73           <groupId>com.fasterxml.jackson.dataformat</groupId>
74           <artifactId>jackson-dataformat-xml</artifactId>
75           <version>${jackson-version}</version>
76         </dependency>
77
78          <dependency>
79                 <groupId>org.codehaus.jackson</groupId>
80                 <artifactId>jackson-jaxrs</artifactId>
81                 <version>1.9.11</version>
82          </dependency>
83
84             <dependency>
85           <groupId>com.fasterxml.jackson.core</groupId>
86           <artifactId>jackson-annotations</artifactId>
87           <version>${jackson-version}</version>
88         </dependency>
89
90     </dependencies>
91     </dependencyManagement>
92
93   <dependencies>
94     <dependency>
95         <groupId>io.dropwizard</groupId>
96         <artifactId>dropwizard-core</artifactId>
97         <version>${dropwizard.version}</version>
98     </dependency>
99     <dependency>
100         <groupId>io.dropwizard</groupId>
101         <artifactId>dropwizard-assets</artifactId>
102         <version>${dropwizard.version}</version>
103     </dependency>
104     <dependency>
105       <groupId>io.swagger</groupId>
106       <artifactId>swagger-jersey2-jaxrs</artifactId>
107       <version>${swagger.version}</version>
108       <scope>compile</scope>
109     </dependency>
110       <dependency>
111           <groupId>com.eclipsesource.jaxrs</groupId>
112           <artifactId>consumer</artifactId>
113           <version>2.3</version>
114       </dependency>
115
116         <dependency>
117             <groupId>com.google.code.gson</groupId>
118             <artifactId>gson</artifactId>
119             <version>2.2.4</version>
120         </dependency>
121                 
122     <dependency>
123             <groupId>junit</groupId>
124             <artifactId>junit</artifactId>
125          <version>${junit.version}</version>
126          <scope>test</scope>
127     </dependency>
128   
129         <dependency>
130                 <groupId>org.powermock</groupId>
131                 <artifactId>powermock-module-junit4</artifactId>
132                 <version>${powermock.version}</version>
133                 <scope>test</scope>
134         </dependency>
135         <dependency>
136                 <groupId>org.powermock</groupId>
137                 <artifactId>powermock-api-mockito</artifactId>
138                 <version>${powermock.version}</version>
139                 <scope>test</scope>
140         </dependency>
141       <dependency>
142           <groupId>org.powermock</groupId>
143           <artifactId>powermock-core</artifactId>
144           <version>1.6.6</version>
145       </dependency>
146       <dependency>
147           <groupId>org.projectlombok</groupId>
148           <artifactId>lombok</artifactId>
149           <version>1.16.8</version>
150       </dependency>
151       <dependency>
152           <groupId>ch.qos.logback</groupId>
153           <artifactId>logback-classic</artifactId>
154           <version>1.1.2</version>
155       </dependency>
156   </dependencies>
157     <build>
158         <plugins>
159             <plugin>
160                 <groupId>org.apache.maven.plugins</groupId>
161                 <artifactId>maven-jar-plugin</artifactId>
162                 <version>2.4</version>
163                 <configuration>
164                     <archive>
165                         <manifest>
166                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
167                         </manifest>
168                     </archive>
169                 </configuration>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-shade-plugin</artifactId>
174                 <version>2.3</version>
175                 <configuration>
176                     <createDependencyReducedPom>true</createDependencyReducedPom>
177                     <filters>
178                         <filter>
179                             <artifact>*:*</artifact>
180                             <excludes>
181                                 <exclude>META-INF/*.SF</exclude>
182                                 <exclude>META-INF/*.DSA</exclude>
183                                 <exclude>META-INF/*.RSA</exclude>
184                             </excludes>
185                         </filter>
186                     </filters>
187                 </configuration>
188                 <executions>
189                     <execution>
190                         <phase>package</phase>
191                         <goals>
192                             <goal>shade</goal>
193                         </goals>
194                         <configuration>
195                             <transformers>
196                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
197                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
198                                  <mainClass>org.onap.sfc.SfcDriver</mainClass>
199                                 </transformer>
200                             </transformers>
201                         </configuration>
202                     </execution>
203                 </executions>
204             </plugin>
205             <plugin>
206                 <groupId>org.apache.maven.plugins</groupId>
207                 <artifactId>maven-dependency-plugin</artifactId>
208                 <executions>
209                     <execution>
210                       <id>copy-dependencies</id>
211                       <phase>package</phase>
212                       <goals>
213                           <goal>copy-dependencies</goal>
214                       </goals>                      
215                       <configuration>
216                         <artifactItems>
217                             <artifactItem>
218                              <groupId>io.dropwizard</groupId>
219                              <artifactId>dropwizard-core</artifactId>
220                              <version>${dropwizard.version}</version>
221                              <overWrite>true</overWrite>
222                          </artifactItem>             
223                      </artifactItems>
224                  </configuration>
225              </execution>  
226          </executions>
227      </plugin>
228         </plugins>
229     </build>
230 </project>