Bug 4653: Removed VTN.
[integration/distribution.git] / distributions / 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.4.0-SNAPSHOT</version>
8       <relativePath>../../</relativePath>
9    </parent>
10   <artifactId>distribution-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <properties>
14     <branding.version>1.2.0-SNAPSHOT</branding.version>
15     <karaf.resources.version>1.6.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     <!--
98          TODO: Add the following dependencies after the Bug 4426 is fixed.
99     <dependency>
100       <groupId>org.opendaylight.vtn</groupId>
101       <artifactId>distribution.vtn-coordinator</artifactId>
102       <version>6.2.0-SNAPSHOT</version>
103       <type>tar.bz2</type>
104       <classifier>bin</classifier>
105       <exclusions>
106         <exclusion>
107           <groupId>com.google.code.gson</groupId>
108           <artifactId>gson</artifactId>
109         </exclusion>
110         <exclusion>
111           <groupId>commons-codec</groupId>
112           <artifactId>commons-codec</artifactId>
113         </exclusion>
114         <exclusion>
115           <groupId>org.json</groupId>
116           <artifactId>json</artifactId>
117         </exclusion>
118       </exclusions>
119     </dependency>
120
121     <dependency>
122       <groupId>org.opendaylight.vtn</groupId>
123       <artifactId>distribution.vtn-coordinator</artifactId>
124       <version>6.2.0-SNAPSHOT</version>
125       <type>txt</type>
126       <classifier>README</classifier>
127       <exclusions>
128         <exclusion>
129           <groupId>com.google.code.gson</groupId>
130           <artifactId>gson</artifactId>
131         </exclusion>
132         <exclusion>
133           <groupId>commons-codec</groupId>
134           <artifactId>commons-codec</artifactId>
135         </exclusion>
136         <exclusion>
137           <groupId>org.json</groupId>
138           <artifactId>json</artifactId>
139         </exclusion>
140       </exclusions>
141     </dependency>
142     -->
143   </dependencies>
144
145   <build>
146     <pluginManagement>
147       <plugins>
148         <plugin>
149           <groupId>org.eclipse.m2e</groupId>
150           <artifactId>lifecycle-mapping</artifactId>
151           <version>1.0.0</version>
152           <configuration>
153             <lifecycleMappingMetadata>
154               <pluginExecutions>
155                 <pluginExecution>
156                   <pluginExecutionFilter>
157                     <groupId>org.apache.felix</groupId>
158                     <artifactId>maven-bundle-plugin</artifactId>
159                     <versionRange>[0,)</versionRange>
160                     <goals>
161                       <goal>cleanVersions</goal>
162                     </goals>
163                   </pluginExecutionFilter>
164                   <action>
165                     <ignore></ignore>
166                   </action>
167                 </pluginExecution>
168                 <pluginExecution>
169                   <pluginExecutionFilter>
170                     <groupId>org.apache.maven.plugins</groupId>
171                     <artifactId>maven-dependency-plugin</artifactId>
172                     <versionRange>[0,)</versionRange>
173                     <goals>
174                       <goal>copy</goal>
175                       <goal>unpack</goal>
176                     </goals>
177                   </pluginExecutionFilter>
178                   <action>
179                     <ignore></ignore>
180                   </action>
181                 </pluginExecution>
182                 <pluginExecution>
183                   <pluginExecutionFilter>
184                     <groupId>org.apache.karaf.tooling</groupId>
185                     <artifactId>karaf-maven-plugin</artifactId>
186                     <versionRange>[0,)</versionRange>
187                     <goals>
188                       <goal>commands-generate-help</goal>
189                     </goals>
190                   </pluginExecutionFilter>
191                   <action>
192                     <ignore></ignore>
193                   </action>
194                 </pluginExecution>
195                 <pluginExecution>
196                   <pluginExecutionFilter>
197                     <groupId>org.fusesource.scalate</groupId>
198                     <artifactId>maven-scalate-plugin</artifactId>
199                     <versionRange>[0,)</versionRange>
200                     <goals>
201                       <goal>sitegen</goal>
202                     </goals>
203                   </pluginExecutionFilter>
204                   <action>
205                     <ignore></ignore>
206                   </action>
207                 </pluginExecution>
208                 <pluginExecution>
209                   <pluginExecutionFilter>
210                     <groupId>org.apache.servicemix.tooling</groupId>
211                     <artifactId>depends-maven-plugin</artifactId>
212                     <versionRange>[0,)</versionRange>
213                     <goals>
214                       <goal>generate-depends-file</goal>
215                     </goals>
216                   </pluginExecutionFilter>
217                   <action>
218                     <ignore></ignore>
219                   </action>
220                 </pluginExecution>
221               </pluginExecutions>
222             </lifecycleMappingMetadata>
223           </configuration>
224         </plugin>
225       </plugins>
226     </pluginManagement>
227     <plugins>
228       <plugin>
229         <artifactId>maven-resources-plugin</artifactId>
230         <version>2.6</version>
231         <executions>
232           <execution>
233             <id>copy-resources</id>
234             <!-- here the phase you need -->
235             <phase>prepare-package</phase>
236             <goals>
237               <goal>copy-resources</goal>
238             </goals>
239             <configuration>
240               <outputDirectory>${basedir}/target/assembly</outputDirectory>
241               <resources>
242                 <resource>
243                   <directory>src/main/assembly</directory>
244                 </resource>
245               </resources>
246               <overwrite>true</overwrite>
247             </configuration>
248           </execution>
249         </executions>
250       </plugin>
251       <plugin>
252         <groupId>org.apache.karaf.tooling</groupId>
253         <artifactId>karaf-maven-plugin</artifactId>
254         <extensions>true</extensions>
255         <configuration>
256           <!-- no startupFeatures -->
257           <bootFeatures>
258             <feature>standard</feature>
259           </bootFeatures>
260           <!-- no installedFeatures -->
261         </configuration>
262         <executions>
263           <execution>
264             <id>populate-system</id>
265             <phase>generate-resources</phase>
266             <goals>
267               <goal>features-add-to-repository</goal>
268             </goals>
269             <configuration>
270               <descriptors>
271                 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
272               </descriptors>
273               <features>
274                 <feature>standard</feature>
275                 <feature>config</feature>
276                 <feature>package</feature>
277                 <feature>kar</feature>
278                 <feature>ssh</feature>
279                 <feature>management</feature>
280                 <feature>war</feature>
281               </features>
282               <repository>target/assembly/system</repository>
283             </configuration>
284           </execution>
285           <execution>
286             <id>process-resources</id>
287             <goals>
288               <goal>install-kars</goal>
289             </goals>
290             <phase>process-resources</phase>
291           </execution>
292           <execution>
293             <id>package</id>
294             <goals>
295               <goal>instance-create-archive</goal>
296             </goals>
297           </execution>
298         </executions>
299       </plugin>
300       <plugin>
301         <groupId>org.apache.maven.plugins</groupId>
302         <artifactId>maven-checkstyle-plugin</artifactId>
303         <version>${checkstyle.version}</version>
304         <configuration>
305           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
306         </configuration>
307       </plugin>
308       <plugin>
309         <groupId>org.apache.maven.plugins</groupId>
310         <artifactId>maven-dependency-plugin</artifactId>
311         <version>2.8</version>
312         <executions>
313           <execution>
314             <id>copy</id>
315             <goals>
316               <goal>copy</goal>
317             </goals>
318             <!-- here the phase you need -->
319             <phase>generate-resources</phase>
320             <configuration>
321               <artifactItems>
322                 <artifactItem>
323                   <groupId>org.opendaylight.controller</groupId>
324                   <artifactId>karaf.branding</artifactId>
325                   <version>${karaf.branding.version}</version>
326                   <outputDirectory>target/assembly/lib</outputDirectory>
327                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
328                 </artifactItem>
329               </artifactItems>
330             </configuration>
331           </execution>
332           <execution>
333             <id>unpack-karaf-resources</id>
334             <goals>
335               <goal>unpack-dependencies</goal>
336             </goals>
337             <phase>prepare-package</phase>
338             <configuration>
339              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
340              <groupId>org.opendaylight.controller</groupId>
341              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
342              <excludes>META-INF\/**</excludes>
343              <excludeTransitive>true</excludeTransitive>
344              <ignorePermissions>false</ignorePermissions>
345             </configuration>
346           </execution>
347           <!--
348              TODO: Add the execution after the Bug 4426 is fixed.
349           <execution>
350             <id>copy-externalapps</id>
351             <phase>prepare-package</phase>
352             <goals>
353               <goal>copy-dependencies</goal>
354             </goals>
355             <configuration>
356               <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
357               <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
358               <overWriteReleases>false</overWriteReleases>
359               <overWriteSnapshots>true</overWriteSnapshots>
360               <overWriteIfNewer>true</overWriteIfNewer>
361               <excludeTransitive>true</excludeTransitive>
362             </configuration>
363           </execution>
364           -->
365         </executions>
366       </plugin>
367       <plugin>
368         <groupId>org.apache.maven.plugins</groupId>
369         <artifactId>maven-antrun-plugin</artifactId>
370         <executions>
371             <execution>
372                 <phase>prepare-package</phase>
373                 <goals>
374                     <goal>run</goal>
375                 </goals>
376                 <configuration>
377                   <tasks>
378                     <chmod perm="755">
379                         <fileset dir="${project.build.directory}/assembly/bin">
380                           <include name="karaf"/>
381                           <include name="instance"/>
382                           <include name="start"/>
383                           <include name="stop"/>
384                           <include name="status"/>
385                           <include name="client"/>
386                           <include name="shell"/>
387                         </fileset>
388                     </chmod>
389                   </tasks>
390                 </configuration>
391             </execution>
392         </executions>
393       </plugin>
394       <plugin>
395         <groupId>org.opendaylight.odlparent</groupId>
396         <artifactId>karaf-plugin</artifactId>
397         <version>1.6.0-SNAPSHOT</version>
398         <executions>
399           <execution>
400             <id>populate-local-repo</id>
401             <goals>
402               <goal>populate-local-repo</goal>
403             </goals>
404             <configuration>
405               <localRepo>${project.build.directory}/assembly/system</localRepo>
406             </configuration>
407           </execution>
408         </executions>
409       </plugin>
410     </plugins>
411   </build>
412   <scm>
413     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
414     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
415     <tag>HEAD</tag>
416     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
417   </scm>
418 </project>