Fixing pom files so Eclipse works
[l2switch.git] / loopremover / 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.loopremover</groupId>
11   <artifactId>loopremover-model</artifactId>
12   <packaging>bundle</packaging>
13
14   <dependencies>
15     <dependency>
16       <groupId>org.opendaylight.controller.model</groupId>
17       <artifactId>model-inventory</artifactId>
18     </dependency>
19     <dependency>
20       <groupId>org.opendaylight.yangtools</groupId>
21       <artifactId>yang-common</artifactId>
22     </dependency>
23     <dependency>
24       <groupId>org.opendaylight.yangtools.model</groupId>
25       <artifactId>ietf-yang-types</artifactId>
26     </dependency>
27   </dependencies>
28
29   <build>
30     <plugins>
31       <plugin>
32         <groupId>org.apache.felix</groupId>
33         <artifactId>maven-bundle-plugin</artifactId>
34         <extensions>true</extensions>
35         <configuration>
36           <instructions>
37             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
38             <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package>
39             <manifestLocation>${project.basedir}/META-INF</manifestLocation>
40           </instructions>
41         </configuration>
42       </plugin>
43       <plugin>
44         <groupId>org.opendaylight.yangtools</groupId>
45         <artifactId>yang-maven-plugin</artifactId>
46         <version>${yangtools.version}</version>
47         <dependencies>
48           <dependency>
49             <groupId>org.opendaylight.yangtools</groupId>
50             <artifactId>maven-sal-api-gen-plugin</artifactId>
51             <version>${yangtools.version}</version>
52             <type>jar</type>
53           </dependency>
54           <dependency>
55             <groupId>org.opendaylight.yangtools</groupId>
56             <artifactId>yang-binding</artifactId>
57             <version>${yangtools.version}</version>
58             <type>jar</type>
59           </dependency>
60         </dependencies>
61         <executions>
62           <execution>
63             <goals>
64               <goal>generate-sources</goal>
65             </goals>
66             <configuration>
67               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
68               <codeGenerators>
69                 <generator>
70                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
71                   <outputBaseDir>${codeGeneratorPath}</outputBaseDir>
72                 </generator>
73                 <generator>
74                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
75                   <outputBaseDir>target/site/models</outputBaseDir>
76                 </generator>
77                 <generator>
78                   <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
79                   <outputBaseDir>target/site/models</outputBaseDir>
80                 </generator>
81               </codeGenerators>
82               <inspectDependencies>true</inspectDependencies>
83             </configuration>
84           </execution>
85         </executions>
86
87       </plugin>
88       <!--  cleans up auto generated code  -->
89       <plugin>
90         <artifactId>maven-clean-plugin</artifactId>
91         <configuration>
92           <filesets>
93             <fileset>
94               <directory>${codeGeneratorPath}</directory>
95               <includes>
96                 <include>**</include>
97               </includes>
98             </fileset>
99             <fileset>
100               <directory>${codeGeneratorPath}</directory>
101               <includes>
102                 <include>**</include>
103               </includes>
104             </fileset>
105           </filesets>
106         </configuration>
107       </plugin>
108     </plugins>
109   </build>
110 </project>