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