Bump versions by 0.1.0 for next dev cycle
[integration/distribution.git] / distribution-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.integration</groupId>
6       <artifactId>root</artifactId>
7       <version>0.5.0-SNAPSHOT</version>
8       <relativePath>../</relativePath>
9    </parent>
10   <artifactId>distribution-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <properties>
14     <branding.version>1.3.0-SNAPSHOT</branding.version>
15     <karaf.resources.version>1.7.0-SNAPSHOT</karaf.resources.version>
16   </properties>
17
18   <dependencies>
19     <dependency>
20       <!-- scope is compile so all features (there is only one) are installed
21             into startup.properties and the feature repo itself is not installed -->
22       <groupId>org.apache.karaf.features</groupId>
23       <artifactId>framework</artifactId>
24       <version>${karaf.version}</version>
25       <type>kar</type>
26       <exclusions>
27         <exclusion>
28           <groupId>org.osgi</groupId>
29           <artifactId>org.osgi.core</artifactId>
30         </exclusion>
31         <exclusion>
32           <groupId>org.apache.sshd</groupId>
33           <artifactId>sshd-core</artifactId>
34         </exclusion>
35       </exclusions>
36     </dependency>
37     <!-- scope is runtime so the feature repo is listed in the features
38       service config file, and features may be installed using the
39       karaf-maven-plugin configuration -->
40     <dependency>
41       <groupId>org.apache.karaf.features</groupId>
42       <artifactId>standard</artifactId>
43       <version>${karaf.version}</version>
44       <classifier>features</classifier>
45       <type>xml</type>
46       <scope>runtime</scope>
47     </dependency>
48
49     <!-- ODL Branding -->
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>karaf.branding</artifactId>
53       <version>${branding.version}</version>
54       <scope>compile</scope>
55     </dependency>
56
57     <!-- Resources needed -->
58     <dependency>
59       <groupId>org.opendaylight.controller</groupId>
60       <artifactId>opendaylight-karaf-resources</artifactId>
61       <version>${karaf.resources.version}</version>
62     </dependency>
63
64     <!-- integration feature -->
65     <dependency>
66       <artifactId>features-integration-index</artifactId>
67       <groupId>org.opendaylight.integration</groupId>
68       <version>${project.version}</version>
69       <classifier>features</classifier>
70       <type>xml</type>
71       <scope>runtime</scope>
72       <exclusions>
73         <exclusion>
74           <groupId>org.opendaylight.controller</groupId>
75           <artifactId>opendaylight-karaf-empty</artifactId>
76         </exclusion>
77       </exclusions>
78     </dependency>
79
80     <!-- integration test feature -->
81     <dependency>
82       <artifactId>features-integration-test</artifactId>
83       <groupId>org.opendaylight.integration</groupId>
84       <version>${project.version}</version>
85       <classifier>features</classifier>
86       <type>xml</type>
87       <scope>test</scope>
88       <exclusions>
89         <exclusion>
90           <groupId>org.opendaylight.controller</groupId>
91           <artifactId>opendaylight-karaf-empty</artifactId>
92         </exclusion>
93       </exclusions>
94     </dependency>
95
96     <!-- External application -->
97     <dependency>
98       <groupId>org.opendaylight.vtn</groupId>
99       <artifactId>distribution.vtn-coordinator</artifactId>
100       <version>6.3.0-SNAPSHOT</version>
101       <type>tar.bz2</type>
102       <classifier>bin</classifier>
103       <exclusions>
104         <exclusion>
105           <groupId>com.google.code.gson</groupId>
106           <artifactId>gson</artifactId>
107         </exclusion>
108         <exclusion>
109           <groupId>commons-codec</groupId>
110           <artifactId>commons-codec</artifactId>
111         </exclusion>
112         <exclusion>
113           <groupId>org.json</groupId>
114           <artifactId>json</artifactId>
115         </exclusion>
116       </exclusions>
117     </dependency>
118
119     <dependency>
120       <groupId>org.opendaylight.vtn</groupId>
121       <artifactId>distribution.vtn-coordinator</artifactId>
122       <version>6.3.0-SNAPSHOT</version>
123       <type>txt</type>
124       <classifier>README</classifier>
125       <exclusions>
126         <exclusion>
127           <groupId>com.google.code.gson</groupId>
128           <artifactId>gson</artifactId>
129         </exclusion>
130         <exclusion>
131           <groupId>commons-codec</groupId>
132           <artifactId>commons-codec</artifactId>
133         </exclusion>
134         <exclusion>
135           <groupId>org.json</groupId>
136           <artifactId>json</artifactId>
137         </exclusion>
138       </exclusions>
139     </dependency>
140   </dependencies>
141
142   <build>
143     <pluginManagement>
144       <plugins>
145         <plugin>
146           <groupId>org.eclipse.m2e</groupId>
147           <artifactId>lifecycle-mapping</artifactId>
148           <version>1.0.0</version>
149           <configuration>
150             <lifecycleMappingMetadata>
151               <pluginExecutions>
152                 <pluginExecution>
153                   <pluginExecutionFilter>
154                     <groupId>org.apache.felix</groupId>
155                     <artifactId>maven-bundle-plugin</artifactId>
156                     <versionRange>[0,)</versionRange>
157                     <goals>
158                       <goal>cleanVersions</goal>
159                     </goals>
160                   </pluginExecutionFilter>
161                   <action>
162                     <ignore></ignore>
163                   </action>
164                 </pluginExecution>
165                 <pluginExecution>
166                   <pluginExecutionFilter>
167                     <groupId>org.apache.maven.plugins</groupId>
168                     <artifactId>maven-dependency-plugin</artifactId>
169                     <versionRange>[0,)</versionRange>
170                     <goals>
171                       <goal>copy</goal>
172                       <goal>unpack</goal>
173                     </goals>
174                   </pluginExecutionFilter>
175                   <action>
176                     <ignore></ignore>
177                   </action>
178                 </pluginExecution>
179                 <pluginExecution>
180                   <pluginExecutionFilter>
181                     <groupId>org.apache.karaf.tooling</groupId>
182                     <artifactId>karaf-maven-plugin</artifactId>
183                     <versionRange>[0,)</versionRange>
184                     <goals>
185                       <goal>commands-generate-help</goal>
186                     </goals>
187                   </pluginExecutionFilter>
188                   <action>
189                     <ignore></ignore>
190                   </action>
191                 </pluginExecution>
192                 <pluginExecution>
193                   <pluginExecutionFilter>
194                     <groupId>org.fusesource.scalate</groupId>
195                     <artifactId>maven-scalate-plugin</artifactId>
196                     <versionRange>[0,)</versionRange>
197                     <goals>
198                       <goal>sitegen</goal>
199                     </goals>
200                   </pluginExecutionFilter>
201                   <action>
202                     <ignore></ignore>
203                   </action>
204                 </pluginExecution>
205                 <pluginExecution>
206                   <pluginExecutionFilter>
207                     <groupId>org.apache.servicemix.tooling</groupId>
208                     <artifactId>depends-maven-plugin</artifactId>
209                     <versionRange>[0,)</versionRange>
210                     <goals>
211                       <goal>generate-depends-file</goal>
212                     </goals>
213                   </pluginExecutionFilter>
214                   <action>
215                     <ignore></ignore>
216                   </action>
217                 </pluginExecution>
218               </pluginExecutions>
219             </lifecycleMappingMetadata>
220           </configuration>
221         </plugin>
222       </plugins>
223     </pluginManagement>
224     <plugins>
225       <plugin>
226         <groupId>org.apache.maven.plugins</groupId>
227         <artifactId>maven-resources-plugin</artifactId>
228         <executions>
229           <execution>
230             <id>copy-resources</id>
231             <!-- here the phase you need -->
232             <phase>prepare-package</phase>
233             <goals>
234               <goal>copy-resources</goal>
235             </goals>
236             <configuration>
237               <outputDirectory>${basedir}/target/assembly</outputDirectory>
238               <resources>
239                 <resource>
240                   <directory>src/main/assembly</directory>
241                 </resource>
242               </resources>
243               <overwrite>true</overwrite>
244             </configuration>
245           </execution>
246         </executions>
247       </plugin>
248       <plugin>
249         <groupId>org.apache.karaf.tooling</groupId>
250         <artifactId>karaf-maven-plugin</artifactId>
251         <extensions>true</extensions>
252         <configuration>
253           <!-- no startupFeatures -->
254           <bootFeatures>
255             <feature>standard</feature>
256           </bootFeatures>
257           <!-- no installedFeatures -->
258         </configuration>
259         <executions>
260           <execution>
261             <id>populate-system</id>
262             <phase>generate-resources</phase>
263             <goals>
264               <goal>features-add-to-repository</goal>
265             </goals>
266             <configuration>
267               <descriptors>
268                 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
269               </descriptors>
270               <features>
271                 <feature>standard</feature>
272                 <feature>config</feature>
273                 <feature>package</feature>
274                 <feature>kar</feature>
275                 <feature>ssh</feature>
276                 <feature>management</feature>
277                 <feature>war</feature>
278               </features>
279               <repository>target/assembly/system</repository>
280             </configuration>
281           </execution>
282           <execution>
283             <id>process-resources</id>
284             <goals>
285               <goal>install-kars</goal>
286             </goals>
287             <phase>process-resources</phase>
288           </execution>
289           <execution>
290             <id>package</id>
291             <goals>
292               <goal>instance-create-archive</goal>
293             </goals>
294           </execution>
295         </executions>
296       </plugin>
297       <plugin>
298         <groupId>org.apache.maven.plugins</groupId>
299         <artifactId>maven-dependency-plugin</artifactId>
300         <executions>
301           <execution>
302             <id>copy</id>
303             <goals>
304               <goal>copy</goal>
305             </goals>
306             <!-- here the phase you need -->
307             <phase>generate-resources</phase>
308             <configuration>
309               <artifactItems>
310                 <artifactItem>
311                   <groupId>org.opendaylight.controller</groupId>
312                   <artifactId>karaf.branding</artifactId>
313                   <version>${karaf.branding.version}</version>
314                   <outputDirectory>target/assembly/lib</outputDirectory>
315                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
316                 </artifactItem>
317               </artifactItems>
318             </configuration>
319           </execution>
320           <execution>
321             <id>unpack-karaf-resources</id>
322             <goals>
323               <goal>unpack-dependencies</goal>
324             </goals>
325             <phase>prepare-package</phase>
326             <configuration>
327              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
328              <groupId>org.opendaylight.controller</groupId>
329              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
330              <excludes>META-INF\/**</excludes>
331              <excludeTransitive>true</excludeTransitive>
332              <ignorePermissions>false</ignorePermissions>
333             </configuration>
334           </execution>
335           <execution>
336             <id>copy-externalapps</id>
337             <phase>prepare-package</phase>
338             <goals>
339               <goal>copy-dependencies</goal>
340             </goals>
341             <configuration>
342               <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
343               <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
344               <overWriteReleases>false</overWriteReleases>
345               <overWriteSnapshots>true</overWriteSnapshots>
346               <overWriteIfNewer>true</overWriteIfNewer>
347               <excludeTransitive>true</excludeTransitive>
348             </configuration>
349           </execution>
350         </executions>
351       </plugin>
352       <plugin>
353         <groupId>org.apache.maven.plugins</groupId>
354         <artifactId>maven-antrun-plugin</artifactId>
355         <executions>
356             <execution>
357                 <phase>prepare-package</phase>
358                 <goals>
359                     <goal>run</goal>
360                 </goals>
361                 <configuration>
362                   <tasks>
363                     <chmod perm="755">
364                         <fileset dir="${project.build.directory}/assembly/bin">
365                           <include name="karaf"/>
366                           <include name="instance"/>
367                           <include name="start"/>
368                           <include name="stop"/>
369                           <include name="status"/>
370                           <include name="client"/>
371                           <include name="shell"/>
372                         </fileset>
373                     </chmod>
374                   </tasks>
375                 </configuration>
376             </execution>
377         </executions>
378       </plugin>
379       <plugin>
380         <groupId>org.opendaylight.odlparent</groupId>
381         <artifactId>karaf-plugin</artifactId>
382         <version>1.7.0-SNAPSHOT</version>
383         <executions>
384           <execution>
385             <id>populate-local-repo</id>
386             <goals>
387               <goal>populate-local-repo</goal>
388             </goals>
389             <configuration>
390               <localRepo>${project.build.directory}/assembly/system</localRepo>
391             </configuration>
392           </execution>
393         </executions>
394       </plugin>
395     </plugins>
396   </build>
397   <scm>
398     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
399     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
400     <tag>HEAD</tag>
401     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
402   </scm>
403 </project>