Bump minor version
[msb/discovery.git] / sdclient / discovery-service / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3
4     Copyright 2016-2017 ZTE, Inc. and others.
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.msb.discovery</groupId>
22     <artifactId>sdclient</artifactId>
23     <version>1.1.0-SNAPSHOT</version>        
24   </parent>
25   <modelVersion>4.0.0</modelVersion>
26   <groupId>org.onap.msb.discovery.sdclient</groupId>
27   <artifactId>discovery-service</artifactId>
28   <name>onap/msb/discovery/sdclient/discovery-service</name>
29   <packaging>jar</packaging>
30   <version>1.1.0-SNAPSHOT</version>
31   
32
33   <dependencies>
34     <dependency>
35       <groupId>io.dropwizard</groupId>
36       <artifactId>dropwizard-core</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>io.dropwizard</groupId>
40       <artifactId>dropwizard-assets</artifactId>
41     </dependency>
42     <dependency>
43       <groupId>io.dropwizard</groupId>
44       <artifactId>dropwizard-client</artifactId>
45     </dependency>   
46     <dependency>
47       <groupId>io.swagger</groupId>
48       <artifactId>swagger-jersey2-jaxrs</artifactId>
49       <scope>compile</scope>
50     </dependency>
51     
52     <dependency>
53       <groupId>org.projectlombok</groupId>
54       <artifactId>lombok</artifactId>
55     </dependency>
56
57     <dependency>
58       <groupId>junit</groupId>
59       <artifactId>junit</artifactId>
60       <scope>test</scope>
61     </dependency>
62
63     <dependency> 
64       <groupId>org.powermock</groupId>
65       <artifactId>powermock-module-junit4</artifactId> 
66       <scope>test</scope>
67     </dependency> 
68
69     <dependency>
70       <groupId>org.powermock</groupId>
71       <artifactId>powermock-api-mockito</artifactId> 
72       <scope>test</scope>
73     </dependency>       
74    
75  </dependencies>
76  <build>
77   <plugins>
78     <plugin>
79       <groupId>org.apache.maven.plugins</groupId>
80       <artifactId>maven-jar-plugin</artifactId>
81       <version>2.4</version>
82       <configuration>
83         <archive>
84           <manifest>
85             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
86           </manifest>
87         </archive>
88       </configuration>
89     </plugin>
90     <plugin>
91       <groupId>org.apache.maven.plugins</groupId>
92       <artifactId>maven-shade-plugin</artifactId>
93       <version>2.3</version>
94       <configuration>
95         <createDependencyReducedPom>true</createDependencyReducedPom>
96         <filters>
97           <filter>
98             <artifact>*:*</artifact>
99             <excludes>
100               <exclude>META-INF/*.SF</exclude>
101               <exclude>META-INF/*.DSA</exclude>
102               <exclude>META-INF/*.RSA</exclude>
103             </excludes>
104           </filter>
105         </filters>
106       </configuration>
107       <executions>
108         <execution>
109           <phase>package</phase>
110           <goals>
111             <goal>shade</goal>
112           </goals>
113           <configuration>
114             <transformers>
115               <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
116               <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
117                <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
118              </transformer>
119            </transformers>
120          </configuration>
121        </execution>
122      </executions>
123    </plugin>
124             <!--plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-dependency-plugin</artifactId>
127                 <executions>
128                     <execution>
129                       <id>copy-dependencies</id>
130                       <phase>package</phase>
131                       <goals>
132                           <goal>copy-dependencies</goal>
133                       </goals>                      
134                       <configuration>
135                         <artifactItems>
136                             <artifactItem>
137                              <groupId>io.dropwizard</groupId>
138                              <artifactId>dropwizard-core</artifactId>
139                              <version>${dropwizard.version}</version>
140                              <overWrite>true</overWrite>
141                          </artifactItem>             
142                      </artifactItems>
143                  </configuration>
144              </execution>  
145          </executions>
146        </plugin-->
147      </plugins>
148      <resources>
149       <resource>
150         <directory>src/main/java</directory>
151         <includes>
152           <include>**/*.properties</include>
153         </includes>
154       </resource>
155       <resource>
156         <directory>src/main/resources</directory>
157       </resource>
158     </resources>
159   </build>
160 </project>