a00cb117fef0f0be91281953fee6145dd8971ae2
[controller.git] / opendaylight / md-sal / samples / toaster / 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.opendaylight.controller.samples</groupId>
7     <artifactId>sal-samples</artifactId>
8     <version>1.5.0-SNAPSHOT</version>
9   </parent>
10   <!-- FIXME Use org.opendaylight.mdsal:binding-parent -->
11
12   <artifactId>sample-toaster</artifactId>
13   <packaging>bundle</packaging>
14
15   <dependencies>
16     <dependency>
17       <groupId>org.opendaylight.mdsal</groupId>
18       <artifactId>yang-binding</artifactId>
19     </dependency>
20     <dependency>
21       <groupId>org.opendaylight.yangtools</groupId>
22       <artifactId>yang-common</artifactId>
23     </dependency>
24   </dependencies>
25
26   <build>
27     <plugins>
28       <plugin>
29         <groupId>org.opendaylight.yangtools</groupId>
30         <artifactId>yang-maven-plugin</artifactId>
31         <dependencies>
32           <dependency>
33             <groupId>org.opendaylight.mdsal</groupId>
34             <artifactId>maven-sal-api-gen-plugin</artifactId>
35             <version>${mdsal.model.version}</version>
36             <type>jar</type>
37           </dependency>
38         </dependencies>
39         <executions>
40           <execution>
41             <goals>
42               <goal>generate-sources</goal>
43             </goals>
44             <configuration>
45               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
46               <codeGenerators>
47                 <generator>
48                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
49                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
50                 </generator>
51               </codeGenerators>
52               <inspectDependencies>true</inspectDependencies>
53             </configuration>
54           </execution>
55         </executions>
56       </plugin>
57     </plugins>
58   </build>
59 </project>