Roll to next version
[sdnc/northbound.git] / generic-resource-api / 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
5         <parent>
6                 <groupId>org.onap.sdnc.northbound</groupId>
7                 <artifactId>generic-resource-api</artifactId>
8                 <version>1.2.2-SNAPSHOT</version>
9         </parent>
10
11         <artifactId>generic-resource-api-model</artifactId>
12         <packaging>bundle</packaging>
13
14         <dependencies>
15                 <dependency>
16                         <groupId>org.opendaylight.mdsal</groupId>
17                         <artifactId>yang-binding</artifactId>
18                         <version>${odl.mdsal.yang.binding.version}</version>
19                 </dependency>
20                 <dependency>
21                         <groupId>org.opendaylight.yangtools</groupId>
22                         <artifactId>yang-common</artifactId>
23                         <version>${odl.yangtools.version}</version>
24                 </dependency>
25                 <dependency>
26                         <groupId>org.opendaylight.mdsal.model</groupId>
27                         <artifactId>ietf-inet-types</artifactId>
28                         <version>${odl.ietf-inet-types.version}</version>
29                 </dependency>
30                 <dependency>
31                         <groupId>org.opendaylight.mdsal.model</groupId>
32                         <artifactId>ietf-yang-types</artifactId>
33                         <version>${odl.ietf-yang-types.version}</version>
34                 </dependency>
35         </dependencies>
36
37         <build>
38
39                 <plugins>
40                         <plugin>
41                                 <groupId>org.apache.felix</groupId>
42                                 <artifactId>maven-bundle-plugin</artifactId>
43                                 <extensions>true</extensions>
44                                 <configuration>
45                                         <instructions>
46                                                 <Import-Package>*</Import-Package>
47                                         </instructions>
48                                 </configuration>
49                         </plugin>
50                         <plugin>
51                                 <groupId>org.opendaylight.yangtools</groupId>
52                                 <artifactId>yang-maven-plugin</artifactId>
53                                 <dependencies>
54                                         <dependency>
55                                                 <groupId>org.opendaylight.mdsal</groupId>
56                                                 <artifactId>maven-sal-api-gen-plugin</artifactId>
57                                                 <version>${odl.sal.api.gen.plugin.version}</version>
58                                                 <type>jar</type>
59                                         </dependency>
60                                         <dependency>
61                                                 <groupId>org.opendaylight.netconf</groupId>
62                                                 <artifactId>sal-rest-docgen-maven</artifactId>
63                                                 <version>${odl.restconf.version}</version>
64                                                 <type>jar</type>
65                                         </dependency>
66                                 </dependencies>
67                                 <executions>
68                                         <execution>
69                                                 <goals>
70                                                         <goal>generate-sources</goal>
71                                                 </goals>
72                                                 <configuration>
73                                                         <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
74                                                         <codeGenerators>
75                                                                 <generator>
76                                                                         <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
77                                                                         <outputBaseDir>${salGeneratorPath}</outputBaseDir>
78                                                                 </generator>
79                                                                 <generator>
80                                                                         <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
81                                                                         <outputBaseDir>target/swagger</outputBaseDir>
82                                                                 </generator>
83                                                         </codeGenerators>
84                                                         <inspectDependencies>true</inspectDependencies>
85                                                 </configuration>
86                                         </execution>
87                                 </executions>
88                         </plugin>
89                         <plugin>
90                                 <groupId>org.codehaus.mojo</groupId>
91                                 <artifactId>exec-maven-plugin</artifactId>
92                                 <version>1.2.1</version>
93                                 <executions>
94                                         <execution>
95                                                 <configuration>
96                                                         <executable>python</executable>
97                                                         <arguments>
98                                                                 <argument>scripts/python/yang2props.py</argument>
99                                                                 <argument>src/main/yang/GENERIC-RESOURCE-API.yang</argument>
100                                                                 <argument>target/generic-resource-api.properties</argument>
101                                                         </arguments>
102                                                 </configuration>
103                                                 <id>generation</id>
104                                                 <phase>generate-resources</phase>
105                                                 <goals>
106                                                         <goal>exec</goal>
107                                                 </goals>
108                                         </execution>
109                                 </executions>
110                         </plugin>
111                         <plugin>
112                                 <groupId>org.codehaus.mojo</groupId>
113                                 <artifactId>build-helper-maven-plugin</artifactId>
114                                 <executions>
115                                         <execution>
116                                                 <id>attach-artifacts</id>
117                                                 <goals>
118                                                         <goal>attach-artifact</goal>
119                                                 </goals>
120                                                 <phase>package</phase>
121                                                 <configuration>
122                                                         <artifacts>
123                                                                 <artifact>
124                                                                         <file>${project.build.directory}/generic-resource-api.properties</file>
125                                                                         <type>properties</type>
126                                                                         <classifier>generic-resource-api</classifier>
127                                                                 </artifact>
128                                                         </artifacts>
129                                                 </configuration>
130                                         </execution>
131                                 </executions>
132                         </plugin>
133
134         </plugins>
135         <pluginManagement>
136             <plugins>
137                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
138                 <plugin>
139                     <groupId>org.eclipse.m2e</groupId>
140                     <artifactId>lifecycle-mapping</artifactId>
141                     <version>1.0.0</version>
142                     <configuration>
143                         <lifecycleMappingMetadata>
144                             <pluginExecutions>
145                                 <pluginExecution>
146                                     <pluginExecutionFilter>
147                                         <groupId>
148                                             org.codehaus.mojo
149                                         </groupId>
150                                         <artifactId>
151                                             exec-maven-plugin
152                                         </artifactId>
153                                         <versionRange>
154                                             [1.2.1,)
155                                         </versionRange>
156                                         <goals>
157                                             <goal>exec</goal>
158                                         </goals>
159                                     </pluginExecutionFilter>
160                                     <action>
161                                         <ignore />
162                                     </action>
163                                 </pluginExecution>
164                             </pluginExecutions>
165                         </lifecycleMappingMetadata>
166                     </configuration>
167                 </plugin>
168             </plugins>
169         </pluginManagement>
170         </build>
171 </project>