Update SDNC NB to depend on CCSDK
[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                 </dependencies>
37                 <executions>
38                     <execution>
39                         <goals>
40                             <goal>generate-sources</goal>
41                         </goals>
42                         <configuration>
43                             <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
44                             <codeGenerators>
45                                 <generator>
46                                     <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
47                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
48                                 </generator>
49                             </codeGenerators>
50                             <inspectDependencies>true</inspectDependencies>
51                         </configuration>
52                     </execution>
53                 </executions>
54             </plugin>
55                         <plugin>
56                                 <groupId>org.codehaus.mojo</groupId>
57                                 <artifactId>exec-maven-plugin</artifactId>
58                                 <version>1.2.1</version>
59                                 <executions>
60                                         <execution>
61                                                 <configuration>
62                                                         <executable>python</executable>
63                                                         <arguments>
64                                                                 <argument>scripts/python/yang2props.py</argument>
65                                                                 <argument>src/main/yang/VNF-API.yang</argument>
66                                                                 <argument>target/vnfapi.properties</argument>
67                                                         </arguments>
68                                                 </configuration>
69                                                 <id>generation</id>
70                                                 <phase>generate-resources</phase>
71                                                 <goals>
72                                                         <goal>exec</goal>
73                                                 </goals>
74                                         </execution>
75                                 </executions>
76                         </plugin>
77                         <plugin>
78                                 <groupId>org.codehaus.mojo</groupId>
79                                 <artifactId>build-helper-maven-plugin</artifactId>
80                                 <executions>
81                                         <execution>
82                                                 <id>attach-artifacts</id>
83                                                 <goals>
84                                                         <goal>attach-artifact</goal>
85                                                 </goals>
86                                                 <phase>package</phase>
87                                                 <configuration>
88                                                         <artifacts>
89                                                                 <artifact>
90                                                                         <file>${project.build.directory}/vnfapi.properties</file>
91                                                                         <type>properties</type>
92                                                                         <classifier>vnfapi</classifier>
93                                                                 </artifact>
94                                                         </artifacts>
95                                                 </configuration>
96                                         </execution>
97                                 </executions>
98                         </plugin>
99
100         </plugins>
101     </build>
102     <dependencies>
103         <dependency>
104             <groupId>org.opendaylight.mdsal</groupId>
105             <artifactId>yang-binding</artifactId>
106             <version>${odl.mdsal.yang.binding.version}</version>
107         </dependency>
108         <dependency>
109             <groupId>org.opendaylight.yangtools</groupId>
110             <artifactId>yang-common</artifactId>
111             <version>${odl.yangtools.version}</version>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.mdsal.model</groupId>
115             <artifactId>ietf-inet-types</artifactId>
116             <version>${odl.ietf-inet-types.version}</version>
117         </dependency>
118         <dependency>
119             <groupId>org.opendaylight.mdsal.model</groupId>
120             <artifactId>ietf-yang-types</artifactId>
121             <version>${odl.ietf-yang-types.version}</version>
122         </dependency>
123     </dependencies>
124 </project>