ed40d57a59a945afd9c438ef1d7608f1ddefe39e
[l2switch.git] / hosttracker / 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     <artifactId>hosttracker-model</artifactId>
11     <groupId>org.opendaylight.l2switch.hosttracker</groupId>
12     <packaging>bundle</packaging>
13
14     <dependencies>
15         <dependency>
16             <groupId>org.opendaylight.l2switch.addresstracker</groupId>
17             <artifactId>addresstracker-model</artifactId>
18             <version>0.1.0-SNAPSHOT</version>
19             <scope>runtime</scope>
20         </dependency>
21         <dependency>
22             <groupId>org.opendaylight.l2switch.addresstracker</groupId>
23             <artifactId>addresstracker-model</artifactId>
24             <version>0.1.0-SNAPSHOT</version>
25             <scope>compile</scope>
26         </dependency>
27         <dependency>
28             <groupId>org.opendaylight.controller.model</groupId>
29             <artifactId>model-topology</artifactId>
30             <version>1.1-SNAPSHOT</version>
31         </dependency>
32     </dependencies>
33
34     <build>
35         <plugins>
36             <plugin>
37                 <groupId>org.apache.felix</groupId>
38                 <artifactId>maven-bundle-plugin</artifactId>
39                 <extensions>true</extensions>
40                 <configuration>
41                     <instructions>
42                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
43                         <Import-Package>org.opendaylight.yangtools.yang.binding.annotations, *</Import-Package>
44                     </instructions>
45                 </configuration>
46             </plugin>
47             <plugin>
48                 <groupId>org.opendaylight.yangtools</groupId>
49                 <artifactId>yang-maven-plugin</artifactId>
50                 <version>${yangtools.version}</version>
51                 <dependencies>
52                     <dependency>
53                         <groupId>org.opendaylight.yangtools</groupId>
54                         <artifactId>maven-sal-api-gen-plugin</artifactId>
55                         <version>${yangtools.version}</version>
56                         <type>jar</type>
57                     </dependency>
58                     <dependency>
59                         <groupId>org.opendaylight.yangtools</groupId>
60                         <artifactId>yang-binding</artifactId>
61                         <version>${yangtools.version}</version>
62                         <type>jar</type>
63                     </dependency>
64                 </dependencies>
65                 <executions>
66                     <execution>
67                         <goals>
68                             <goal>generate-sources</goal>
69                         </goals>
70                         <configuration>
71
72                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
73                             <codeGenerators>
74                                 <generator>
75                                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
76                                     <outputBaseDir>${codeGeneratorPath}</outputBaseDir>
77                                 </generator>
78                                 <generator>
79                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
80                                     <outputBaseDir>target/site/models</outputBaseDir>
81                                 </generator>
82                                 <generator>
83                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
84                                     <outputBaseDir>target/site/models</outputBaseDir>
85                                 </generator>
86                             </codeGenerators>
87                             <inspectDependencies>true</inspectDependencies>
88                         </configuration>
89                     </execution>
90                 </executions>
91             </plugin>
92             <!--clean generated sources -->
93             <plugin>
94                 <artifactId>maven-clean-plugin</artifactId>
95                 <configuration>
96                     <filesets>
97                         <fileset>
98                             <directory>${codeGeneratorPath}</directory>
99                             <includes>
100                                 <include>**</include>
101                             </includes>
102                         </fileset>
103                     </filesets>
104                 </configuration>
105             </plugin>
106         </plugins>
107         <pluginManagement>
108             <plugins>
109                 <!--add generated source folders as source folders in eclipse -->
110                 <plugin>
111                     <groupId>org.codehaus.mojo</groupId>
112                     <artifactId>build-helper-maven-plugin</artifactId>
113                     <version>1.8</version>
114                     <executions>
115                         <execution>
116                             <id>add-source</id>
117                             <goals>
118                                 <goal>add-source</goal>
119                             </goals>
120                             <phase>generate-sources</phase>
121                             <configuration>
122                                 <sources>
123                                     <source>src/main/yang</source>
124                                     <source>${codeGeneratorPath}</source>
125                                 </sources>
126                             </configuration>
127                         </execution>
128                     </executions>
129                 </plugin>
130             </plugins>
131         </pluginManagement>
132     </build>
133     <name>hosttracker-model</name>
134 </project>