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