Removed duplication of the yang-jmx-generator-plugin
[controller.git] / opendaylight / md-sal / samples / toaster-consumer / 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-consumer</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.osgi</groupId>
36       <artifactId>org.osgi.core</artifactId>
37     </dependency>
38   </dependencies>
39
40   <build>
41     <plugins>
42       <plugin>
43         <groupId>org.apache.felix</groupId>
44         <artifactId>maven-bundle-plugin</artifactId>
45         <configuration>
46           <instructions>
47             <Export-Package>org.opendaylight.controller.sample.toaster.provider.api,
48                             org.opendaylight.controller.config.yang.toaster-consumer,</Export-Package>
49             <Import-Package>*</Import-Package>
50           </instructions>
51         </configuration>
52       </plugin>
53       <plugin>
54         <groupId>org.opendaylight.yangtools</groupId>
55         <artifactId>yang-maven-plugin</artifactId>
56         <executions>
57           <execution>
58             <id>config</id>
59             <goals>
60               <goal>generate-sources</goal>
61             </goals>
62             <configuration>
63               <codeGenerators>
64                 <generator>
65                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
66                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
67                   <additionalConfiguration>
68                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
69                   </additionalConfiguration>
70                 </generator>
71                 <generator>
72                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
73                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
74                 </generator>
75               </codeGenerators>
76               <inspectDependencies>true</inspectDependencies>
77             </configuration>
78           </execution>
79         </executions>
80       </plugin>
81
82     </plugins>
83   </build>
84   <scm>
85     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
86     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
87     <tag>HEAD</tag>
88     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
89   </scm>
90 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.