Merge "Added explicit revision date import of ietf-inet-types to opendaylight-statist...
[controller.git] / opendaylight / md-sal / sal-dom-broker / 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         <groupId>org.opendaylight.controller</groupId>
5         <artifactId>sal-parent</artifactId>
6         <version>1.1-SNAPSHOT</version>
7     </parent>
8     <artifactId>sal-broker-impl</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     <dependencies>
18         <dependency>
19             <groupId>org.opendaylight.controller</groupId>
20             <artifactId>sal-core-api</artifactId>
21         </dependency>
22         <dependency>
23             <groupId>org.opendaylight.controller</groupId>
24             <artifactId>sal-common-util</artifactId>
25         </dependency>
26         <dependency>
27             <groupId>org.opendaylight.controller</groupId>
28             <artifactId>sal-common-impl</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.controller</groupId>
32             <artifactId>sal-core-spi</artifactId>
33         </dependency>
34         <dependency>
35             <groupId>org.slf4j</groupId>
36             <artifactId>slf4j-api</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>com.google.guava</groupId>
40             <artifactId>guava</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.eclipse.xtend</groupId>
44             <artifactId>org.eclipse.xtend.lib</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.opendaylight.controller</groupId>
48             <artifactId>config-api</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>org.opendaylight.yangtools</groupId>
52             <artifactId>yang-data-impl</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.opendaylight.yangtools</groupId>
56             <artifactId>yang-parser-impl</artifactId>
57         </dependency>
58     </dependencies>
59
60     <build>
61         <plugins>
62             <!-- TODO - unite yang-maven-plugin configuration in md-sal-->
63             <plugin>
64                 <groupId>org.opendaylight.yangtools</groupId>
65                 <artifactId>yang-maven-plugin</artifactId>
66                 <executions>
67                     <execution>
68                         <goals>
69                             <goal>generate-sources</goal>
70                         </goals>
71                         <configuration>
72                             <codeGenerators>
73                                 <generator>
74                                     <codeGeneratorClass>
75                                         org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
76                                     </codeGeneratorClass>
77                                     <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
78                                     <additionalConfiguration>
79                                         <namespaceToPackage1>
80                                             urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
81                                         </namespaceToPackage1>
82                                     </additionalConfiguration>
83                                 </generator>
84                                 <generator>
85                                     <codeGeneratorClass>
86                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
87                                     </codeGeneratorClass>
88                                     <outputBaseDir>
89                                         ${salGeneratorPath}
90                                     </outputBaseDir>
91                                 </generator>
92                                 <generator>
93                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
94                                     <outputBaseDir>target/site/models</outputBaseDir>
95                                 </generator>
96                             </codeGenerators>
97                             <inspectDependencies>true</inspectDependencies>
98                         </configuration>
99                     </execution>
100                 </executions>
101                 <dependencies>
102                     <dependency>
103                         <groupId>org.opendaylight.controller</groupId>
104                         <artifactId>yang-jmx-generator-plugin</artifactId>
105                         <version>${config.version}</version>
106                     </dependency>
107                     <dependency>
108                         <groupId>org.opendaylight.yangtools</groupId>
109                         <artifactId>maven-sal-api-gen-plugin</artifactId>
110                         <version>${yangtools.version}</version>
111                         <type>jar</type>
112                     </dependency>
113                 </dependencies>
114             </plugin>
115             
116             
117             <plugin>
118                 <groupId>org.apache.felix</groupId>
119                 <artifactId>maven-bundle-plugin</artifactId>
120                 <extensions>true</extensions>
121                 <configuration>
122                     <instructions>
123                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
124                         <Bundle-Activator>org.opendaylight.controller.sal.dom.broker.osgi.SchemaServiceActivator</Bundle-Activator>
125                         <Export-Package>
126                             org.opendaylight.controller.sal.dom.broker.spi
127                         </Export-Package>
128                         <Private-Package>
129                             org.opendaylight.controller.sal.dom.broker,
130                             org.opendaylight.controller.sal.dom.broker.impl,
131                             org.opendaylight.controller.sal.dom.broker.osgi,
132                             org.opendaylight.controller.sal.dom.broker.util,
133                             org.opendaylight.controller.config.yang.md.sal.dom.impl,
134                             org.opendaylight.controller.config.yang.md.sal.dom.statistics,
135                             org.opendaylight.yangtools.yang.util,
136                             org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.dom.impl.rev131028.*
137                         </Private-Package>
138                         <Import-Package>
139                             *
140                         </Import-Package>
141                     </instructions>
142                 </configuration>
143             </plugin>
144             <plugin>
145                 <groupId>org.codehaus.mojo</groupId>
146                 <artifactId>build-helper-maven-plugin</artifactId>
147                 <version>1.8</version>
148                 <executions>
149                     <execution>
150                         <id>add-source</id>
151                         <phase>generate-sources</phase>
152                         <goals>
153                             <goal>add-source</goal>
154                         </goals>
155                         <configuration>
156                             <sources>
157                                 <source>${project.build.directory}/generated-sources/config</source>
158                                 <source>src/main/xtend-gen</source>
159                             </sources>
160                         </configuration>
161                     </execution>
162                 </executions>
163             </plugin>
164             <plugin>
165                 <groupId>org.eclipse.xtend</groupId>
166                 <artifactId>xtend-maven-plugin</artifactId>
167             </plugin>
168         </plugins>
169     </build>
170 </project>