Bump versions by x.(y+1).z for next dev cycle
[l2switch.git] / packethandler / 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     <groupId>org.opendaylight.l2switch</groupId>
6     <artifactId>l2switch-parent</artifactId>
7     <version>0.6.0-SNAPSHOT</version>
8     <relativePath>../../parent</relativePath>
9   </parent>
10   <groupId>org.opendaylight.l2switch.packethandler</groupId>
11   <artifactId>packethandler-model</artifactId>
12   <packaging>bundle</packaging>
13
14   <dependencies>
15     <dependency>
16       <groupId>org.opendaylight.openflowplugin.model</groupId>
17       <artifactId>model-flow-service</artifactId>
18     </dependency>
19     <dependency>
20       <groupId>org.opendaylight.mdsal.model</groupId>
21       <artifactId>ietf-yang-types-20130715</artifactId>
22     </dependency>
23   </dependencies>
24
25   <build>
26     <plugins>
27       <plugin>
28         <groupId>org.apache.felix</groupId>
29         <artifactId>maven-bundle-plugin</artifactId>
30         <extensions>true</extensions>
31         <configuration>
32           <instructions>
33             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
34             <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package>
35           </instructions>
36         </configuration>
37       </plugin>
38       <plugin>
39         <groupId>org.opendaylight.yangtools</groupId>
40         <artifactId>yang-maven-plugin</artifactId>
41         <version>${yangtools.version}</version>
42         <dependencies>
43           <dependency>
44             <groupId>org.opendaylight.mdsal</groupId>
45             <artifactId>maven-sal-api-gen-plugin</artifactId>
46             <version>${mdsal.model.version}</version>
47             <type>jar</type>
48           </dependency>
49           <dependency>
50             <groupId>org.opendaylight.mdsal</groupId>
51             <artifactId>yang-binding</artifactId>
52             <version>${mdsal.model.version}</version>
53             <type>jar</type>
54           </dependency>
55         </dependencies>
56         <executions>
57           <execution>
58             <goals>
59               <goal>generate-sources</goal>
60             </goals>
61             <configuration>
62               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
63               <codeGenerators>
64                 <generator>
65                   <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
66                   <outputBaseDir>${codeGeneratorPath}</outputBaseDir>
67                 </generator>
68                 <generator>
69                   <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
70                   <outputBaseDir>target/site/models</outputBaseDir>
71                 </generator>
72                 <generator>
73                   <codeGeneratorClass>org.opendaylight.mdsal.binding.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
74                   <outputBaseDir>target/site/models</outputBaseDir>
75                 </generator>
76               </codeGenerators>
77               <inspectDependencies>true</inspectDependencies>
78             </configuration>
79           </execution>
80         </executions>
81
82       </plugin>
83       <!--  cleans up auto generated code  -->
84       <plugin>
85         <artifactId>maven-clean-plugin</artifactId>
86         <configuration>
87           <filesets>
88             <fileset>
89               <directory>${codeGeneratorPath}</directory>
90               <includes>
91                 <include>**</include>
92               </includes>
93             </fileset>
94             <fileset>
95               <directory>${codeGeneratorPath}</directory>
96               <includes>
97                 <include>**</include>
98               </includes>
99             </fileset>
100           </filesets>
101         </configuration>
102       </plugin>
103     </plugins>
104   </build>
105 </project>