Merge "Resolve Bug:522"
[controller.git] / opendaylight / md-sal / samples / toaster-provider / 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-provider</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
18     <properties>
19         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
20         <sal-binding-api.version>1.1-SNAPSHOT</sal-binding-api.version>
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.config.yang.toaster_provider,
32                         </Export-Package>
33                         <Import-Package>*</Import-Package>
34                     </instructions>
35                 </configuration>
36             </plugin>
37             <plugin>
38                 <groupId>org.opendaylight.yangtools</groupId>
39                 <artifactId>yang-maven-plugin</artifactId>
40                 <executions>
41                     <execution>
42                         <id>config</id>
43                         <goals>
44                             <goal>generate-sources</goal>
45                         </goals>
46                         <configuration>
47                             <codeGenerators>
48                                 <generator>
49                                     <codeGeneratorClass>
50                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
51                                     </codeGeneratorClass>
52                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
53                                     <additionalConfiguration>
54                                         <namespaceToPackage1>
55                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
56                                         </namespaceToPackage1>
57                                     </additionalConfiguration>
58                                 </generator>
59                                 <generator>
60                                     <codeGeneratorClass>
61                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
62                                     </codeGeneratorClass>
63                                     <outputBaseDir>
64                                         ${salGeneratorPath}
65                                     </outputBaseDir>
66                                 </generator>
67                             </codeGenerators>
68                             <inspectDependencies>true</inspectDependencies>
69                         </configuration>
70                     </execution>
71                 </executions>
72                 <dependencies>
73                     <dependency>
74                         <groupId>org.opendaylight.controller</groupId>
75                         <artifactId>yang-jmx-generator-plugin</artifactId>
76                         <version>${config.version}</version>
77                     </dependency>
78                     <dependency>
79                         <groupId>org.opendaylight.yangtools</groupId>
80                         <artifactId>maven-sal-api-gen-plugin</artifactId>
81                         <version>${yangtools.version}</version>
82                     </dependency>
83                 </dependencies>
84             </plugin>
85             <plugin>
86                 <groupId>org.codehaus.mojo</groupId>
87                 <artifactId>build-helper-maven-plugin</artifactId>
88                 <version>1.8</version>
89                 <executions>
90                     <execution>
91                         <id>add-source</id>
92                         <phase>generate-sources</phase>
93                         <goals>
94                             <goal>add-source</goal>
95                         </goals>
96                         <configuration>
97                             <sources>
98                                 <source>${jmxGeneratorPath}</source>
99                             </sources>
100                         </configuration>
101                     </execution>
102                 </executions>
103             </plugin>
104         </plugins>
105     </build>
106
107     <dependencies>
108         <dependency>
109             <groupId>${project.groupId}</groupId>
110             <artifactId>sample-toaster</artifactId>
111             <version>${project.version}</version>
112         </dependency>
113         <dependency>
114             <groupId>org.opendaylight.controller</groupId>
115             <artifactId>sal-binding-api</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.controller</groupId>
119             <artifactId>sal-common-util</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.opendaylight.controller</groupId>
123             <artifactId>sal-binding-config</artifactId>
124         </dependency>
125         <dependency>
126             <groupId>org.opendaylight.controller</groupId>
127             <artifactId>config-api</artifactId>
128         </dependency>
129     </dependencies>
130 </project>