Merge "Add timeout to netconf IT test"
[controller.git] / karaf / opendaylight-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.5.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>karaf.branding</artifactId>
28       <scope>compile</scope>
29     </dependency>
30
31     <!-- Resources needed -->
32     <dependency>
33       <groupId>org.opendaylight.controller</groupId>
34       <artifactId>opendaylight-karaf-resources</artifactId>
35       <version>${project.version}</version>
36     </dependency>
37
38     <!-- scope is not runtime so the feature repo is pulled into the local
39     repo on build and thus you actually run.  Failure to do so can lead
40     to very confusing errors for devs -->
41     <dependency>
42       <groupId>org.apache.karaf.features</groupId>
43       <artifactId>standard</artifactId>
44       <version>${karaf.version}</version>
45       <classifier>features</classifier>
46       <type>xml</type>
47     </dependency>
48
49     <!--
50           controller provided features:
51           Note: Nothing should go here that is not locked
52           down with testing... ie, no broken feature repos
53     -->
54
55     <!-- AD-SAL Related Features -->
56     <dependency>
57       <groupId>org.opendaylight.controller</groupId>
58       <artifactId>features-base</artifactId>
59       <classifier>features</classifier>
60       <type>xml</type>
61       <scope>runtime</scope>
62     </dependency>
63     <dependency>
64       <groupId>org.opendaylight.controller</groupId>
65       <artifactId>features-adsal</artifactId>
66       <classifier>features</classifier>
67       <type>xml</type>
68       <scope>runtime</scope>
69     </dependency>
70     <dependency>
71       <groupId>org.opendaylight.controller</groupId>
72       <artifactId>features-nsf</artifactId>
73       <classifier>features</classifier>
74       <type>xml</type>
75       <scope>runtime</scope>
76     </dependency>
77     <!-- MD-SAL Related Features -->
78     <dependency>
79       <groupId>org.opendaylight.controller</groupId>
80       <artifactId>features-mdsal</artifactId>
81       <classifier>features</classifier>
82       <type>xml</type>
83       <scope>runtime</scope>
84     </dependency>
85       <dependency>
86           <groupId>org.opendaylight.controller</groupId>
87           <artifactId>features-extras</artifactId>
88           <version>${project.version}</version>
89           <classifier>features</classifier>
90           <type>xml</type>
91           <scope>runtime</scope>
92       </dependency>
93     <dependency>
94       <groupId>org.opendaylight.controller</groupId>
95       <artifactId>features-flow</artifactId>
96       <classifier>features</classifier>
97       <type>xml</type>
98       <scope>runtime</scope>
99     </dependency>
100     <dependency>
101       <groupId>org.opendaylight.controller</groupId>
102       <artifactId>features-restconf</artifactId>
103       <version>1.2.0-SNAPSHOT</version>
104       <classifier>features</classifier>
105       <type>xml</type>
106       <scope>runtime</scope>
107     </dependency>
108     <dependency>
109       <groupId>org.opendaylight.controller</groupId>
110       <artifactId>features-neutron</artifactId>
111       <version>${networkconfig.neutron.version}</version>
112       <classifier>features</classifier>
113       <type>xml</type>
114       <scope>runtime</scope>
115     </dependency>
116     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
117     <dependency>
118       <groupId>org.opendaylight.controller</groupId>
119       <artifactId>features-netconf-connector</artifactId>
120       <classifier>features</classifier>
121       <type>xml</type>
122     </dependency>
123
124   </dependencies>
125
126   <build>
127     <pluginManagement>
128       <plugins>
129         <plugin>
130           <groupId>org.eclipse.m2e</groupId>
131           <artifactId>lifecycle-mapping</artifactId>
132           <version>1.0.0</version>
133           <configuration>
134             <lifecycleMappingMetadata>
135               <pluginExecutions>
136                 <pluginExecution>
137                   <pluginExecutionFilter>
138                     <groupId>org.apache.felix</groupId>
139                     <artifactId>maven-bundle-plugin</artifactId>
140                     <versionRange>[0,)</versionRange>
141                     <goals>
142                       <goal>cleanVersions</goal>
143                     </goals>
144                   </pluginExecutionFilter>
145                   <action>
146                     <ignore></ignore>
147                   </action>
148                 </pluginExecution>
149                 <pluginExecution>
150                   <pluginExecutionFilter>
151                     <groupId>org.apache.maven.plugins</groupId>
152                     <artifactId>maven-dependency-plugin</artifactId>
153                     <versionRange>[0,)</versionRange>
154                     <goals>
155                       <goal>copy</goal>
156                       <goal>unpack</goal>
157                     </goals>
158                   </pluginExecutionFilter>
159                   <action>
160                     <ignore></ignore>
161                   </action>
162                 </pluginExecution>
163                 <pluginExecution>
164                   <pluginExecutionFilter>
165                     <groupId>org.apache.karaf.tooling</groupId>
166                     <artifactId>karaf-maven-plugin</artifactId>
167                     <versionRange>[0,)</versionRange>
168                     <goals>
169                       <goal>commands-generate-help</goal>
170                     </goals>
171                   </pluginExecutionFilter>
172                   <action>
173                     <ignore></ignore>
174                   </action>
175                 </pluginExecution>
176                 <pluginExecution>
177                   <pluginExecutionFilter>
178                     <groupId>org.fusesource.scalate</groupId>
179                     <artifactId>maven-scalate-plugin</artifactId>
180                     <versionRange>[0,)</versionRange>
181                     <goals>
182                       <goal>sitegen</goal>
183                     </goals>
184                   </pluginExecutionFilter>
185                   <action>
186                     <ignore></ignore>
187                   </action>
188                 </pluginExecution>
189                 <pluginExecution>
190                   <pluginExecutionFilter>
191                     <groupId>org.apache.servicemix.tooling</groupId>
192                     <artifactId>depends-maven-plugin</artifactId>
193                     <versionRange>[0,)</versionRange>
194                     <goals>
195                       <goal>generate-depends-file</goal>
196                     </goals>
197                   </pluginExecutionFilter>
198                   <action>
199                     <ignore></ignore>
200                   </action>
201                 </pluginExecution>
202               </pluginExecutions>
203             </lifecycleMappingMetadata>
204           </configuration>
205         </plugin>
206       </plugins>
207     </pluginManagement>
208     <plugins>
209       <plugin>
210         <groupId>org.apache.karaf.tooling</groupId>
211         <artifactId>karaf-maven-plugin</artifactId>
212         <version>${karaf.version}</version>
213         <extensions>true</extensions>
214         <configuration>
215           <!-- no startupFeatures -->
216           <bootFeatures>
217             <feature>standard</feature>
218           </bootFeatures>
219           <!-- no installedFeatures -->
220         </configuration>
221         <executions>
222           <execution>
223             <id>process-resources</id>
224             <goals>
225               <goal>install-kars</goal>
226             </goals>
227             <phase>process-resources</phase>
228           </execution>
229           <execution>
230             <id>package</id>
231             <goals>
232               <goal>instance-create-archive</goal>
233             </goals>
234           </execution>
235         </executions>
236       </plugin>
237       <plugin>
238         <groupId>org.apache.maven.plugins</groupId>
239         <artifactId>maven-checkstyle-plugin</artifactId>
240         <configuration>
241           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
242         </configuration>
243       </plugin>
244       <plugin>
245         <groupId>org.apache.maven.plugins</groupId>
246         <artifactId>maven-dependency-plugin</artifactId>
247         <version>2.6</version>
248         <executions>
249           <execution>
250             <id>copy</id>
251             <goals>
252               <goal>copy</goal>
253             </goals>
254             <!-- here the phase you need -->
255             <phase>generate-resources</phase>
256             <configuration>
257               <artifactItems>
258                 <artifactItem>
259                   <groupId>org.opendaylight.controller</groupId>
260                   <artifactId>karaf.branding</artifactId>
261                   <version>${karaf.branding.version}</version>
262                   <outputDirectory>target/assembly/lib</outputDirectory>
263                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
264                 </artifactItem>
265                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
266               <artifactItem>
267                   <groupId>org.bouncycastle</groupId>
268                   <artifactId>bcprov-jdk15on</artifactId>
269                   <version>${bouncycastle.version}</version>
270                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
271                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
272               </artifactItem>
273               </artifactItems>
274             </configuration>
275           </execution>
276           <execution>
277             <id>unpack-karaf-resources</id>
278             <goals>
279               <goal>unpack-dependencies</goal>
280             </goals>
281             <phase>prepare-package</phase>
282             <configuration>
283              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
284              <groupId>org.opendaylight.controller</groupId>
285              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
286              <excludes>META-INF\/**</excludes>
287              <excludeTransitive>true</excludeTransitive>
288              <ignorePermissions>false</ignorePermissions>
289             </configuration>
290           </execution>
291         </executions>
292       </plugin>
293       <plugin>
294         <groupId>org.apache.maven.plugins</groupId>
295         <artifactId>maven-antrun-plugin</artifactId>
296         <executions>
297             <execution>
298                 <phase>prepare-package</phase>
299                 <goals>
300                     <goal>run</goal>
301                 </goals>
302                 <configuration>
303                   <tasks>
304                     <chmod perm="755">
305                         <fileset dir="${project.build.directory}/assembly/bin">
306                           <include name="karaf"/>
307                           <include name="instance"/>
308                           <include name="start"/>
309                           <include name="stop"/>
310                           <include name="status"/>
311                           <include name="client"/>
312                           <include name="shell"/>
313                         </fileset>
314                     </chmod>
315                   </tasks>
316                 </configuration>
317             </execution>
318         </executions>
319       </plugin>
320     </plugins>
321   </build>
322   <scm>
323     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
324     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
325     <tag>HEAD</tag>
326     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
327   </scm>
328 </project>