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