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>
5 <groupId>org.opendaylight.integration</groupId>
6 <artifactId>root</artifactId>
7 <version>0.4.0-SNAPSHOT</version>
8 <relativePath>../../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
14 <branding.version>1.2.0-SNAPSHOT</branding.version>
15 <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
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>
28 <groupId>org.osgi</groupId>
29 <artifactId>org.osgi.core</artifactId>
32 <groupId>org.apache.sshd</groupId>
33 <artifactId>sshd-core</artifactId>
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 -->
41 <groupId>org.apache.karaf.features</groupId>
42 <artifactId>standard</artifactId>
43 <version>${karaf.version}</version>
44 <classifier>features</classifier>
46 <scope>runtime</scope>
51 <groupId>org.opendaylight.controller</groupId>
52 <artifactId>karaf.branding</artifactId>
53 <version>${branding.version}</version>
54 <scope>compile</scope>
57 <!-- Resources needed -->
59 <groupId>org.opendaylight.controller</groupId>
60 <artifactId>opendaylight-karaf-resources</artifactId>
61 <version>${karaf.resources.version}</version>
64 <!-- integration feature -->
66 <artifactId>features-integration-index</artifactId>
67 <groupId>org.opendaylight.integration</groupId>
68 <version>${project.version}</version>
69 <classifier>features</classifier>
71 <scope>runtime</scope>
74 <groupId>org.opendaylight.controller</groupId>
75 <artifactId>opendaylight-karaf-empty</artifactId>
80 <!-- integration test feature -->
82 <artifactId>features-integration-test</artifactId>
83 <groupId>org.opendaylight.integration</groupId>
84 <version>${project.version}</version>
85 <classifier>features</classifier>
90 <groupId>org.opendaylight.controller</groupId>
91 <artifactId>opendaylight-karaf-empty</artifactId>
96 <!-- External application -->
98 <groupId>org.opendaylight.vtn</groupId>
99 <artifactId>distribution.vtn-coordinator</artifactId>
100 <version>6.2.0-SNAPSHOT</version>
102 <classifier>bin</classifier>
105 <groupId>com.google.code.gson</groupId>
106 <artifactId>gson</artifactId>
109 <groupId>commons-codec</groupId>
110 <artifactId>commons-codec</artifactId>
113 <groupId>org.json</groupId>
114 <artifactId>json</artifactId>
120 <groupId>org.opendaylight.vtn</groupId>
121 <artifactId>distribution.vtn-coordinator</artifactId>
122 <version>6.2.0-SNAPSHOT</version>
124 <classifier>README</classifier>
127 <groupId>com.google.code.gson</groupId>
128 <artifactId>gson</artifactId>
131 <groupId>commons-codec</groupId>
132 <artifactId>commons-codec</artifactId>
135 <groupId>org.json</groupId>
136 <artifactId>json</artifactId>
146 <groupId>org.eclipse.m2e</groupId>
147 <artifactId>lifecycle-mapping</artifactId>
148 <version>1.0.0</version>
150 <lifecycleMappingMetadata>
153 <pluginExecutionFilter>
154 <groupId>org.apache.felix</groupId>
155 <artifactId>maven-bundle-plugin</artifactId>
156 <versionRange>[0,)</versionRange>
158 <goal>cleanVersions</goal>
160 </pluginExecutionFilter>
166 <pluginExecutionFilter>
167 <groupId>org.apache.maven.plugins</groupId>
168 <artifactId>maven-dependency-plugin</artifactId>
169 <versionRange>[0,)</versionRange>
174 </pluginExecutionFilter>
180 <pluginExecutionFilter>
181 <groupId>org.apache.karaf.tooling</groupId>
182 <artifactId>karaf-maven-plugin</artifactId>
183 <versionRange>[0,)</versionRange>
185 <goal>commands-generate-help</goal>
187 </pluginExecutionFilter>
193 <pluginExecutionFilter>
194 <groupId>org.fusesource.scalate</groupId>
195 <artifactId>maven-scalate-plugin</artifactId>
196 <versionRange>[0,)</versionRange>
200 </pluginExecutionFilter>
206 <pluginExecutionFilter>
207 <groupId>org.apache.servicemix.tooling</groupId>
208 <artifactId>depends-maven-plugin</artifactId>
209 <versionRange>[0,)</versionRange>
211 <goal>generate-depends-file</goal>
213 </pluginExecutionFilter>
219 </lifecycleMappingMetadata>
226 <artifactId>maven-resources-plugin</artifactId>
227 <version>2.6</version>
230 <id>copy-resources</id>
231 <!-- here the phase you need -->
232 <phase>prepare-package</phase>
234 <goal>copy-resources</goal>
237 <outputDirectory>${basedir}/target/assembly</outputDirectory>
240 <directory>src/main/assembly</directory>
243 <overwrite>true</overwrite>
249 <groupId>org.apache.karaf.tooling</groupId>
250 <artifactId>karaf-maven-plugin</artifactId>
251 <extensions>true</extensions>
253 <!-- no startupFeatures -->
255 <feature>standard</feature>
257 <!-- no installedFeatures -->
261 <id>populate-system</id>
262 <phase>generate-resources</phase>
264 <goal>features-add-to-repository</goal>
268 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
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>
279 <repository>target/assembly/system</repository>
283 <id>process-resources</id>
285 <goal>install-kars</goal>
287 <phase>process-resources</phase>
292 <goal>instance-create-archive</goal>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-checkstyle-plugin</artifactId>
300 <version>${checkstyle.version}</version>
302 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-dependency-plugin</artifactId>
308 <version>2.8</version>
315 <!-- here the phase you need -->
316 <phase>generate-resources</phase>
320 <groupId>org.opendaylight.controller</groupId>
321 <artifactId>karaf.branding</artifactId>
322 <version>${karaf.branding.version}</version>
323 <outputDirectory>target/assembly/lib</outputDirectory>
324 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
330 <id>unpack-karaf-resources</id>
332 <goal>unpack-dependencies</goal>
334 <phase>prepare-package</phase>
336 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
337 <groupId>org.opendaylight.controller</groupId>
338 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
339 <excludes>META-INF\/**</excludes>
340 <excludeTransitive>true</excludeTransitive>
341 <ignorePermissions>false</ignorePermissions>
345 <id>copy-externalapps</id>
346 <phase>prepare-package</phase>
348 <goal>copy-dependencies</goal>
351 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
352 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
353 <overWriteReleases>false</overWriteReleases>
354 <overWriteSnapshots>true</overWriteSnapshots>
355 <overWriteIfNewer>true</overWriteIfNewer>
356 <excludeTransitive>true</excludeTransitive>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-antrun-plugin</artifactId>
366 <phase>prepare-package</phase>
373 <fileset dir="${project.build.directory}/assembly/bin">
374 <include name="karaf"/>
375 <include name="instance"/>
376 <include name="start"/>
377 <include name="stop"/>
378 <include name="status"/>
379 <include name="client"/>
380 <include name="shell"/>
389 <groupId>org.opendaylight.odlparent</groupId>
390 <artifactId>karaf-plugin</artifactId>
391 <version>1.6.0-SNAPSHOT</version>
394 <id>populate-local-repo</id>
396 <goal>populate-local-repo</goal>
399 <localRepo>${project.build.directory}/assembly/system</localRepo>
407 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
408 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
410 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>