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