90f4ad6d4197c7e9a4f862531705e29949a93dad
[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.2.9.v20150224</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   </dependencies>
152     <build>
153         <plugins>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-jar-plugin</artifactId>
157                 <version>2.4</version>
158                 <configuration>
159                     <archive>
160                         <manifest>
161                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
162                         </manifest>
163                     </archive>
164                 </configuration>
165             </plugin>
166             <plugin>
167                 <groupId>org.apache.maven.plugins</groupId>
168                 <artifactId>maven-shade-plugin</artifactId>
169                 <version>2.3</version>
170                 <configuration>
171                     <createDependencyReducedPom>true</createDependencyReducedPom>
172                     <filters>
173                         <filter>
174                             <artifact>*:*</artifact>
175                             <excludes>
176                                 <exclude>META-INF/*.SF</exclude>
177                                 <exclude>META-INF/*.DSA</exclude>
178                                 <exclude>META-INF/*.RSA</exclude>
179                             </excludes>
180                         </filter>
181                     </filters>
182                 </configuration>
183                 <executions>
184                     <execution>
185                         <phase>package</phase>
186                         <goals>
187                             <goal>shade</goal>
188                         </goals>
189                         <configuration>
190                             <transformers>
191                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
192                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
193                                  <mainClass>org.onap.sfc.SfcDriver</mainClass>
194                                 </transformer>
195                             </transformers>
196                         </configuration>
197                     </execution>
198                 </executions>
199             </plugin>
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-dependency-plugin</artifactId>
203                 <executions>
204                     <execution>
205                       <id>copy-dependencies</id>
206                       <phase>package</phase>
207                       <goals>
208                           <goal>copy-dependencies</goal>
209                       </goals>                      
210                       <configuration>
211                         <artifactItems>
212                             <artifactItem>
213                              <groupId>io.dropwizard</groupId>
214                              <artifactId>dropwizard-core</artifactId>
215                              <version>${dropwizard.version}</version>
216                              <overWrite>true</overWrite>
217                          </artifactItem>             
218                      </artifactItems>
219                  </configuration>
220              </execution>  
221          </executions>
222      </plugin>
223         </plugins>
224     </build>
225 </project>