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