Merge "Exception for URI /restconf/operations/module_name:rpc ended with slash"
[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                             </codeGenerators>
60                             <inspectDependencies>true</inspectDependencies>
61                         </configuration>
62                     </execution>
63                 </executions>
64                 <dependencies>
65                     <dependency>
66                         <groupId>org.opendaylight.controller</groupId>
67                         <artifactId>yang-jmx-generator-plugin</artifactId>
68                         <version>${config.version}</version>
69                     </dependency>
70                 </dependencies>
71             </plugin>
72             <plugin>
73                 <groupId>org.codehaus.mojo</groupId>
74                 <artifactId>build-helper-maven-plugin</artifactId>
75                 <version>1.8</version>
76                 <executions>
77                     <execution>
78                         <id>add-source</id>
79                         <phase>generate-sources</phase>
80                         <goals>
81                             <goal>add-source</goal>
82                         </goals>
83                         <configuration>
84                             <sources>
85                                 <source>${jmxGeneratorPath}</source>
86                             </sources>
87                         </configuration>
88                     </execution>
89                 </executions>
90             </plugin>
91         </plugins>
92     </build>
93
94     <dependencies>
95         <dependency>
96             <groupId>${project.groupId}</groupId>
97             <artifactId>sample-toaster</artifactId>
98             <version>${project.version}</version>
99         </dependency>
100         <dependency>
101             <groupId>org.opendaylight.controller</groupId>
102             <artifactId>sal-binding-api</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.opendaylight.controller</groupId>
106             <artifactId>sal-common-util</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>org.opendaylight.controller</groupId>
110             <artifactId>sal-binding-config</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.opendaylight.controller</groupId>
114             <artifactId>config-api</artifactId>
115         </dependency>
116     </dependencies>
117 </project>