Remove hardcode yang.jmx.plugin
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>sal-parent</artifactId>
7     <version>1.1-SNAPSHOT</version>
8     <relativePath>../..</relativePath>
9   </parent>
10
11   <artifactId>sal-remoterpc-connector</artifactId>
12   <packaging>bundle</packaging>
13
14   <properties>
15     <stax.version>1.0.1</stax.version>
16     <zeromq.version>0.3.1</zeromq.version>
17   </properties>
18
19   <dependencies>
20     <dependency>
21       <groupId>${project.groupId}</groupId>
22       <artifactId>sal-common-util</artifactId>
23       <version>${project.version}</version>
24     </dependency>
25     <dependency>
26       <groupId>${project.groupId}</groupId>
27       <artifactId>sal-connector-api</artifactId>
28       <version>${project.version}</version>
29     </dependency>
30     <!-- MD Sal interdependencies -->
31     <dependency>
32       <groupId>${project.groupId}</groupId>
33       <artifactId>sal-core-api</artifactId>
34       <version>${project.version}</version>
35     </dependency>
36     <dependency>
37       <groupId>com.fasterxml.jackson.core</groupId>
38       <artifactId>jackson-annotations</artifactId>
39     </dependency>
40
41     <dependency>
42       <groupId>com.fasterxml.jackson.core</groupId>
43       <artifactId>jackson-core</artifactId>
44     </dependency>
45
46     <dependency>
47       <groupId>com.fasterxml.jackson.core</groupId>
48       <artifactId>jackson-databind</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>com.google.guava</groupId>
52       <artifactId>guava</artifactId>
53     </dependency>
54
55     <!-- Tests -->
56     <dependency>
57       <groupId>junit</groupId>
58       <artifactId>junit</artifactId>
59     </dependency>
60     <dependency>
61       <groupId>org.mockito</groupId>
62       <artifactId>mockito-all</artifactId>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.controller</groupId>
66       <artifactId>remoterpc-routingtable.implementation</artifactId>
67       <version>${project.version}</version>
68     </dependency>
69
70     <!-- AD Sal -->
71     <dependency>
72       <groupId>org.opendaylight.controller</groupId>
73       <artifactId>sal</artifactId>
74     </dependency>
75
76     <!-- Yang tools -->
77     <dependency>
78       <groupId>org.opendaylight.yangtools</groupId>
79       <artifactId>yang-common</artifactId>
80     </dependency>
81     <dependency>
82       <groupId>org.opendaylight.yangtools</groupId>
83       <artifactId>yang-data-api</artifactId>
84     </dependency>
85     <dependency>
86       <groupId>org.opendaylight.yangtools</groupId>
87       <artifactId>yang-data-impl</artifactId>
88     </dependency>
89
90     <!-- Third Party -->
91     <dependency>
92       <groupId>org.osgi</groupId>
93       <artifactId>org.osgi.core</artifactId>
94     </dependency>
95     <dependency>
96       <groupId>org.slf4j</groupId>
97       <artifactId>slf4j-api</artifactId>
98     </dependency>
99     <dependency>
100       <groupId>org.zeromq</groupId>
101       <artifactId>jeromq</artifactId>
102       <version>${zeromq.version}</version>
103     </dependency>
104
105     <dependency>
106       <groupId>stax</groupId>
107       <artifactId>stax-api</artifactId>
108       <version>${stax.version}</version>
109     </dependency>
110     <dependency>
111       <groupId>ch.qos.logback</groupId>
112       <artifactId>logback-classic</artifactId>
113       <scope>test</scope>
114     </dependency>
115   </dependencies>
116
117   <build>
118     <plugins>
119       <plugin>
120         <groupId>org.apache.felix</groupId>
121         <artifactId>maven-bundle-plugin</artifactId>
122         <extensions>true</extensions>
123         <configuration>
124           <instructions>
125             <Import-Package>*,
126                             !org.codehaus.enunciate.jaxrs</Import-Package>
127             <Export-Package>org.opendaylight.controller.config.yang.md.sal.remote.rpc,
128                             org.opendaylight.controller.sal.connector.remoterpc.util,
129                             org.opendaylight.controller.sal.connector.remoterpc.dto,
130                             org.opendaylight.controller.sal.connector.remoterpc.RemoteRpcClient,
131                             org.opendaylight.controller.sal.connector.remoterpc.RemoteRpcServer,
132                             org.opendaylight.controller.sal.connector.remoterpc.RemoteRpcProvider</Export-Package>
133             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
134           </instructions>
135         </configuration>
136       </plugin>
137
138       <plugin>
139         <groupId>org.opendaylight.yangtools</groupId>
140         <artifactId>yang-maven-plugin</artifactId>
141         <dependencies>
142           <dependency>
143             <groupId>org.opendaylight.controller</groupId>
144             <artifactId>yang-jmx-generator-plugin</artifactId>
145             <version>${config.version}</version>
146           </dependency>
147           <dependency>
148             <groupId>org.opendaylight.yangtools</groupId>
149             <artifactId>maven-sal-api-gen-plugin</artifactId>
150             <version>${yangtools.version}</version>
151             <type>jar</type>
152           </dependency>
153         </dependencies>
154         <executions>
155           <execution>
156             <goals>
157               <goal>generate-sources</goal>
158             </goals>
159             <configuration>
160               <codeGenerators>
161                 <generator>
162                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
163                   <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
164                   <additionalConfiguration>
165                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
166                   </additionalConfiguration>
167                 </generator>
168                 <generator>
169                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
170                   <outputBaseDir>${salGeneratorPath}</outputBaseDir>
171                 </generator>
172                 <generator>
173                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
174                   <outputBaseDir>target/site/models</outputBaseDir>
175                 </generator>
176
177                 <generator>
178                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
179                   <outputBaseDir>target/site/models</outputBaseDir>
180                 </generator>
181               </codeGenerators>
182               <inspectDependencies>true</inspectDependencies>
183             </configuration>
184           </execution>
185         </executions>
186       </plugin>
187     </plugins>
188   </build>
189 </project>