f9e2ca2491d3dcac54ccb2cf2e87982389192e59
[controller.git] / features / netconf-connector / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
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.1-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-netconf-connector</artifactId>
23    <!-- Optional TODO: Uncomment version if you are not using a parent pom.xml
24    <version>1.1.1-SNAPSHOT</version>
25    -->
26    <packaging>jar</packaging>
27    <properties>
28       <features.file>features.xml</features.file>
29    </properties>
30    <dependencies>
31     <!--
32       Necessary TODO: Put dependencies on any feature repos
33       you use in your features.xml file.
34
35       Note: they will need to be <type>xml</xml>
36       and <classifier>features</classifier>.
37       One other thing to watch for is to make sure they are
38       <scope>compile</compile>, which they should be by default,
39       but be cautious lest they be at a different scope in a parent pom.
40
41       Examples:
42         <dependency>
43           <groupId>org.opendaylight.yangtools</groupId>
44           <artifactId>features-yangtools</artifactId>
45           <version>0.7.1-SNAPSHOT</version>
46           <classifier>features</classifier>
47           <type>xml</type>
48         </dependency>
49         <dependency>
50           <groupId>org.opendaylight.controller</groupId>
51           <artifactId>features-mdsal</artifactId>
52           <version>1.2.1-SNAPSHOT</version>
53           <classifier>features</classifier>
54           <type>xml</type>
55         </dependency>
56         <dependency>
57           <groupId>org.opendaylight.openflowplugin</groupId>
58           <artifactId>features-openflowplugin</artifactId>
59           <version>0.1.1-SNAPSHOT</version>
60           <classifier>features</classifier>
61           <type>xml</type>
62         </dependency>
63     -->
64     <dependency>
65           <groupId>org.opendaylight.yangtools</groupId>
66           <artifactId>features-yangtools</artifactId>
67           <version>${yangtools.version}</version>
68           <classifier>features</classifier>
69           <type>xml</type>
70         </dependency>
71         <dependency>
72           <groupId>org.opendaylight.controller</groupId>
73           <artifactId>features-mdsal</artifactId>
74           <version>${mdsal.version}</version>
75           <classifier>features</classifier>
76           <type>xml</type>
77         </dependency>
78         <dependency>
79           <groupId>org.opendaylight.controller</groupId>
80           <artifactId>features-netconf</artifactId>
81           <version>${netconf.version}</version>
82           <classifier>features</classifier>
83           <type>xml</type>
84         </dependency>
85         <dependency>
86           <groupId>org.opendaylight.aaa</groupId>
87           <artifactId>features-aaa</artifactId>
88           <version>${aaa.version}</version>
89           <classifier>features</classifier>
90           <type>xml</type>
91         </dependency>
92
93     <!--
94       Necessary TODO: Put dependencies for bundles directly referenced
95       in your features.xml file.  For every <bundle> reference in your
96       features.xml file, you need a corresponding dependency here.
97
98       Examples:
99       <dependency>
100         <groupId>org.opendaylight.controller</groupId>
101         <artifactId>controller-provider</artifactId>
102         <version>${project.version}</version>
103       </dependency>
104       <dependency>
105         <groupId>org.opendaylight.controller</groupId>
106         <artifactId>controller-model</artifactId>
107         <version>${project.version}</version>
108       </dependency>
109     -->
110     <dependency>
111       <groupId>org.opendaylight.controller</groupId>
112       <artifactId>sal-netconf-connector</artifactId>
113     </dependency>
114     <dependency>
115       <groupId>org.opendaylight.controller.model</groupId>
116       <artifactId>model-inventory</artifactId>
117     </dependency>
118     <dependency>
119       <groupId>org.opendaylight.controller</groupId>
120       <artifactId>netconf-config-dispatcher</artifactId>
121     </dependency>
122     <dependency>
123       <groupId>org.opendaylight.controller</groupId>
124       <artifactId>netconf-tcp</artifactId>
125     </dependency>
126     <dependency>
127       <groupId>org.opendaylight.controller</groupId>
128       <artifactId>netconf-ssh</artifactId>
129     </dependency>
130     <dependency>
131       <groupId>org.bouncycastle</groupId>
132       <artifactId>bcpkix-jdk15on</artifactId>
133     </dependency>
134     <dependency>
135       <groupId>org.bouncycastle</groupId>
136       <artifactId>bcprov-jdk15on</artifactId>
137     </dependency>
138
139
140      <!-- message-bus -->
141     <dependency>
142       <groupId>org.opendaylight.controller</groupId>
143       <artifactId>messagebus-api</artifactId>
144     </dependency>
145     <dependency>
146       <groupId>org.opendaylight.controller</groupId>
147       <artifactId>messagebus-impl</artifactId>
148     </dependency>
149     <dependency>
150       <groupId>org.opendaylight.controller</groupId>
151       <artifactId>messagebus-config</artifactId>
152       <version>${mdsal.version}</version>
153       <type>xml</type>
154       <classifier>config</classifier>
155     </dependency>
156     <dependency>
157       <groupId>org.opendaylight.controller</groupId>
158       <artifactId>netconf-connector-config</artifactId>
159       <version>${netconf.version}</version>
160       <type>xml</type>
161       <classifier>config</classifier>
162     </dependency>
163
164     <!--
165       Necessary TODO: Put dependencies for configfiles directly referenced
166       in your features.xml file.  For every <configfile> reference in your
167       features.xml file, you need a corresponding dependency here.
168
169       Example (presuming here version is coming from the parent pom):
170       <dependency>
171         <groupId>org.opendaylight.controller</groupId>
172         <artifactId>controller-config</artifactId>
173         <version>${project.version}</version>
174         <type>xml</type>
175         <classifier>config</classifier>
176       </dependency>
177     -->
178
179     <!--
180       Optional TODO: Remove TODO comments.
181     -->
182     <!-- test to validate features.xml -->
183    <!--FIXME BUG-2195 When running single feature tests for netconf connector, features including ssh proxy server always fail (this behavior does not appear when running karaf distro directly)-->
184     <!-- TEMPORARILY DISABLE TO BREAK CYCLIC DEPENDENCY
185     <dependency>
186       <groupId>org.opendaylight.odlparent</groupId>
187       <artifactId>features-test</artifactId>
188       <scope>test</scope>
189     </dependency>
190     -->
191     <!-- dependency for opendaylight-karaf-empty for use by testing -->
192     <dependency>
193       <groupId>org.opendaylight.controller</groupId>
194       <artifactId>opendaylight-karaf-empty</artifactId>
195       <version>${commons.opendaylight.version}</version>
196       <type>zip</type>
197     </dependency>
198     <!-- 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;
199     <dependency>
200       <groupId>org.slf4j</groupId>
201       <artifactId>slf4j-simple</artifactId>
202       <version>1.7.2</version>
203     </dependency>
204     -->
205
206    </dependencies>
207    <build>
208       <resources>
209          <resource>
210             <directory>src/main/resources</directory>
211             <filtering>true</filtering>
212          </resource>
213       </resources>
214       <plugins>
215          <plugin>
216             <groupId>org.apache.maven.plugins</groupId>
217             <artifactId>maven-resources-plugin</artifactId>
218             <executions>
219                <execution>
220                   <id>filter</id>
221                   <phase>generate-resources</phase>
222                   <goals>
223                      <goal>resources</goal>
224                   </goals>
225                </execution>
226             </executions>
227          </plugin>
228          <plugin>
229             <groupId>org.codehaus.mojo</groupId>
230             <artifactId>build-helper-maven-plugin</artifactId>
231             <executions>
232                <execution>
233                   <id>attach-artifacts</id>
234                   <phase>package</phase>
235                   <goals>
236                      <goal>attach-artifact</goal>
237                   </goals>
238                   <configuration>
239                      <artifacts>
240                         <artifact>
241                            <file>${project.build.directory}/classes/${features.file}</file>
242                            <type>xml</type>
243                            <classifier>features</classifier>
244                         </artifact>
245                      </artifacts>
246                   </configuration>
247                </execution>
248             </executions>
249          </plugin>
250          <plugin>
251             <groupId>org.apache.maven.plugins</groupId>
252             <artifactId>maven-surefire-plugin</artifactId>
253             <configuration>
254               <systemPropertyVariables>
255                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
256                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
257                 <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
258               </systemPropertyVariables>
259               <dependenciesToScan>
260                <dependency>org.opendaylight.odlparent:features-test</dependency>
261               </dependenciesToScan>
262             </configuration>
263           </plugin>
264       </plugins>
265    </build>
266    <scm>
267       <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
268       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
269       <tag>HEAD</tag>
270       <url>https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=summary</url>
271    </scm>
272 </project>