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