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