c57784760174f3cd5fab2929b76b73784d434212
[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.0.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.0.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     </properties>
38
39
40     <dependencyManagement>
41         <dependencies>
42         <dependency>
43             <groupId>org.glassfish.jersey.media</groupId>
44             <artifactId>jersey-media-multipart</artifactId>
45             <version>${jersey.version}</version>
46         </dependency>
47
48         <dependency>
49             <groupId>org.glassfish.jersey.containers</groupId>
50             <artifactId>jersey-container-servlet-core</artifactId>
51             <version>${jersey.version}</version>
52         </dependency>
53                 
54                 <dependency>
55                         <groupId>org.glassfish.jersey.containers</groupId>
56                         <artifactId>jersey-container-servlet</artifactId>
57                         <version>2.16</version>
58                 </dependency>
59                 <dependency>
60                         <groupId>org.glassfish.jersey.core</groupId>
61                         <artifactId>jersey-client</artifactId>
62                         <version>2.16</version>
63                 </dependency>
64                 <dependency>
65                         <groupId>org.glassfish.jersey.core</groupId>
66                         <artifactId>jersey-common</artifactId>
67                         <version>2.16</version>
68                 </dependency>
69
70         <dependency>
71           <groupId>com.fasterxml.jackson.dataformat</groupId>
72           <artifactId>jackson-dataformat-xml</artifactId>
73           <version>${jackson-version}</version>
74         </dependency>
75
76          <dependency>
77                 <groupId>org.codehaus.jackson</groupId>
78                 <artifactId>jackson-jaxrs</artifactId>
79                 <version>1.9.11</version>
80          </dependency>
81
82             <dependency>
83           <groupId>com.fasterxml.jackson.core</groupId>
84           <artifactId>jackson-annotations</artifactId>
85           <version>${jackson-version}</version>
86         </dependency>
87
88     </dependencies>
89     </dependencyManagement>
90
91   <dependencies>
92     <dependency>
93         <groupId>io.dropwizard</groupId>
94         <artifactId>dropwizard-core</artifactId>
95         <version>${dropwizard.version}</version>
96     </dependency>
97     <dependency>
98         <groupId>io.dropwizard</groupId>
99         <artifactId>dropwizard-assets</artifactId>
100         <version>${dropwizard.version}</version>
101     </dependency>
102     <dependency>
103       <groupId>io.swagger</groupId>
104       <artifactId>swagger-jersey2-jaxrs</artifactId>
105       <version>${swagger.version}</version>
106       <scope>compile</scope>
107     </dependency>
108       <dependency>
109           <groupId>com.eclipsesource.jaxrs</groupId>
110           <artifactId>consumer</artifactId>
111           <version>2.3</version>
112       </dependency>
113
114         <dependency>
115             <groupId>com.google.code.gson</groupId>
116             <artifactId>gson</artifactId>
117             <version>2.2.4</version>
118         </dependency>
119         
120     </dependencies>
121     <build>
122         <plugins>
123             <plugin>
124                 <groupId>org.apache.maven.plugins</groupId>
125                 <artifactId>maven-jar-plugin</artifactId>
126                 <version>2.4</version>
127                 <configuration>
128                     <archive>
129                         <manifest>
130                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
131                         </manifest>
132                     </archive>
133                 </configuration>
134             </plugin>
135             <plugin>
136                 <groupId>org.apache.maven.plugins</groupId>
137                 <artifactId>maven-shade-plugin</artifactId>
138                 <version>2.3</version>
139                 <configuration>
140                     <createDependencyReducedPom>true</createDependencyReducedPom>
141                     <filters>
142                         <filter>
143                             <artifact>*:*</artifact>
144                             <excludes>
145                                 <exclude>META-INF/*.SF</exclude>
146                                 <exclude>META-INF/*.DSA</exclude>
147                                 <exclude>META-INF/*.RSA</exclude>
148                             </excludes>
149                         </filter>
150                     </filters>
151                 </configuration>
152                 <executions>
153                     <execution>
154                         <phase>package</phase>
155                         <goals>
156                             <goal>shade</goal>
157                         </goals>
158                         <configuration>
159                             <transformers>
160                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
161                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
162                                  <mainClass>com.zte.ums.sfc.console.sfcDriver</mainClass>
163                                 </transformer>
164                             </transformers>
165                         </configuration>
166                     </execution>
167                 </executions>
168             </plugin>
169             <plugin>
170                 <groupId>org.apache.maven.plugins</groupId>
171                 <artifactId>maven-dependency-plugin</artifactId>
172                 <executions>
173                     <execution>
174                       <id>copy-dependencies</id>
175                       <phase>package</phase>
176                       <goals>
177                           <goal>copy-dependencies</goal>
178                       </goals>                      
179                       <configuration>
180                         <artifactItems>
181                             <artifactItem>
182                              <groupId>io.dropwizard</groupId>
183                              <artifactId>dropwizard-core</artifactId>
184                              <version>${dropwizard.version}</version>
185                              <overWrite>true</overWrite>
186                          </artifactItem>             
187                      </artifactItems>
188                  </configuration>
189              </execution>  
190          </executions>
191      </plugin>
192         </plugins>
193     </build>
194 </project>