release 1.2.6
[msb/discovery.git] / sdclient / discovery-service / dependency-reduced-pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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/maven-v4_0_0.xsd">
3   <parent>
4     <artifactId>sdclient</artifactId>
5     <groupId>org.onap.msb.discovery</groupId>
6     <version>1.2.6-SNAPSHOT</version>
7   </parent>
8   <modelVersion>4.0.0</modelVersion>
9   <groupId>org.onap.msb.discovery.sdclient</groupId>
10   <artifactId>discovery-service</artifactId>
11   <name>onap/msb/discovery/sdclient/discovery-service</name>
12   <version>1.2.6-SNAPSHOT</version>
13   <build>
14     <resources>
15       <resource>
16         <directory>src/main/java</directory>
17         <includes>
18           <include>**/*.properties</include>
19         </includes>
20       </resource>
21       <resource>
22         <directory>src/main/resources</directory>
23       </resource>
24     </resources>
25     <plugins>
26       <plugin>
27         <groupId>org.codehaus.mojo</groupId>
28         <artifactId>properties-maven-plugin</artifactId>
29         <version>1.0.0</version>
30         <executions>
31           <execution>
32             <phase>initialize</phase>
33             <goals>
34               <goal>read-project-properties</goal>
35             </goals>
36             <configuration>
37               <files>
38                 <file>${basedir}/src/main/resources/swagger.properties</file>
39               </files>
40             </configuration>
41           </execution>
42         </executions>
43       </plugin>
44       <plugin>
45         <groupId>com.github.kongchen</groupId>
46         <artifactId>swagger-maven-plugin</artifactId>
47         <version>3.1.4</version>
48         <executions>
49           <execution>
50             <phase>compile</phase>
51             <goals>
52               <goal>generate</goal>
53             </goals>
54           </execution>
55         </executions>
56         <configuration>
57           <apiSources>
58             <apiSource>
59               <locations>${api-rest-package}</locations>
60               <schemes>
61                 <scheme>http</scheme>
62                 <scheme>https</scheme>
63               </schemes>
64               <host>${api-host-ip}:${api-host-port}</host>
65               <basePath>${api-base-path}</basePath>
66               <info>
67                 <title>${api-title}</title>
68                 <version>${api-version}</version>
69                 <description>${api-description}</description>
70                 <license>
71                   <name>${api-license}</name>
72                 </license>
73               </info>
74               <swaggerDirectory>${basedir}/target/classes</swaggerDirectory>
75             </apiSource>
76           </apiSources>
77         </configuration>
78       </plugin>
79       <plugin>
80         <groupId>org.codehaus.mojo</groupId>
81         <artifactId>build-helper-maven-plugin</artifactId>
82         <executions>
83           <execution>
84             <id>attach-artifacts</id>
85             <phase>package</phase>
86             <goals>
87               <goal>attach-artifact</goal>
88             </goals>
89             <configuration>
90               <artifacts>
91                 <artifact>
92                   <file>target/classes/swagger.json</file>
93                   <type>json</type>
94                   <classifier>schema</classifier>
95                 </artifact>
96               </artifacts>
97             </configuration>
98           </execution>
99         </executions>
100       </plugin>
101       <plugin>
102         <artifactId>maven-jar-plugin</artifactId>
103         <version>2.4</version>
104         <configuration>
105           <archive>
106             <manifest>
107               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
108             </manifest>
109           </archive>
110         </configuration>
111       </plugin>
112       <plugin>
113         <artifactId>maven-shade-plugin</artifactId>
114         <version>2.3</version>
115         <executions>
116           <execution>
117             <phase>package</phase>
118             <goals>
119               <goal>shade</goal>
120             </goals>
121             <configuration>
122               <transformers>
123                 <transformer />
124                 <transformer>
125                   <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
126                 </transformer>
127               </transformers>
128             </configuration>
129           </execution>
130         </executions>
131         <configuration>
132           <createDependencyReducedPom>true</createDependencyReducedPom>
133           <filters>
134             <filter>
135               <artifact>*:*</artifact>
136               <excludes>
137                 <exclude>META-INF/*.SF</exclude>
138                 <exclude>META-INF/*.DSA</exclude>
139                 <exclude>META-INF/*.RSA</exclude>
140               </excludes>
141             </filter>
142           </filters>
143         </configuration>
144       </plugin>
145     </plugins>
146   </build>
147   <dependencies>
148     <dependency>
149       <groupId>junit</groupId>
150       <artifactId>junit</artifactId>
151       <version>4.12</version>
152       <scope>test</scope>
153       <exclusions>
154         <exclusion>
155           <artifactId>hamcrest-core</artifactId>
156           <groupId>org.hamcrest</groupId>
157         </exclusion>
158       </exclusions>
159     </dependency>
160     <dependency>
161       <groupId>org.powermock</groupId>
162       <artifactId>powermock-module-junit4</artifactId>
163       <version>1.6.6</version>
164       <scope>test</scope>
165       <exclusions>
166         <exclusion>
167           <artifactId>powermock-module-junit4-common</artifactId>
168           <groupId>org.powermock</groupId>
169         </exclusion>
170       </exclusions>
171     </dependency>
172     <dependency>
173       <groupId>org.powermock</groupId>
174       <artifactId>powermock-api-mockito</artifactId>
175       <version>1.6.6</version>
176       <scope>test</scope>
177       <exclusions>
178         <exclusion>
179           <artifactId>mockito-core</artifactId>
180           <groupId>org.mockito</groupId>
181         </exclusion>
182         <exclusion>
183           <artifactId>powermock-api-mockito-common</artifactId>
184           <groupId>org.powermock</groupId>
185         </exclusion>
186         <exclusion>
187           <artifactId>hamcrest-core</artifactId>
188           <groupId>org.hamcrest</groupId>
189         </exclusion>
190       </exclusions>
191     </dependency>
192   </dependencies>
193 </project>
194