instantiated ipv4 decoder
[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.1.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.controller.model</groupId>
17       <artifactId>model-flow-service</artifactId>
18     </dependency>
19     <dependency>
20       <groupId>org.opendaylight.yangtools.model</groupId>
21       <artifactId>ietf-yang-types</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             <manifestLocation>${project.basedir}/META-INF</manifestLocation>
36           </instructions>
37         </configuration>
38       </plugin>
39       <plugin>
40         <groupId>org.opendaylight.yangtools</groupId>
41         <artifactId>yang-maven-plugin</artifactId>
42         <version>${yangtools.version}</version>
43         <dependencies>
44           <dependency>
45             <groupId>org.opendaylight.yangtools</groupId>
46             <artifactId>maven-sal-api-gen-plugin</artifactId>
47             <version>${yangtools.version}</version>
48             <type>jar</type>
49           </dependency>
50           <dependency>
51             <groupId>org.opendaylight.yangtools</groupId>
52             <artifactId>yang-binding</artifactId>
53             <version>${yangtools.version}</version>
54             <type>jar</type>
55           </dependency>
56         </dependencies>
57         <executions>
58           <execution>
59             <goals>
60               <goal>generate-sources</goal>
61             </goals>
62             <configuration>
63               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
64               <codeGenerators>
65                 <generator>
66                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
67                   <outputBaseDir>${codeGeneratorPath}</outputBaseDir>
68                 </generator>
69                 <generator>
70                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
71                   <outputBaseDir>target/site/models</outputBaseDir>
72                 </generator>
73                 <generator>
74                   <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
75                   <outputBaseDir>target/site/models</outputBaseDir>
76                 </generator>
77               </codeGenerators>
78               <inspectDependencies>true</inspectDependencies>
79             </configuration>
80           </execution>
81         </executions>
82
83       </plugin>
84       <!--  cleans up auto generated code  -->
85       <plugin>
86         <artifactId>maven-clean-plugin</artifactId>
87         <configuration>
88           <filesets>
89             <fileset>
90               <directory>${codeGeneratorPath}</directory>
91               <includes>
92                 <include>**</include>
93               </includes>
94             </fileset>
95             <fileset>
96               <directory>${codeGeneratorPath}</directory>
97               <includes>
98                 <include>**</include>
99               </includes>
100             </fileset>
101           </filesets>
102         </configuration>
103       </plugin>
104     </plugins>
105   </build>
106 </project>