383ecc96eb1bdd770537464417f101a1b47c01e9
[controller.git] / features / restconf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Necessary TODO: Put your copyright here.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 --><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">
9    <modelVersion>4.0.0</modelVersion>
10    <parent>
11     <groupId>org.opendaylight.controller</groupId>
12     <artifactId>sal-parent</artifactId>
13     <version>1.2.3-SNAPSHOT</version>
14     <relativePath>../../opendaylight/md-sal</relativePath>
15    </parent>
16    <!--
17     Necessary TODO: Hookup your parent pom here, else you will not get necessary versions,
18     maven repos etc.  If you run this archetype in a subdirectory of your project, it
19     will pick the pom.xml from the parent directory as the parent pom, which may or may
20     not be correct.
21   -->
22    <artifactId>features-restconf</artifactId>
23    <groupId>org.opendaylight.controller</groupId>
24    <!-- Optional TODO: Uncomment version if you are not using a parent pom.xml
25    <version>1.1.3-SNAPSHOT</version>
26    -->
27    <packaging>jar</packaging>
28    <properties>
29       <features.file>features.xml</features.file>
30    </properties>
31    <dependencies>
32     <!--
33       Necessary TODO: Put dependencies on any feature repos
34       you use in your features.xml file.
35
36       Note: they will need to be <type>xml</xml>
37       and <classifier>features</classifier>.
38       One other thing to watch for is to make sure they are
39       <scope>compile</compile>, which they should be by default,
40       but be cautious lest they be at a different scope in a parent pom.
41
42       Examples:
43         <dependency>
44           <groupId>org.opendaylight.yangtools</groupId>
45           <artifactId>features-yangtools</artifactId>
46           <version>0.7.3-SNAPSHOT</version>
47           <classifier>features</classifier>
48           <type>xml</type>
49         </dependency>
50         <dependency>
51           <groupId>org.opendaylight.controller</groupId>
52           <artifactId>features-mdsal</artifactId>
53           <version>1.2.3-SNAPSHOT</version>
54           <classifier>features</classifier>
55           <type>xml</type>
56         </dependency>
57         <dependency>
58           <groupId>org.opendaylight.openflowplugin</groupId>
59           <artifactId>features-openflowplugin</artifactId>
60           <version>0.1.3-SNAPSHOT</version>
61           <classifier>features</classifier>
62           <type>xml</type>
63         </dependency>
64     -->
65
66     <!--
67       Necessary TODO: Put dependencies for bundles directly referenced
68       in your features.xml file.  For every <bundle> reference in your
69       features.xml file, you need a corresponding dependency here.
70
71       Examples:
72       <dependency>
73         <groupId>org.opendaylight.controller</groupId>
74         <artifactId>controller-provider</artifactId>
75         <version>${project.version}</version>
76       </dependency>
77       <dependency>
78         <groupId>org.opendaylight.controller</groupId>
79         <artifactId>controller-model</artifactId>
80         <version>${project.version}</version>
81       </dependency>
82     -->
83
84     <!--
85       Necessary TODO: Put dependencies for configfiles directly referenced
86       in your features.xml file.  For every <configfile> reference in your
87       features.xml file, you need a corresponding dependency here.
88
89       Example (presuming here version is coming from the parent pom):
90       <dependency>
91         <groupId>org.opendaylight.controller</groupId>
92         <artifactId>controller-config</artifactId>
93         <version>${project.version}</version>
94         <type>xml</type>
95         <classifier>config</classifier>
96       </dependency>
97     -->
98     <dependency>
99       <groupId>org.opendaylight.yangtools</groupId>
100       <artifactId>features-yangtools</artifactId>
101       <version>${yangtools.version}</version>
102       <classifier>features</classifier>
103       <type>xml</type>
104     </dependency>
105     <dependency>
106       <groupId>org.opendaylight.controller</groupId>
107       <artifactId>features-mdsal</artifactId>
108       <version>${mdsal.version}</version>
109       <classifier>features</classifier>
110       <type>xml</type>
111     </dependency>
112     <dependency>
113       <groupId>org.opendaylight.aaa</groupId>
114       <artifactId>features-aaa</artifactId>
115       <version>${aaa.version}</version>
116       <classifier>features</classifier>
117       <type>xml</type>
118     </dependency>
119
120     <dependency>
121       <groupId>org.opendaylight.controller</groupId>
122       <artifactId>sal-remote</artifactId>
123     </dependency>
124
125     <dependency>
126       <groupId>org.opendaylight.controller</groupId>
127       <artifactId>sal-rest-connector</artifactId>
128     </dependency>
129
130     <dependency>
131       <groupId>com.google.code.gson</groupId>
132       <artifactId>gson</artifactId>
133     </dependency>
134
135     <dependency>
136       <groupId>com.sun.jersey</groupId>
137       <artifactId>jersey-core</artifactId>
138     </dependency>
139     <dependency>
140       <groupId>com.sun.jersey</groupId>
141       <artifactId>jersey-server</artifactId>
142     </dependency>
143     <dependency>
144       <groupId>com.sun.jersey</groupId>
145       <artifactId>jersey-servlet</artifactId>
146     </dependency>
147     <dependency>
148       <groupId>io.netty</groupId>
149       <artifactId>netty-buffer</artifactId>
150     </dependency>
151     <dependency>
152       <groupId>io.netty</groupId>
153       <artifactId>netty-codec</artifactId>
154     </dependency>
155     <dependency>
156       <groupId>io.netty</groupId>
157       <artifactId>netty-codec-http</artifactId>
158     </dependency>
159     <dependency>
160       <groupId>io.netty</groupId>
161       <artifactId>netty-common</artifactId>
162     </dependency>
163     <dependency>
164       <groupId>io.netty</groupId>
165       <artifactId>netty-handler</artifactId>
166     </dependency>
167     <dependency>
168       <groupId>io.netty</groupId>
169       <artifactId>netty-transport</artifactId>
170     </dependency>
171
172     <dependency>
173       <groupId>org.opendaylight.controller</groupId>
174       <artifactId>sal-rest-connector-config</artifactId>
175       <version>${mdsal.version}</version>
176       <type>xml</type>
177       <classifier>config</classifier>
178     </dependency>
179     <dependency>
180       <groupId>org.opendaylight.controller</groupId>
181       <artifactId>sal-rest-connector-config</artifactId>
182       <version>${mdsal.version}</version>
183       <type>xml</type>
184       <classifier>configrestconfservice</classifier>
185     </dependency>
186
187         <dependency>
188       <groupId>com.fasterxml.jackson.core</groupId>
189       <artifactId>jackson-annotations</artifactId>
190     </dependency>
191     <dependency>
192       <groupId>com.fasterxml.jackson.core</groupId>
193       <artifactId>jackson-core</artifactId>
194     </dependency>
195     <dependency>
196       <groupId>com.fasterxml.jackson.core</groupId>
197       <artifactId>jackson-databind</artifactId>
198     </dependency>
199     <dependency>
200       <groupId>com.fasterxml.jackson.datatype</groupId>
201       <artifactId>jackson-datatype-json-org</artifactId>
202     </dependency>
203     <dependency>
204       <groupId>com.fasterxml.jackson.module</groupId>
205       <artifactId>jackson-module-jaxb-annotations</artifactId>
206     </dependency>
207     <dependency>
208       <groupId>com.fasterxml.jackson.jaxrs</groupId>
209       <artifactId>jackson-jaxrs-base</artifactId>
210     </dependency>
211     <dependency>
212       <groupId>com.fasterxml.jackson.jaxrs</groupId>
213       <artifactId>jackson-jaxrs-json-provider</artifactId>
214     </dependency>
215     <dependency>
216       <groupId>org.json</groupId>
217       <artifactId>json</artifactId>
218     </dependency>
219
220     <dependency>
221         <groupId>org.opendaylight.yangtools</groupId>
222         <artifactId>yang-data-codec-gson</artifactId>
223     </dependency>
224
225     <dependency>
226       <groupId>org.opendaylight.controller.samples</groupId>
227       <artifactId>clustering-it-model</artifactId>
228       <version>${mdsal.version}</version>
229     </dependency>
230     <dependency>
231       <groupId>org.opendaylight.controller.samples</groupId>
232       <artifactId>clustering-it-provider</artifactId>
233       <version>${mdsal.version}</version>
234     </dependency>
235     <dependency>
236       <groupId>org.opendaylight.controller.samples</groupId>
237       <artifactId>clustering-it-config</artifactId>
238       <version>${mdsal.version}</version>
239       <type>xml</type>
240       <classifier>config</classifier>
241     </dependency>
242     <dependency>
243       <groupId>org.opendaylight.controller.samples</groupId>
244       <artifactId>clustering-it-config</artifactId>
245       <version>${mdsal.version}</version>
246       <type>xml</type>
247       <classifier>testmoduleshardconf</classifier>
248     </dependency>
249     <dependency>
250       <groupId>org.opendaylight.controller.samples</groupId>
251       <artifactId>clustering-it-config</artifactId>
252       <version>${mdsal.version}</version>
253       <type>xml</type>
254       <classifier>testmoduleconf</classifier>
255     </dependency>
256     <dependency>
257       <groupId>org.opendaylight.controller</groupId>
258       <artifactId>sal-rest-docgen</artifactId>
259     </dependency>
260
261     <!--
262       Optional TODO: Remove TODO comments.
263     -->
264     <!-- test to validate features.xml -->
265     <!-- TEMPORARILY DISABLE TO BREAK CYCLIC DEPENDENCY
266     <dependency>
267       <groupId>org.opendaylight.odlparent</groupId>
268       <artifactId>features-test</artifactId>
269       <scope>test</scope>
270     </dependency>
271     -->
272     <!-- dependency for opendaylight-karaf-empty for use by testing -->
273     <dependency>
274       <groupId>org.opendaylight.controller</groupId>
275       <artifactId>opendaylight-karaf-empty</artifactId>
276       <version>${commons.opendaylight.version}</version>
277       <type>zip</type>
278     </dependency>
279     <!-- Uncomment this if you get an error : java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
280     <dependency>
281       <groupId>org.slf4j</groupId>
282       <artifactId>slf4j-simple</artifactId>
283       <version>1.7.2</version>
284     </dependency>
285     -->
286
287    </dependencies>
288    <build>
289       <resources>
290          <resource>
291             <directory>src/main/resources</directory>
292             <filtering>true</filtering>
293          </resource>
294       </resources>
295       <plugins>
296          <plugin>
297             <groupId>org.apache.maven.plugins</groupId>
298             <artifactId>maven-resources-plugin</artifactId>
299             <executions>
300                <execution>
301                   <id>filter</id>
302                   <phase>generate-resources</phase>
303                   <goals>
304                      <goal>resources</goal>
305                   </goals>
306                </execution>
307             </executions>
308          </plugin>
309          <plugin>
310             <groupId>org.codehaus.mojo</groupId>
311             <artifactId>build-helper-maven-plugin</artifactId>
312             <executions>
313                <execution>
314                   <id>attach-artifacts</id>
315                   <phase>package</phase>
316                   <goals>
317                      <goal>attach-artifact</goal>
318                   </goals>
319                   <configuration>
320                      <artifacts>
321                         <artifact>
322                            <file>${project.build.directory}/classes/${features.file}</file>
323                            <type>xml</type>
324                            <classifier>features</classifier>
325                         </artifact>
326                      </artifacts>
327                   </configuration>
328                </execution>
329             </executions>
330          </plugin>
331          <plugin>
332             <groupId>org.apache.maven.plugins</groupId>
333             <artifactId>maven-surefire-plugin</artifactId>
334             <version>${surefire.version}</version>
335             <configuration>
336               <systemPropertyVariables>
337                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
338                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
339                 <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
340               </systemPropertyVariables>
341               <dependenciesToScan>
342                <dependency>org.opendaylight.odlparent:features-test</dependency>
343               </dependenciesToScan>
344             </configuration>
345           </plugin>
346       </plugins>
347    </build>
348    <scm>
349       <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
350       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
351       <tag>HEAD</tag>
352       <url>https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=summary</url>
353    </scm>
354 </project>