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.0-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.0-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>
76 <version>${guava.version}</version>
83 <groupId>org.codehaus.mojo</groupId>
84 <artifactId>properties-maven-plugin</artifactId>
85 <version>1.0.0</version>
88 <phase>initialize</phase>
90 <goal>read-project-properties</goal>
94 <file>${basedir}/src/main/resources/swagger.properties</file>
101 <groupId>com.github.kongchen</groupId>
102 <artifactId>swagger-maven-plugin</artifactId>
103 <version>3.1.4</version>
107 <locations>${api-rest-package}</locations>
109 <scheme>http</scheme>
110 <scheme>https</scheme>
112 <host>${api-host-ip}:${api-host-port}</host>
113 <basePath>${api-base-path}</basePath>
115 <title>${api-title}</title>
116 <version>${api-version}</version>
117 <description>${api-description}</description>
119 <name>${api-license}</name>
122 <!--<swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>-->
123 <swaggerDirectory>${basedir}/target/classes</swaggerDirectory>
129 <phase>compile</phase>
131 <goal>generate</goal>
137 <groupId>org.codehaus.mojo</groupId>
138 <artifactId>build-helper-maven-plugin</artifactId>
141 <id>attach-artifacts</id>
142 <phase>package</phase>
144 <goal>attach-artifact</goal>
149 <file>target/classes/swagger.json</file>
151 <classifier>schema</classifier>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-jar-plugin</artifactId>
161 <version>2.4</version>
165 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
171 <groupId>org.apache.maven.plugins</groupId>
172 <artifactId>maven-shade-plugin</artifactId>
173 <version>2.3</version>
175 <createDependencyReducedPom>true</createDependencyReducedPom>
178 <artifact>*:*</artifact>
180 <exclude>META-INF/*.SF</exclude>
181 <exclude>META-INF/*.DSA</exclude>
182 <exclude>META-INF/*.RSA</exclude>
189 <phase>package</phase>
196 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
198 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
199 <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
209 <directory>src/main/java</directory>
211 <include>**/*.properties</include>
215 <directory>src/main/resources</directory>