Fix Nexus IQ security issue
[msb/discovery.git] / sdclient / discovery-service / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!-- Copyright 2016-2017 ZTE, Inc. and others. Licensed under the Apache 
3         License, Version 2.0 (the "License"); you may not use this file except in 
4         compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
5         Unless required by applicable law or agreed to in writing, software distributed 
6         under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES 
7         OR CONDITIONS OF ANY KIND, either express or implied. See the License for 
8         the specific language governing permissions and limitations under the License. -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11         <modelVersion>4.0.0</modelVersion>
12
13         <parent>
14                 <groupId>org.onap.msb.discovery</groupId>
15                 <artifactId>sdclient</artifactId>
16                 <version>1.1.0-SNAPSHOT</version>
17         </parent>
18
19         <groupId>org.onap.msb.discovery.sdclient</groupId>
20         <artifactId>discovery-service</artifactId>
21         <name>onap/msb/discovery/sdclient/discovery-service</name>
22         <packaging>jar</packaging>
23         <version>1.1.0-SNAPSHOT</version>
24
25
26         <dependencies>
27                 <dependency>
28                         <groupId>io.dropwizard</groupId>
29                         <artifactId>dropwizard-core</artifactId>
30                 </dependency>
31                 <dependency>
32                         <groupId>io.dropwizard</groupId>
33                         <artifactId>dropwizard-assets</artifactId>
34                 </dependency>
35                 <dependency>
36                         <groupId>io.dropwizard</groupId>
37                         <artifactId>dropwizard-client</artifactId>
38                 </dependency>
39
40                 <dependency>
41                         <groupId>junit</groupId>
42                         <artifactId>junit</artifactId>
43                         <scope>test</scope>
44                 </dependency>
45
46                 <dependency>
47                         <groupId>org.powermock</groupId>
48                         <artifactId>powermock-module-junit4</artifactId>
49                         <version>1.6.6</version>
50                         <scope>test</scope>
51                 </dependency>
52
53                 <dependency>
54                         <groupId>org.powermock</groupId>
55                         <artifactId>powermock-api-mockito</artifactId>
56                         <version>1.6.6</version>
57                         <scope>test</scope>
58                 </dependency>
59                 <dependency>
60                         <groupId>javax.servlet</groupId>
61                         <artifactId>javax.servlet-api</artifactId>
62                 </dependency>
63                 <dependency>
64                         <groupId>io.swagger</groupId>
65                         <artifactId>swagger-annotations</artifactId>
66                         <version>1.5.8</version>
67                 </dependency>
68                 <dependency>
69                         <groupId>io.swagger</groupId>
70                         <artifactId>swagger-jaxrs</artifactId>
71                         <version>1.5.8</version>
72                 </dependency>
73                 <dependency>
74                         <groupId>com.google.guava</groupId>
75                         <artifactId>guava</artifactId>
76                         <version>${guava.version}</version>
77                 </dependency>
78
79         </dependencies>
80         <build>
81                 <plugins>
82                         <plugin>
83                                 <groupId>org.apache.maven.plugins</groupId>
84                                 <artifactId>maven-jar-plugin</artifactId>
85                                 <version>2.4</version>
86                                 <configuration>
87                                         <archive>
88                                                 <manifest>
89                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
90                                                 </manifest>
91                                         </archive>
92                                 </configuration>
93                         </plugin>
94                         <plugin>
95                                 <groupId>org.apache.maven.plugins</groupId>
96                                 <artifactId>maven-shade-plugin</artifactId>
97                                 <version>2.3</version>
98                                 <configuration>
99                                         <createDependencyReducedPom>true</createDependencyReducedPom>
100                                         <filters>
101                                                 <filter>
102                                                         <artifact>*:*</artifact>
103                                                         <excludes>
104                                                                 <exclude>META-INF/*.SF</exclude>
105                                                                 <exclude>META-INF/*.DSA</exclude>
106                                                                 <exclude>META-INF/*.RSA</exclude>
107                                                         </excludes>
108                                                 </filter>
109                                         </filters>
110                                 </configuration>
111                                 <executions>
112                                         <execution>
113                                                 <phase>package</phase>
114                                                 <goals>
115                                                         <goal>shade</goal>
116                                                 </goals>
117                                                 <configuration>
118                                                         <transformers>
119                                                                 <transformer
120                                                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
121                                                                 <transformer
122                                                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
123                                                                         <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
124                                                                 </transformer>
125                                                         </transformers>
126                                                 </configuration>
127                                         </execution>
128                                 </executions>
129                         </plugin>
130                 </plugins>
131                 <resources>
132                         <resource>
133                                 <directory>src/main/java</directory>
134                                 <includes>
135                                         <include>**/*.properties</include>
136                                 </includes>
137                         </resource>
138                         <resource>
139                                 <directory>src/main/resources</directory>
140                         </resource>
141                 </resources>
142         </build>
143 </project>