Exclude jackson-dataformat-xml
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     Copyright (c) 2017-2018 ZTE Corporation.
4     All rights reserved. This program and the accompanying materials
5     are made available under the terms of the Eclipse Public License v1.0
6     and the Apache License 2.0 which both accompany this distribution,
7     and are available at http://www.eclipse.org/legal/epl-v10.html
8     and http://www.apache.org/licenses/LICENSE-2.0
9
10     Contributors:
11         ZTE - initial API and implementation and/or initial documentation
12 -->
13 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
15
16     <parent>
17         <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
18         <artifactId>sdc-workflow-designer</artifactId>
19         <version>1.1.0-SNAPSHOT</version>
20     </parent>
21
22     <modelVersion>4.0.0</modelVersion>
23     <groupId>org.onap.sdc.sdc-workflow-designer</groupId>
24     <artifactId>sdc-workflow-designer-server</artifactId>
25     <name>sdc-workflow-designer-server</name>
26     <packaging>jar</packaging>
27     
28     <properties>
29         <velocity.version>1.7</velocity.version>
30         <commons-io.version>2.4</commons-io.version>
31         <dom4j.version>1.6.1</dom4j.version>
32         <dropwizard.version>1.2.2</dropwizard.version>
33         <swagger.version>1.5.3</swagger.version>
34         <jersey.version>2.16</jersey.version>
35         <jaxrs.consumer.version>5.0</jaxrs.consumer.version>
36         <gson.version>2.2.4</gson.version>
37         <junit.version>4.10</junit.version>
38     </properties>
39     
40     <build>
41         <plugins>
42             <plugin>
43                 <groupId>org.apache.maven.plugins</groupId>
44                 <artifactId>maven-shade-plugin</artifactId>
45                 <configuration>
46                     <createDependencyReducedPom>true</createDependencyReducedPom>
47                     <filters>
48                         <filter>
49                             <artifact>*:*</artifact>
50                             <excludes>
51                                 <exclude>META-INF/*.SF</exclude>
52                                 <exclude>META-INF/*.DSA</exclude>
53                                 <exclude>META-INF/*.RSA</exclude>
54                             </excludes>
55                         </filter>
56                     </filters>
57                 </configuration>
58                 <executions>
59                     <execution>
60                         <phase>package</phase>
61                         <goals>
62                             <goal>shade</goal>
63                         </goals>
64                         <configuration>
65                             <transformers>
66                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
67                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
68                                     <mainClass>org.onap.sdc.workflowdesigner.WorkflowDesignerApp</mainClass>
69                                 </transformer>
70                             </transformers>
71                         </configuration>
72                     </execution>
73                 </executions>
74             </plugin>
75             
76             <plugin>
77                 <groupId>org.apache.maven.plugins</groupId>
78                 <artifactId>maven-dependency-plugin</artifactId>
79                 <executions>
80                     <execution>
81                         <id>copy-dependencies</id>
82                         <phase>package</phase>
83                         <goals>
84                             <goal>copy-dependencies</goal>
85                         </goals>
86                         <configuration>
87                             <artifactItems>
88                                 <artifactItem>
89                                     <groupId>io.dropwizard</groupId>
90                                     <artifactId>dropwizard-core</artifactId>
91                                     <version>${dropwizard.version}</version>
92                                     <overWrite>true</overWrite>
93                                 </artifactItem>
94                             </artifactItems>
95                         </configuration>
96                     </execution>
97                 </executions>
98             </plugin>
99             
100         </plugins>
101     </build>
102
103     <dependencies>
104         <!-- dropwizard -->
105         <dependency>
106             <groupId>io.dropwizard</groupId>
107             <artifactId>dropwizard-core</artifactId>
108             <version>${dropwizard.version}</version>
109         </dependency>
110         <dependency>
111             <groupId>io.dropwizard</groupId>
112             <artifactId>dropwizard-assets</artifactId>
113             <version>${dropwizard.version}</version>
114         </dependency>
115         
116         <!-- swagger -->
117         <dependency>
118             <groupId>io.swagger</groupId>
119             <artifactId>swagger-jersey2-jaxrs</artifactId>
120             <version>${swagger.version}</version>
121             <exclusions>
122                 <exclusion>
123                     <groupId>com.fasterxml.jackson.dataformat</groupId>
124                     <artifactId>jackson-dataformat-xml</artifactId>
125                 </exclusion>
126             </exclusions>
127         </dependency>
128         
129         <!-- jersey -->
130         <dependency>
131             <groupId>org.glassfish.jersey.core</groupId>
132             <artifactId>jersey-server</artifactId>
133             <version>${jersey.version}</version>
134         </dependency>
135         <dependency>
136             <groupId>org.glassfish.jersey.media</groupId>
137             <artifactId>jersey-media-multipart</artifactId>
138             <version>${jersey.version}</version>
139         </dependency>
140         <dependency>
141             <groupId>org.glassfish.jersey.containers</groupId>
142             <artifactId>jersey-container-servlet-core</artifactId>
143             <version>${jersey.version}</version>
144         </dependency>
145         
146         <dependency>
147             <groupId>commons-io</groupId>
148             <artifactId>commons-io</artifactId>
149             <version>${commons-io.version}</version>
150         </dependency>
151         
152         <!-- gson -->
153         <dependency>
154             <groupId>com.google.code.gson</groupId>
155             <artifactId>gson</artifactId>
156             <version>${gson.version}</version>
157         </dependency>
158         
159         <!-- consumer -->
160         <dependency>
161             <groupId>com.eclipsesource.jaxrs</groupId>
162             <artifactId>consumer</artifactId>
163             <version>${jaxrs.consumer.version}</version>
164             <exclusions>
165                 <exclusion>
166                     <groupId>com.eclipsesource.jaxrs</groupId>
167                     <artifactId>jersey-all</artifactId>
168                 </exclusion>
169             </exclusions>
170         </dependency>
171
172         <dependency>
173             <groupId>org.apache.velocity</groupId>
174             <artifactId>velocity</artifactId>
175             <version>${velocity.version}</version>
176         </dependency>
177         
178         <dependency>
179             <groupId>junit</groupId>
180             <artifactId>junit</artifactId>
181             <version>${junit.version}</version>
182         </dependency>
183         
184         <dependency>
185             <groupId>dom4j</groupId>
186             <artifactId>dom4j</artifactId>
187             <version>${dom4j.version}</version>
188         </dependency>
189     </dependencies>
190     
191 </project>