Support healthy check for registered services
[msb/java-sdk.git] / example / 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"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5     <!-- 
6     <parent>
7       <groupId>org.onap.oparent</groupId>
8       <artifactId>oparent</artifactId>
9       <version>1.1.0-SNAPSHOT</version>
10     </parent>
11      -->
12
13     <groupId>org.onap.msb.java-sdk</groupId>
14     <artifactId>msb-java-sdk-example</artifactId>
15     <name>msb-java-sdk-example</name>
16     <version>1.1.0-SNAPSHOT</version>
17     <packaging>jar</packaging>
18
19     <dependencies>
20         <dependency>
21           <groupId>org.onap.msb.java-sdk</groupId>
22             <artifactId>msb-java-sdk</artifactId>
23             <version>1.1.0-SNAPSHOT</version>
24         </dependency>
25         <dependency>
26             <groupId>io.dropwizard</groupId>
27             <artifactId>dropwizard-core</artifactId>
28             <version>1.2.4</version>
29         </dependency>
30     </dependencies>
31     <build>
32         <plugins>
33             <plugin>
34                 <artifactId>maven-compiler-plugin</artifactId>
35                 <configuration>
36                     <source>1.8</source>
37                     <target>1.8</target>
38                 </configuration>
39             </plugin>
40                         <!-- JSON -->
41              <plugin>
42                     <groupId>org.codehaus.mojo</groupId>
43                     <artifactId>properties-maven-plugin</artifactId>
44                     <version>1.0.0</version>
45                       <executions>
46                           <execution>
47                             <phase>initialize</phase>
48                             <goals>
49                               <goal>read-project-properties</goal>
50                             </goals>
51                             <configuration>
52                               <files>
53                                 <file>${basedir}/src/main/resources/swagger.properties</file>
54                               </files>
55                             </configuration>
56                           </execution>
57                     </executions>
58                 </plugin>
59                 <plugin>
60                     <groupId>com.github.kongchen</groupId>
61                     <artifactId>swagger-maven-plugin</artifactId>
62                     <version>3.1.4</version>
63                     <configuration>
64                         <apiSources>
65                           <apiSource>
66                                 <locations>${api-rest-package}</locations>
67                                 <schemes>http,https</schemes>
68                                 <host>${api-host-ip}:${api-host-port}</host>
69                                 <basePath>${api-base-path}</basePath>
70                                 <info>
71                                     <title>${api-title}</title>
72                                     <version>${api-version}</version>
73                                     <description>${api-description}</description>
74                                     <license>
75                                         <name>${api-license}</name>
76                                     </license>
77                                 </info>
78                                 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
79                             </apiSource>
80                         </apiSources>
81                     </configuration>
82                     <executions>
83                         <execution>
84                             <phase>compile</phase>
85                             <goals>
86                                 <goal>generate</goal>
87                             </goals>
88                         </execution>
89                     </executions>
90                 </plugin>
91                 <plugin>
92                     <groupId>org.apache.maven.plugins</groupId>
93                     <artifactId>maven-install-plugin</artifactId>
94                     <version>2.3.1</version>
95                     <executions>
96                         <execution>
97                             <id>install-file-id</id>
98                             <phase>install</phase>
99                             <goals>
100                                 <goal>install-file</goal>
101                             </goals>
102                             <configuration>
103                                 <file>${basedir}/src/main/resources/swagger.json</file>
104                                 <groupId>${project.groupId}</groupId>
105                                 <artifactId>${project.artifactId}-swagger-schema</artifactId>
106                                 <version>${project.version}</version>
107                                 <packaging>json</packaging>
108                             </configuration>
109                         </execution>
110                     </executions>
111                 </plugin>
112         </plugins>
113     </build>
114 </project>