BUG-2634 Config binding for netconf server
[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.0-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.0-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.0-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.0-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.0-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>mdsal-netconf-connector</artifactId>
125     </dependency>
126     <dependency>
127       <groupId>org.opendaylight.controller</groupId>
128       <artifactId>netconf-tcp</artifactId>
129     </dependency>
130     <dependency>
131       <groupId>org.opendaylight.controller</groupId>
132       <artifactId>netconf-ssh</artifactId>
133     </dependency>
134     <dependency>
135       <groupId>org.bouncycastle</groupId>
136       <artifactId>bcpkix-jdk15on</artifactId>
137     </dependency>
138     <dependency>
139       <groupId>org.bouncycastle</groupId>
140       <artifactId>bcprov-jdk15on</artifactId>
141     </dependency>
142     <dependency>
143       <groupId>org.opendaylight.controller</groupId>
144       <artifactId>netconf-connector-config</artifactId>
145       <version>${netconf.version}</version>
146       <type>xml</type>
147       <classifier>config</classifier>
148     </dependency>
149
150     <!--
151       Necessary TODO: Put dependencies for configfiles directly referenced
152       in your features.xml file.  For every <configfile> reference in your
153       features.xml file, you need a corresponding dependency here.
154
155       Example (presuming here version is coming from the parent pom):
156       <dependency>
157         <groupId>org.opendaylight.controller</groupId>
158         <artifactId>controller-config</artifactId>
159         <version>${project.version}</version>
160         <type>xml</type>
161         <classifier>config</classifier>
162       </dependency>
163     -->
164
165     <!--
166       Optional TODO: Remove TODO comments.
167     -->
168     <!-- test to validate features.xml -->
169    <!--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)-->
170     <dependency>
171       <groupId>org.opendaylight.yangtools</groupId>
172       <artifactId>features-test</artifactId>
173       <version>${yangtools.version}</version>
174       <scope>test</scope>
175     </dependency>
176     <!-- dependency for opendaylight-karaf-empty for use by testing -->
177     <dependency>
178       <groupId>org.opendaylight.controller</groupId>
179       <artifactId>opendaylight-karaf-empty</artifactId>
180       <version>${commons.opendaylight.version}</version>
181       <type>zip</type>
182     </dependency>
183     <!-- 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;
184     <dependency>
185       <groupId>org.slf4j</groupId>
186       <artifactId>slf4j-simple</artifactId>
187       <version>1.7.2</version>
188     </dependency>
189     -->
190
191    </dependencies>
192    <build>
193       <resources>
194          <resource>
195             <directory>src/main/resources</directory>
196             <filtering>true</filtering>
197          </resource>
198       </resources>
199       <plugins>
200          <plugin>
201             <groupId>org.apache.maven.plugins</groupId>
202             <artifactId>maven-resources-plugin</artifactId>
203             <executions>
204                <execution>
205                   <id>filter</id>
206                   <phase>generate-resources</phase>
207                   <goals>
208                      <goal>resources</goal>
209                   </goals>
210                </execution>
211             </executions>
212          </plugin>
213          <plugin>
214             <groupId>org.codehaus.mojo</groupId>
215             <artifactId>build-helper-maven-plugin</artifactId>
216             <executions>
217                <execution>
218                   <id>attach-artifacts</id>
219                   <phase>package</phase>
220                   <goals>
221                      <goal>attach-artifact</goal>
222                   </goals>
223                   <configuration>
224                      <artifacts>
225                         <artifact>
226                            <file>${project.build.directory}/classes/${features.file}</file>
227                            <type>xml</type>
228                            <classifier>features</classifier>
229                         </artifact>
230                      </artifacts>
231                   </configuration>
232                </execution>
233             </executions>
234          </plugin>
235          <plugin>
236             <groupId>org.apache.maven.plugins</groupId>
237             <artifactId>maven-surefire-plugin</artifactId>
238             <configuration>
239               <systemPropertyVariables>
240                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
241                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
242                 <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
243               </systemPropertyVariables>
244               <dependenciesToScan>
245                <dependency>org.opendaylight.yangtools:features-test</dependency>
246               </dependenciesToScan>
247             </configuration>
248           </plugin>
249       </plugins>
250    </build>
251    <scm>
252       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
253       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
254       <tag>HEAD</tag>
255       <url>https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=summary</url>
256    </scm>
257 </project>