55aa8ef6dee89d1a887f28d91987a3c43b98de02
[controller.git] / opendaylight / md-sal / samples / toaster-provider / 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.controller.samples</groupId>
6     <artifactId>sal-samples</artifactId>
7     <version>1.1-SNAPSHOT</version>
8   </parent>
9   <artifactId>sample-toaster-provider</artifactId>
10   <packaging>bundle</packaging>
11
12   <properties>
13     <sal-binding-api.version>1.1-SNAPSHOT</sal-binding-api.version>
14   </properties>
15
16   <dependencies>
17     <dependency>
18       <groupId>${project.groupId}</groupId>
19       <artifactId>sample-toaster</artifactId>
20       <version>${project.version}</version>
21     </dependency>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>config-api</artifactId>
25     </dependency>
26     <dependency>
27       <groupId>org.opendaylight.controller</groupId>
28       <artifactId>sal-binding-api</artifactId>
29     </dependency>
30     <dependency>
31       <groupId>org.opendaylight.controller</groupId>
32       <artifactId>sal-binding-config</artifactId>
33     </dependency>
34     <dependency>
35       <groupId>org.opendaylight.controller</groupId>
36       <artifactId>sal-common-util</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>org.osgi</groupId>
40       <artifactId>org.osgi.core</artifactId>
41     </dependency>
42   </dependencies>
43
44   <build>
45     <plugins>
46       <plugin>
47         <groupId>org.apache.felix</groupId>
48         <artifactId>maven-bundle-plugin</artifactId>
49         <configuration>
50           <instructions>
51             <Export-Package>org.opendaylight.controller.config.yang.toaster_provider,</Export-Package>
52             <Import-Package>*</Import-Package>
53           </instructions>
54         </configuration>
55       </plugin>
56       <plugin>
57         <groupId>org.opendaylight.yangtools</groupId>
58         <artifactId>yang-maven-plugin</artifactId>
59         <dependencies>
60           <dependency>
61             <groupId>org.opendaylight.controller</groupId>
62             <artifactId>yang-jmx-generator-plugin</artifactId>
63             <version>${config.version}</version>
64           </dependency>
65           <dependency>
66             <groupId>org.opendaylight.yangtools</groupId>
67             <artifactId>maven-sal-api-gen-plugin</artifactId>
68             <version>${yangtools.version}</version>
69           </dependency>
70         </dependencies>
71         <executions>
72           <execution>
73             <id>config</id>
74             <goals>
75               <goal>generate-sources</goal>
76             </goals>
77             <configuration>
78               <codeGenerators>
79                 <generator>
80                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
81                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
82                   <additionalConfiguration>
83                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
84                   </additionalConfiguration>
85                 </generator>
86                 <generator>
87                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
88                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
89                 </generator>
90               </codeGenerators>
91               <inspectDependencies>true</inspectDependencies>
92             </configuration>
93           </execution>
94         </executions>
95       </plugin>
96     </plugins>
97   </build>
98   <scm>
99     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
100     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
101     <tag>HEAD</tag>
102     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
103   </scm>
104 </project>