Convert swagger docs to v 2
[sdnc/northbound.git] / vnfapi / model / 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/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <artifactId>vnfapi</artifactId>
6         <groupId>org.onap.sdnc.northbound</groupId>
7         <version>1.2.0-SNAPSHOT</version>
8     </parent>
9     <artifactId>vnfapi-model</artifactId>
10     <packaging>bundle</packaging>
11
12     <build>
13
14         <plugins>
15             <plugin>
16                 <groupId>org.apache.felix</groupId>
17                 <artifactId>maven-bundle-plugin</artifactId>
18                 <extensions>true</extensions>
19                 <configuration>
20                     <instructions>
21                         <Import-Package>*</Import-Package>
22                     </instructions>
23                 </configuration>
24             </plugin>
25             <plugin>
26                 <groupId>org.opendaylight.yangtools</groupId>
27                 <artifactId>yang-maven-plugin</artifactId>
28                 <version>${odl.yangtools.yang.maven.plugin.version}</version>
29                 <dependencies>
30                     <dependency>
31                         <groupId>org.opendaylight.mdsal</groupId>
32                         <artifactId>maven-sal-api-gen-plugin</artifactId>
33                         <version>${odl.sal.api.gen.plugin.version}</version>
34                         <type>jar</type>
35                     </dependency>
36                     <dependency>
37                         <groupId>org.opendaylight.netconf</groupId>
38                         <artifactId>sal-rest-docgen-maven</artifactId>
39                         <version>${odl.restconf.version}</version>
40                         <type>jar</type>
41                     </dependency>
42                 </dependencies>
43                 <executions>
44                     <execution>
45                         <goals>
46                             <goal>generate-sources</goal>
47                         </goals>
48                         <configuration>
49                             <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
50                             <codeGenerators>
51                                 <generator>
52                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
53                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
54                                 </generator>
55                                 <generator>
56                                         <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
57                                         <outputBaseDir>target/swagger</outputBaseDir>
58                                 </generator>
59                             </codeGenerators>
60                             <inspectDependencies>true</inspectDependencies>
61                         </configuration>
62                     </execution>
63                 </executions>
64             </plugin>
65                         <plugin>
66                                 <groupId>org.codehaus.mojo</groupId>
67                                 <artifactId>exec-maven-plugin</artifactId>
68                                 <version>1.2.1</version>
69                                 <executions>
70                                         <execution>
71                                                 <configuration>
72                                                         <executable>python</executable>
73                                                         <arguments>
74                                                                 <argument>scripts/python/yang2props.py</argument>
75                                                                 <argument>src/main/yang/VNF-API.yang</argument>
76                                                                 <argument>target/vnfapi.properties</argument>
77                                                         </arguments>
78                                                 </configuration>
79                                                 <id>generation</id>
80                                                 <phase>generate-resources</phase>
81                                                 <goals>
82                                                         <goal>exec</goal>
83                                                 </goals>
84                                         </execution>
85                                 </executions>
86                         </plugin>
87                         <plugin>
88                                 <groupId>org.codehaus.mojo</groupId>
89                                 <artifactId>build-helper-maven-plugin</artifactId>
90                                 <executions>
91                                         <execution>
92                                                 <id>attach-artifacts</id>
93                                                 <goals>
94                                                         <goal>attach-artifact</goal>
95                                                 </goals>
96                                                 <phase>package</phase>
97                                                 <configuration>
98                                                         <artifacts>
99                                                                 <artifact>
100                                                                         <file>${project.build.directory}/vnfapi.properties</file>
101                                                                         <type>properties</type>
102                                                                         <classifier>vnfapi</classifier>
103                                                                 </artifact>
104                                                         </artifacts>
105                                                 </configuration>
106                                         </execution>
107                                 </executions>
108                         </plugin>
109
110         </plugins>
111     </build>
112     <dependencies>
113         <dependency>
114             <groupId>org.opendaylight.mdsal</groupId>
115             <artifactId>yang-binding</artifactId>
116             <version>${odl.mdsal.yang.binding.version}</version>
117         </dependency>
118         <dependency>
119             <groupId>org.opendaylight.yangtools</groupId>
120             <artifactId>yang-common</artifactId>
121             <version>${odl.yangtools.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.opendaylight.mdsal.model</groupId>
125             <artifactId>ietf-inet-types</artifactId>
126             <version>${odl.ietf-inet-types.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>org.opendaylight.mdsal.model</groupId>
130             <artifactId>ietf-yang-types</artifactId>
131             <version>${odl.ietf-yang-types.version}</version>
132         </dependency>
133     </dependencies>
134 </project>