Merge "Added explicit revision date import of ietf-inet-types to opendaylight-statist...
[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                                 <generator>
61                                     <codeGeneratorClass>
62                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
63                                     </codeGeneratorClass>
64                                     <outputBaseDir>
65                                         ${salGeneratorPath}
66                                     </outputBaseDir>
67                                 </generator>
68                             </codeGenerators>
69                             <inspectDependencies>true</inspectDependencies>
70                         </configuration>
71                     </execution>
72                 </executions>
73                 <dependencies>
74                     <dependency>
75                         <groupId>org.opendaylight.controller</groupId>
76                         <artifactId>yang-jmx-generator-plugin</artifactId>
77                         <version>${config.version}</version>
78                     </dependency>
79                     <dependency>
80                         <groupId>org.opendaylight.yangtools</groupId>
81                         <artifactId>maven-sal-api-gen-plugin</artifactId>
82                         <version>${yangtools.version}</version>
83                     </dependency>
84                 </dependencies>
85             </plugin>
86
87             <plugin>
88                 <groupId>org.codehaus.mojo</groupId>
89                 <artifactId>build-helper-maven-plugin</artifactId>
90                 <version>1.8</version>
91                 <executions>
92                     <execution>
93                         <id>add-source</id>
94                         <phase>generate-sources</phase>
95                         <goals>
96                             <goal>add-source</goal>
97                         </goals>
98                         <configuration>
99                             <sources>
100                                 <source>${jmxGeneratorPath}</source>
101                             </sources>
102                         </configuration>
103                     </execution>
104                 </executions>
105             </plugin>
106                 </plugins>
107         </build>
108
109         <dependencies>
110                 <dependency>
111                         <groupId>${project.groupId}</groupId>
112                         <artifactId>sample-toaster</artifactId>
113                         <version>${project.version}</version>
114                 </dependency>
115                 <dependency>
116                         <groupId>org.opendaylight.controller</groupId>
117                         <artifactId>sal-binding-api</artifactId>
118                 </dependency>
119         <dependency>
120             <groupId>org.opendaylight.controller</groupId>
121             <artifactId>config-api</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.opendaylight.controller</groupId>
125             <artifactId>sal-binding-config</artifactId>
126         </dependency>
127         </dependencies>
128 </project>