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-test</artifactId>
11 <packaging>pom</packaging>
14 <branding.version>1.1.0-SNAPSHOT</branding.version>
15 <karaf.resources.version>1.5.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-test</artifactId>
67 <groupId>org.opendaylight.integration</groupId>
68 <version>${project.version}</version>
69 <classifier>features</classifier>
71 <scope>runtime</scope>
74 <!-- External application -->
76 <groupId>org.opendaylight.vtn</groupId>
77 <artifactId>distribution.vtn-coordinator</artifactId>
78 <version>6.0.0.0-SNAPSHOT</version>
80 <classifier>bin</classifier>
83 <groupId>com.google.code.gson</groupId>
84 <artifactId>gson</artifactId>
87 <groupId>commons-codec</groupId>
88 <artifactId>commons-codec</artifactId>
91 <groupId>org.json</groupId>
92 <artifactId>json</artifactId>
98 <groupId>org.opendaylight.vtn</groupId>
99 <artifactId>distribution.vtn-coordinator</artifactId>
100 <version>6.0.0.0-SNAPSHOT</version>
102 <classifier>README</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>
124 <groupId>org.eclipse.m2e</groupId>
125 <artifactId>lifecycle-mapping</artifactId>
126 <version>1.0.0</version>
128 <lifecycleMappingMetadata>
131 <pluginExecutionFilter>
132 <groupId>org.apache.felix</groupId>
133 <artifactId>maven-bundle-plugin</artifactId>
134 <versionRange>[0,)</versionRange>
136 <goal>cleanVersions</goal>
138 </pluginExecutionFilter>
144 <pluginExecutionFilter>
145 <groupId>org.apache.maven.plugins</groupId>
146 <artifactId>maven-dependency-plugin</artifactId>
147 <versionRange>[0,)</versionRange>
152 </pluginExecutionFilter>
158 <pluginExecutionFilter>
159 <groupId>org.apache.karaf.tooling</groupId>
160 <artifactId>karaf-maven-plugin</artifactId>
161 <versionRange>[0,)</versionRange>
163 <goal>commands-generate-help</goal>
165 </pluginExecutionFilter>
171 <pluginExecutionFilter>
172 <groupId>org.fusesource.scalate</groupId>
173 <artifactId>maven-scalate-plugin</artifactId>
174 <versionRange>[0,)</versionRange>
178 </pluginExecutionFilter>
184 <pluginExecutionFilter>
185 <groupId>org.apache.servicemix.tooling</groupId>
186 <artifactId>depends-maven-plugin</artifactId>
187 <versionRange>[0,)</versionRange>
189 <goal>generate-depends-file</goal>
191 </pluginExecutionFilter>
197 </lifecycleMappingMetadata>
204 <artifactId>maven-resources-plugin</artifactId>
205 <version>2.6</version>
208 <id>copy-resources</id>
209 <!-- here the phase you need -->
210 <phase>prepare-package</phase>
212 <goal>copy-resources</goal>
215 <outputDirectory>${basedir}/target/assembly</outputDirectory>
218 <directory>src/main/assembly</directory>
221 <overwrite>true</overwrite>
227 <groupId>org.apache.karaf.tooling</groupId>
228 <artifactId>karaf-maven-plugin</artifactId>
229 <version>${karaf.version}</version>
230 <extensions>true</extensions>
232 <!-- no startupFeatures -->
234 <feature>standard</feature>
236 <!-- no installedFeatures -->
240 <id>populate-system</id>
241 <phase>generate-resources</phase>
243 <goal>features-add-to-repository</goal>
247 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
250 <feature>standard</feature>
251 <feature>config</feature>
252 <feature>package</feature>
253 <feature>kar</feature>
254 <feature>ssh</feature>
255 <feature>management</feature>
256 <feature>war</feature>
258 <repository>target/assembly/system</repository>
262 <id>process-resources</id>
264 <goal>install-kars</goal>
266 <phase>process-resources</phase>
271 <goal>instance-create-archive</goal>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-checkstyle-plugin</artifactId>
279 <version>${checkstyle.version}</version>
281 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-dependency-plugin</artifactId>
287 <version>2.8</version>
294 <!-- here the phase you need -->
295 <phase>generate-resources</phase>
299 <groupId>org.opendaylight.controller</groupId>
300 <artifactId>karaf.branding</artifactId>
301 <version>${karaf.branding.version}</version>
302 <outputDirectory>target/assembly/lib</outputDirectory>
303 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
309 <id>unpack-karaf-resources</id>
311 <goal>unpack-dependencies</goal>
313 <phase>prepare-package</phase>
315 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
316 <groupId>org.opendaylight.controller</groupId>
317 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
318 <excludes>META-INF\/**</excludes>
319 <excludeTransitive>true</excludeTransitive>
320 <ignorePermissions>false</ignorePermissions>
324 <id>copy-dependencies</id>
325 <phase>prepare-package</phase>
327 <goal>copy-dependencies</goal>
330 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
331 <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
332 <overWriteReleases>false</overWriteReleases>
333 <overWriteSnapshots>true</overWriteSnapshots>
334 <overWriteIfNewer>true</overWriteIfNewer>
335 <useRepositoryLayout>true</useRepositoryLayout>
336 <addParentPoms>true</addParentPoms>
337 <copyPom>true</copyPom>
341 <id>copy-externalapps</id>
342 <phase>prepare-package</phase>
344 <goal>copy-dependencies</goal>
347 <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
348 <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
349 <overWriteReleases>false</overWriteReleases>
350 <overWriteSnapshots>true</overWriteSnapshots>
351 <overWriteIfNewer>true</overWriteIfNewer>
352 <excludeTransitive>true</excludeTransitive>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-antrun-plugin</artifactId>
362 <phase>prepare-package</phase>
369 <fileset dir="${project.build.directory}/assembly/bin">
370 <include name="karaf"/>
371 <include name="instance"/>
372 <include name="start"/>
373 <include name="stop"/>
374 <include name="status"/>
375 <include name="client"/>
376 <include name="shell"/>
387 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
388 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
390 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>