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