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">
4 <artifactId>sdclient</artifactId>
5 <groupId>org.onap.msb.discovery</groupId>
6 <version>1.2.6-SNAPSHOT</version>
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>
16 <directory>src/main/java</directory>
18 <include>**/*.properties</include>
22 <directory>src/main/resources</directory>
27 <groupId>org.codehaus.mojo</groupId>
28 <artifactId>properties-maven-plugin</artifactId>
29 <version>1.0.0</version>
32 <phase>initialize</phase>
34 <goal>read-project-properties</goal>
38 <file>${basedir}/src/main/resources/swagger.properties</file>
45 <groupId>com.github.kongchen</groupId>
46 <artifactId>swagger-maven-plugin</artifactId>
47 <version>3.1.4</version>
50 <phase>compile</phase>
59 <locations>${api-rest-package}</locations>
62 <scheme>https</scheme>
64 <host>${api-host-ip}:${api-host-port}</host>
65 <basePath>${api-base-path}</basePath>
67 <title>${api-title}</title>
68 <version>${api-version}</version>
69 <description>${api-description}</description>
71 <name>${api-license}</name>
74 <swaggerDirectory>${basedir}/target/classes</swaggerDirectory>
80 <groupId>org.codehaus.mojo</groupId>
81 <artifactId>build-helper-maven-plugin</artifactId>
84 <id>attach-artifacts</id>
85 <phase>package</phase>
87 <goal>attach-artifact</goal>
92 <file>target/classes/swagger.json</file>
94 <classifier>schema</classifier>
102 <artifactId>maven-jar-plugin</artifactId>
103 <version>2.4</version>
107 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
113 <artifactId>maven-shade-plugin</artifactId>
114 <version>2.3</version>
117 <phase>package</phase>
125 <mainClass>org.onap.msb.sdclient.DiscoverApp</mainClass>
132 <createDependencyReducedPom>true</createDependencyReducedPom>
135 <artifact>*:*</artifact>
137 <exclude>META-INF/*.SF</exclude>
138 <exclude>META-INF/*.DSA</exclude>
139 <exclude>META-INF/*.RSA</exclude>
149 <groupId>junit</groupId>
150 <artifactId>junit</artifactId>
151 <version>4.12</version>
155 <artifactId>hamcrest-core</artifactId>
156 <groupId>org.hamcrest</groupId>
161 <groupId>org.powermock</groupId>
162 <artifactId>powermock-module-junit4</artifactId>
163 <version>1.6.6</version>
167 <artifactId>powermock-module-junit4-common</artifactId>
168 <groupId>org.powermock</groupId>
173 <groupId>org.powermock</groupId>
174 <artifactId>powermock-api-mockito</artifactId>
175 <version>1.6.6</version>
179 <artifactId>mockito-core</artifactId>
180 <groupId>org.mockito</groupId>
183 <artifactId>powermock-api-mockito-common</artifactId>
184 <groupId>org.powermock</groupId>
187 <artifactId>hamcrest-core</artifactId>
188 <groupId>org.hamcrest</groupId>