Update El Alto Version
[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.2.5</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.2.5</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                 </dependency>
77         </dependencies>
78         <build>
79                 <plugins>
80                         <!-- JSON -->
81                         <plugin>
82                                 <groupId>org.codehaus.mojo</groupId>
83                                 <artifactId>properties-maven-plugin</artifactId>
84                                 <version>1.0.0</version>
85                                 <executions>
86                                         <execution>
87                                                 <phase>initialize</phase>
88                                                 <goals>
89                                                         <goal>read-project-properties</goal>
90                                                 </goals>
91                                                 <configuration>
92                                                         <files>
93                                                                 <file>${basedir}/src/main/resources/swagger.properties</file>
94                                                         </files>
95                                                 </configuration>
96                                         </execution>
97                                 </executions>
98                         </plugin>
99                         <plugin>
100                                 <groupId>com.github.kongchen</groupId>
101                                 <artifactId>swagger-maven-plugin</artifactId>
102                                 <version>3.1.4</version>
103                                 <configuration>
104                                         <apiSources>
105                                                 <apiSource>
106                                                         <locations>${api-rest-package}</locations>
107                                                         <schemes>
108                                                                 <scheme>http</scheme>
109                                                                 <scheme>https</scheme>
110                                                         </schemes>
111                                                         <host>${api-host-ip}:${api-host-port}</host>
112                                                         <basePath>${api-base-path}</basePath>
113                                                         <info>
114                                                                 <title>${api-title}</title>
115                                                                 <version>${api-version}</version>
116                                                                 <description>${api-description}</description>
117                                                                 <license>
118                                                                         <name>${api-license}</name>
119                                                                 </license>
120                                                         </info>
121                                                         <!--<swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>-->
122                                                         <swaggerDirectory>${basedir}/target/classes</swaggerDirectory>
123                                                 </apiSource>
124                                         </apiSources>
125                                 </configuration>
126                                 <executions>
127                                         <execution>
128                                                 <phase>compile</phase>
129                                                 <goals>
130                                                         <goal>generate</goal>
131                                                 </goals>
132                                         </execution>
133                                 </executions>
134                         </plugin>
135                         <plugin>
136                                 <groupId>org.codehaus.mojo</groupId>
137                                 <artifactId>build-helper-maven-plugin</artifactId>
138                                 <executions>
139                                         <execution>
140                                                 <id>attach-artifacts</id>
141                                                 <phase>package</phase>
142                                                 <goals>
143                                                         <goal>attach-artifact</goal>
144                                                 </goals>
145                                                 <configuration>
146                                                         <artifacts>
147                                                                 <artifact>
148                                                                         <file>target/classes/swagger.json</file>
149                                                                         <type>json</type>
150                                                                         <classifier>schema</classifier>
151                                                                 </artifact>
152                                                         </artifacts>
153                                                 </configuration>
154                                         </execution>
155                                 </executions>
156                         </plugin>
157                         <plugin>
158                                 <groupId>org.apache.maven.plugins</groupId>
159                                 <artifactId>maven-jar-plugin</artifactId>
160                                 <version>2.4</version>
161                                 <configuration>
162                                         <archive>
163                                                 <manifest>
164                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
165                                                 </manifest>
166                                         </archive>
167                                 </configuration>
168                         </plugin>
169                         <plugin>
170                                 <groupId>org.apache.maven.plugins</groupId>
171                                 <artifactId>maven-shade-plugin</artifactId>
172                                 <version>2.3</version>
173                                 <configuration>
174                                         <createDependencyReducedPom>true</createDependencyReducedPom>
175                                         <filters>
176                                                 <filter>
177                                                         <artifact>*:*</artifact>
178                                                         <excludes>
179                                                                 <exclude>META-INF/*.SF</exclude>
180                                                                 <exclude>META-INF/*.DSA</exclude>
181                                                                 <exclude>META-INF/*.RSA</exclude>
182                                                         </excludes>
183                                                 </filter>
184                                         </filters>
185                                 </configuration>
186                                 <executions>
187                                         <execution>
188                                                 <phase>package</phase>
189                                                 <goals>
190                                                         <goal>shade</goal>
191                                                 </goals>
192                                                 <configuration>
193                                                         <transformers>
194                                                                 <transformer
195                                                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
196                                                                 <transformer
197                                                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
198                                                                         <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
199                                                                 </transformer>
200                                                         </transformers>
201                                                 </configuration>
202                                         </execution>
203                                 </executions>
204                         </plugin>
205                 </plugins>
206                 <resources>
207                         <resource>
208                                 <directory>src/main/java</directory>
209                                 <includes>
210                                         <include>**/*.properties</include>
211                                 </includes>
212                         </resource>
213                         <resource>
214                                 <directory>src/main/resources</directory>
215                         </resource>
216                 </resources>
217         </build>
218 </project>