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>
14 <groupId>org.onap.msb.discovery</groupId>
15 <artifactId>sdclient</artifactId>
16 <version>1.2.6-SNAPSHOT</version>
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.6-SNAPSHOT</version>
28 <groupId>io.dropwizard</groupId>
29 <artifactId>dropwizard-core</artifactId>
32 <groupId>io.dropwizard</groupId>
33 <artifactId>dropwizard-assets</artifactId>
36 <groupId>io.dropwizard</groupId>
37 <artifactId>dropwizard-client</artifactId>
41 <groupId>junit</groupId>
42 <artifactId>junit</artifactId>
47 <groupId>org.powermock</groupId>
48 <artifactId>powermock-module-junit4</artifactId>
49 <version>1.6.6</version>
54 <groupId>org.powermock</groupId>
55 <artifactId>powermock-api-mockito</artifactId>
56 <version>1.6.6</version>
60 <groupId>javax.servlet</groupId>
61 <artifactId>javax.servlet-api</artifactId>
64 <groupId>io.swagger</groupId>
65 <artifactId>swagger-annotations</artifactId>
66 <version>1.5.8</version>
69 <groupId>io.swagger</groupId>
70 <artifactId>swagger-jaxrs</artifactId>
71 <version>1.5.8</version>
74 <groupId>com.google.guava</groupId>
75 <artifactId>guava</artifactId>
82 <groupId>org.codehaus.mojo</groupId>
83 <artifactId>properties-maven-plugin</artifactId>
84 <version>1.0.0</version>
87 <phase>initialize</phase>
89 <goal>read-project-properties</goal>
93 <file>${basedir}/src/main/resources/swagger.properties</file>
100 <groupId>com.github.kongchen</groupId>
101 <artifactId>swagger-maven-plugin</artifactId>
102 <version>3.1.4</version>
106 <locations>${api-rest-package}</locations>
108 <scheme>http</scheme>
109 <scheme>https</scheme>
111 <host>${api-host-ip}:${api-host-port}</host>
112 <basePath>${api-base-path}</basePath>
114 <title>${api-title}</title>
115 <version>${api-version}</version>
116 <description>${api-description}</description>
118 <name>${api-license}</name>
121 <!--<swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>-->
122 <swaggerDirectory>${basedir}/target/classes</swaggerDirectory>
128 <phase>compile</phase>
130 <goal>generate</goal>
136 <groupId>org.codehaus.mojo</groupId>
137 <artifactId>build-helper-maven-plugin</artifactId>
140 <id>attach-artifacts</id>
141 <phase>package</phase>
143 <goal>attach-artifact</goal>
148 <file>target/classes/swagger.json</file>
150 <classifier>schema</classifier>
158 <groupId>org.apache.maven.plugins</groupId>
159 <artifactId>maven-jar-plugin</artifactId>
160 <version>2.4</version>
164 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-shade-plugin</artifactId>
172 <version>2.3</version>
174 <createDependencyReducedPom>true</createDependencyReducedPom>
177 <artifact>*:*</artifact>
179 <exclude>META-INF/*.SF</exclude>
180 <exclude>META-INF/*.DSA</exclude>
181 <exclude>META-INF/*.RSA</exclude>
188 <phase>package</phase>
195 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
197 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
198 <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
208 <directory>src/main/java</directory>
210 <include>**/*.properties</include>
214 <directory>src/main/resources</directory>