Merge "Fix sal-netconf-connector feature version"
[netconf.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.netconf</groupId>
12         <artifactId>netconf-features-parent</artifactId>
13         <version>1.0.0-SNAPSHOT</version>
14         <relativePath>..</relativePath>
15     </parent>
16    <artifactId>features-netconf-connector</artifactId>
17
18    <packaging>jar</packaging>
19    <properties>
20       <features.file>features.xml</features.file>
21    </properties>
22    <dependencies>
23     <dependency>
24           <groupId>org.opendaylight.yangtools</groupId>
25           <artifactId>features-yangtools</artifactId>
26           <version>${yangtools.version}</version>
27           <classifier>features</classifier>
28           <type>xml</type>
29         </dependency>
30         <dependency>
31           <groupId>org.opendaylight.controller</groupId>
32           <artifactId>features-mdsal</artifactId>
33           <version>${mdsal.version}</version>
34           <classifier>features</classifier>
35           <type>xml</type>
36         </dependency>
37         <dependency>
38           <groupId>${project.groupId}</groupId>
39           <artifactId>features-netconf</artifactId>
40           <classifier>features</classifier>
41           <type>xml</type>
42         </dependency>
43         <dependency>
44           <groupId>org.opendaylight.aaa</groupId>
45           <artifactId>features-aaa</artifactId>
46           <version>${aaa.version}</version>
47           <classifier>features</classifier>
48           <type>xml</type>
49         </dependency>
50     <dependency>
51       <groupId>${project.groupId}</groupId>
52       <artifactId>sal-netconf-connector</artifactId>
53     </dependency>
54     <dependency>
55       <groupId>org.opendaylight.controller.model</groupId>
56       <artifactId>model-inventory</artifactId>
57     </dependency>
58     <dependency>
59       <groupId>${project.groupId}</groupId>
60       <artifactId>netconf-config-dispatcher</artifactId>
61     </dependency>
62     <dependency>
63       <groupId>${project.groupId}</groupId>
64       <artifactId>netconf-connector-config</artifactId>
65     </dependency>
66     <dependency>
67       <groupId>${project.groupId}</groupId>
68       <artifactId>netconf-tcp</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>${project.groupId}</groupId>
72       <artifactId>netconf-ssh</artifactId>
73     </dependency>
74     <dependency>
75       <groupId>org.bouncycastle</groupId>
76       <artifactId>bcpkix-jdk15on</artifactId>
77     </dependency>
78     <dependency>
79       <groupId>org.bouncycastle</groupId>
80       <artifactId>bcprov-jdk15on</artifactId>
81     </dependency>
82
83     <dependency>
84       <groupId>${project.groupId}</groupId>
85       <artifactId>netconf-connector-config</artifactId>
86       <version>${netconf.version}</version>
87       <type>xml</type>
88       <classifier>config</classifier>
89     </dependency>
90
91     <!--
92       Optional TODO: Remove TODO comments.
93     -->
94     <!-- test to validate features.xml -->
95    <!--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)-->
96     <dependency>
97       <groupId>org.opendaylight.odlparent</groupId>
98       <artifactId>features-test</artifactId>
99       <scope>test</scope>
100     </dependency>
101     <!-- dependency for opendaylight-karaf-empty for use by testing -->
102     <dependency>
103       <groupId>org.opendaylight.controller</groupId>
104       <artifactId>opendaylight-karaf-empty</artifactId>
105       <version>${commons.opendaylight.version}</version>
106       <type>zip</type>
107     </dependency>
108     <!-- 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;
109     <dependency>
110       <groupId>org.slf4j</groupId>
111       <artifactId>slf4j-simple</artifactId>
112       <version>1.7.2</version>
113     </dependency>
114     -->
115
116    </dependencies>
117    <build>
118       <resources>
119          <resource>
120             <directory>src/main/resources</directory>
121             <filtering>true</filtering>
122          </resource>
123       </resources>
124       <plugins>
125          <plugin>
126             <groupId>org.apache.maven.plugins</groupId>
127             <artifactId>maven-resources-plugin</artifactId>
128             <executions>
129                <execution>
130                   <id>filter</id>
131                   <phase>generate-resources</phase>
132                   <goals>
133                      <goal>resources</goal>
134                   </goals>
135                </execution>
136             </executions>
137          </plugin>
138          <plugin>
139             <groupId>org.codehaus.mojo</groupId>
140             <artifactId>build-helper-maven-plugin</artifactId>
141             <executions>
142                <execution>
143                   <id>attach-artifacts</id>
144                   <phase>package</phase>
145                   <goals>
146                      <goal>attach-artifact</goal>
147                   </goals>
148                   <configuration>
149                      <artifacts>
150                         <artifact>
151                            <file>${project.build.directory}/classes/${features.file}</file>
152                            <type>xml</type>
153                            <classifier>features</classifier>
154                         </artifact>
155                      </artifacts>
156                   </configuration>
157                </execution>
158             </executions>
159          </plugin>
160          <plugin>
161             <groupId>org.apache.maven.plugins</groupId>
162             <artifactId>maven-surefire-plugin</artifactId>
163             <configuration>
164               <systemPropertyVariables>
165                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
166                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
167                 <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
168               </systemPropertyVariables>
169               <dependenciesToScan>
170                <dependency>org.opendaylight.odlparent:features-test</dependency>
171               </dependenciesToScan>
172             </configuration>
173           </plugin>
174       </plugins>
175    </build>
176    <scm>
177       <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
178       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
179       <tag>HEAD</tag>
180       <url>https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=summary</url>
181    </scm>
182 </project>