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.3.0-SNAPSHOT</version>
8 <relativePath>../../</relativePath>
10 <artifactId>distribution-karaf</artifactId>
11 <packaging>pom</packaging>
16 <branding.version>1.1.0-SNAPSHOT</branding.version>
17 <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
22 <!-- scope is compile so all features (there is only one) are installed
23 into startup.properties and the feature repo itself is not installed -->
24 <groupId>org.apache.karaf.features</groupId>
25 <artifactId>framework</artifactId>
26 <version>${karaf.version}</version>
30 <groupId>org.osgi</groupId>
31 <artifactId>org.osgi.core</artifactId>
34 <groupId>org.apache.sshd</groupId>
35 <artifactId>sshd-core</artifactId>
39 <!-- scope is runtime so the feature repo is listed in the features
40 service config file, and features may be installed using the
41 karaf-maven-plugin configuration -->
43 <groupId>org.apache.karaf.features</groupId>
44 <artifactId>standard</artifactId>
45 <version>${karaf.version}</version>
46 <classifier>features</classifier>
48 <scope>runtime</scope>
53 <groupId>org.opendaylight.controller</groupId>
54 <artifactId>karaf.branding</artifactId>
55 <version>${branding.version}</version>
56 <scope>compile</scope>
59 <!-- Resources needed -->
61 <groupId>org.opendaylight.controller</groupId>
62 <artifactId>opendaylight-karaf-resources</artifactId>
63 <version>${karaf.resources.version}</version>
66 <!-- integration feature -->
68 <artifactId>features-integration</artifactId>
69 <groupId>org.opendaylight.integration</groupId>
70 <version>${project.version}</version>
71 <classifier>features</classifier>
73 <scope>runtime</scope>
76 <!-- External application -->
78 <groupId>org.opendaylight.vtn</groupId>
79 <artifactId>distribution.vtn-coordinator</artifactId>
80 <version>6.0.0.0-SNAPSHOT</version>
82 <classifier>bin</classifier>
85 <groupId>com.google.code.gson</groupId>
86 <artifactId>gson</artifactId>
89 <groupId>commons-codec</groupId>
90 <artifactId>commons-codec</artifactId>
93 <groupId>org.json</groupId>
94 <artifactId>json</artifactId>
100 <groupId>org.opendaylight.vtn</groupId>
101 <artifactId>distribution.vtn-coordinator</artifactId>
102 <version>6.0.0.0-SNAPSHOT</version>
104 <classifier>README</classifier>
107 <groupId>com.google.code.gson</groupId>
108 <artifactId>gson</artifactId>
111 <groupId>commons-codec</groupId>
112 <artifactId>commons-codec</artifactId>
115 <groupId>org.json</groupId>
116 <artifactId>json</artifactId>
126 <groupId>org.eclipse.m2e</groupId>
127 <artifactId>lifecycle-mapping</artifactId>
128 <version>1.0.0</version>
130 <lifecycleMappingMetadata>
133 <pluginExecutionFilter>
134 <groupId>org.apache.felix</groupId>
135 <artifactId>maven-bundle-plugin</artifactId>
136 <versionRange>[0,)</versionRange>
138 <goal>cleanVersions</goal>
140 </pluginExecutionFilter>
146 <pluginExecutionFilter>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-dependency-plugin</artifactId>
149 <versionRange>[0,)</versionRange>
154 </pluginExecutionFilter>
160 <pluginExecutionFilter>
161 <groupId>org.apache.karaf.tooling</groupId>
162 <artifactId>karaf-maven-plugin</artifactId>
163 <versionRange>[0,)</versionRange>
165 <goal>commands-generate-help</goal>
167 </pluginExecutionFilter>
173 <pluginExecutionFilter>
174 <groupId>org.fusesource.scalate</groupId>
175 <artifactId>maven-scalate-plugin</artifactId>
176 <versionRange>[0,)</versionRange>
180 </pluginExecutionFilter>
186 <pluginExecutionFilter>
187 <groupId>org.apache.servicemix.tooling</groupId>
188 <artifactId>depends-maven-plugin</artifactId>
189 <versionRange>[0,)</versionRange>
191 <goal>generate-depends-file</goal>
193 </pluginExecutionFilter>
199 </lifecycleMappingMetadata>
206 <artifactId>maven-resources-plugin</artifactId>
207 <version>2.6</version>
210 <id>copy-resources</id>
211 <!-- here the phase you need -->
212 <phase>prepare-package</phase>
214 <goal>copy-resources</goal>
217 <outputDirectory>${basedir}/target/assembly</outputDirectory>
220 <directory>src/main/assembly</directory>
223 <overwrite>true</overwrite>
229 <groupId>org.apache.karaf.tooling</groupId>
230 <artifactId>karaf-maven-plugin</artifactId>
231 <version>${karaf.version}</version>
232 <extensions>true</extensions>
234 <!-- no startupFeatures -->
236 <feature>standard</feature>
238 <!-- no installedFeatures -->
242 <id>populate-system</id>
243 <phase>generate-resources</phase>
245 <goal>features-add-to-repository</goal>
249 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
252 <feature>standard</feature>
253 <feature>config</feature>
254 <feature>package</feature>
255 <feature>kar</feature>
256 <feature>ssh</feature>
257 <feature>management</feature>
258 <feature>war</feature>
260 <repository>target/assembly/system</repository>
264 <id>process-resources</id>
266 <goal>install-kars</goal>
268 <phase>process-resources</phase>
273 <goal>instance-create-archive</goal>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-checkstyle-plugin</artifactId>
281 <version>${checkstyle.version}</version>
283 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-dependency-plugin</artifactId>
289 <version>2.8</version>
296 <!-- here the phase you need -->
297 <phase>generate-resources</phase>
301 <groupId>org.opendaylight.controller</groupId>
302 <artifactId>karaf.branding</artifactId>
303 <version>${karaf.branding.version}</version>
304 <outputDirectory>target/assembly/lib</outputDirectory>
305 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
311 <id>unpack-karaf-resources</id>
313 <goal>unpack-dependencies</goal>
315 <phase>prepare-package</phase>
317 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
318 <groupId>org.opendaylight.controller</groupId>
319 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
320 <excludes>META-INF\/**</excludes>
321 <excludeTransitive>true</excludeTransitive>
322 <ignorePermissions>false</ignorePermissions>
326 <id>copy-dependencies</id>
327 <phase>prepare-package</phase>
329 <goal>copy-dependencies</goal>
332 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
333 <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
334 <overWriteReleases>false</overWriteReleases>
335 <overWriteSnapshots>true</overWriteSnapshots>
336 <overWriteIfNewer>true</overWriteIfNewer>
337 <useRepositoryLayout>true</useRepositoryLayout>
338 <addParentPoms>true</addParentPoms>
339 <copyPom>true</copyPom>
343 <id>copy-externalapps</id>
344 <phase>prepare-package</phase>
346 <goal>copy-dependencies</goal>
349 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
350 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
351 <overWriteReleases>false</overWriteReleases>
352 <overWriteSnapshots>true</overWriteSnapshots>
353 <overWriteIfNewer>true</overWriteIfNewer>
354 <excludeTransitive>true</excludeTransitive>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-antrun-plugin</artifactId>
364 <phase>prepare-package</phase>
371 <fileset dir="${project.build.directory}/assembly/bin">
372 <include name="karaf"/>
373 <include name="instance"/>
374 <include name="start"/>
375 <include name="stop"/>
376 <include name="status"/>
377 <include name="client"/>
378 <include name="shell"/>
389 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
390 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
392 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>