Roll to initial Dublin snapshot
[sdnc/northbound.git] / generic-resource-api / client / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
6
7     <modelVersion>4.0.0</modelVersion>
8     <packaging>jar</packaging>
9     <groupId>org.onap.sdnc.northbound</groupId>
10     <artifactId>generic-resource-api-client</artifactId>
11     <version>1.5.0-SNAPSHOT</version>
12
13     <name>sdnc-northbound :: generic-resource-api:: ${project.artifactId}</name>
14     <url>http://wiki.onap.org</url>
15     <description>POM to be used for yang2swagger generation of client in SDNC project</description>
16     
17     <parent>
18         <groupId>org.onap.ccsdk.parent</groupId>
19         <artifactId>client-parent</artifactId>
20         <version>1.2.0-SNAPSHOT</version>
21     </parent>
22
23     <dependencies>
24         <!-- This is where the yang comes from -->
25         <dependency>
26             <groupId>${project.groupId}</groupId>
27             <artifactId>generic-resource-api-model</artifactId>
28             <version>${project.version}</version>
29         </dependency>
30         <!-- End this is where the yang comes from -->        
31     </dependencies>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <groupId>org.apache.maven.plugins</groupId>
37                 <artifactId>maven-compiler-plugin</artifactId>
38             </plugin>
39             <plugin>
40                 <groupId>org.apache.maven.plugins</groupId>
41                 <artifactId>maven-dependency-plugin</artifactId>
42                 <configuration>
43                     <includeGroupIds>org.opendaylight.mdsal.model, org.onap.sdnc.northbound</includeGroupIds>
44                 </configuration>
45             </plugin>
46             <plugin>
47                 <artifactId>maven-antrun-plugin</artifactId>
48             </plugin>
49             <plugin>
50                 <groupId>org.opendaylight.yangtools</groupId>
51                 <artifactId>yang-maven-plugin</artifactId>
52             </plugin>
53             <plugin>
54                 <groupId>io.swagger</groupId>
55                 <artifactId>swagger-codegen-maven-plugin</artifactId>
56                 <executions>
57                     <execution>
58                         <goals>
59                             <goal>generate</goal>
60                         </goals>
61                         <configuration>
62                             <configOptions>
63                                 <java8>true</java8>
64                                 <withXml>true</withXml>
65                                 <output>${project.build.directory}/generated-sources/swagger</output>
66                                 <generateApis>false</generateApis>
67                                 <generateApiTests>false</generateApiTests>
68                                 <generateModels>true</generateModels>
69                                 <generateModelTests>false</generateModelTests>
70                                 <generateSupportingFiles>true</generateSupportingFiles>
71                                 <apiPackage>org.onap.sdnc.northbound.client.handler</apiPackage>
72                                 <modelPackage>org.onap.sdnc.northbound.client.model</modelPackage>
73                                 <invokerPackage>org.onap.sdnc.northbound.client.invoker</invokerPackage>
74                                 <sourceFolder>src/main/java</sourceFolder>
75                                 <useBeanValidation>true</useBeanValidation>
76                                 <interfaceOnly>true</interfaceOnly>
77                             </configOptions>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <groupId>org.apache.maven.plugins</groupId>
84                 <artifactId>maven-source-plugin</artifactId>
85             </plugin>
86              <plugin>
87                 <groupId>org.codehaus.mojo</groupId>
88                 <artifactId>build-helper-maven-plugin</artifactId>
89                 <version>1.10</version>
90                 <executions>
91                     <execution>
92                         <id>attach-artifacts</id>
93                         <phase>package</phase>
94                         <goals>
95                             <goal>attach-artifact</goal>
96                         </goals>
97                         <configuration>
98                             <artifacts>
99                                 <artifact>
100                                     <file>target/generated-sources/swagger-maven-api-gen/client.yaml</file>
101                                     <type>yaml</type>
102                                 </artifact>
103                             </artifacts>
104                         </configuration>
105                     </execution>
106                 </executions>
107             </plugin>
108         </plugins>
109     </build>
110 </project>