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.controller</groupId>
6 <artifactId>commons.opendaylight</artifactId>
7 <version>1.4.2-SNAPSHOT</version>
8 <relativePath>../../commons/opendaylight</relativePath>
10 <artifactId>distribution.opendaylight-karaf</artifactId>
11 <packaging>pom</packaging>
18 <!-- scope is compile so all features (there is only one) are installed
19 into startup.properties and the feature repo itself is not installed -->
20 <groupId>org.apache.karaf.features</groupId>
21 <artifactId>framework</artifactId>
22 <version>${karaf.version}</version>
26 <groupId>org.opendaylight.controller</groupId>
27 <artifactId>karaf.branding</artifactId>
28 <scope>compile</scope>
31 <!-- Resources needed -->
33 <groupId>org.opendaylight.controller</groupId>
34 <artifactId>opendaylight-karaf-resources</artifactId>
35 <version>${project.version}</version>
38 <!-- scope is not runtime so the feature repo is pulled into the local
39 repo on build and thus you actually run. Failure to do so can lead
40 to very confusing errors for devs -->
42 <groupId>org.apache.karaf.features</groupId>
43 <artifactId>standard</artifactId>
44 <version>${karaf.version}</version>
45 <classifier>features</classifier>
50 controller provided features:
51 Note: Nothing should go here that is not locked
52 down with testing... ie, no broken feature repos
55 <!-- AD-SAL Related Features -->
57 <groupId>org.opendaylight.controller</groupId>
58 <artifactId>features-base</artifactId>
59 <classifier>features</classifier>
63 <groupId>org.opendaylight.controller</groupId>
64 <artifactId>features-adsal</artifactId>
65 <classifier>features</classifier>
69 <groupId>org.opendaylight.controller</groupId>
70 <artifactId>features-nsf</artifactId>
71 <classifier>features</classifier>
74 <!-- MD-SAL Related Features -->
76 <groupId>org.opendaylight.controller</groupId>
77 <artifactId>features-mdsal</artifactId>
78 <classifier>features</classifier>
82 <groupId>org.opendaylight.controller</groupId>
83 <artifactId>features-flow</artifactId>
84 <classifier>features</classifier>
93 <groupId>org.eclipse.m2e</groupId>
94 <artifactId>lifecycle-mapping</artifactId>
95 <version>1.0.0</version>
97 <lifecycleMappingMetadata>
100 <pluginExecutionFilter>
101 <groupId>org.apache.felix</groupId>
102 <artifactId>maven-bundle-plugin</artifactId>
103 <versionRange>[0,)</versionRange>
105 <goal>cleanVersions</goal>
107 </pluginExecutionFilter>
113 <pluginExecutionFilter>
114 <groupId>org.apache.maven.plugins</groupId>
115 <artifactId>maven-dependency-plugin</artifactId>
116 <versionRange>[0,)</versionRange>
121 </pluginExecutionFilter>
127 <pluginExecutionFilter>
128 <groupId>org.apache.karaf.tooling</groupId>
129 <artifactId>karaf-maven-plugin</artifactId>
130 <versionRange>[0,)</versionRange>
132 <goal>commands-generate-help</goal>
134 </pluginExecutionFilter>
140 <pluginExecutionFilter>
141 <groupId>org.fusesource.scalate</groupId>
142 <artifactId>maven-scalate-plugin</artifactId>
143 <versionRange>[0,)</versionRange>
147 </pluginExecutionFilter>
153 <pluginExecutionFilter>
154 <groupId>org.apache.servicemix.tooling</groupId>
155 <artifactId>depends-maven-plugin</artifactId>
156 <versionRange>[0,)</versionRange>
158 <goal>generate-depends-file</goal>
160 </pluginExecutionFilter>
166 </lifecycleMappingMetadata>
173 <groupId>org.apache.karaf.tooling</groupId>
174 <artifactId>karaf-maven-plugin</artifactId>
175 <version>${karaf.version}</version>
176 <extensions>true</extensions>
178 <!-- no startupFeatures -->
180 <feature>standard</feature>
182 <!-- no installedFeatures -->
186 <id>process-resources</id>
188 <goal>install-kars</goal>
190 <phase>process-resources</phase>
195 <goal>instance-create-archive</goal>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-checkstyle-plugin</artifactId>
203 <version>${checkstyle.version}</version>
205 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-dependency-plugin</artifactId>
211 <version>2.6</version>
218 <!-- here the phase you need -->
219 <phase>generate-resources</phase>
223 <groupId>org.opendaylight.controller</groupId>
224 <artifactId>karaf.branding</artifactId>
225 <version>${karaf.branding.version}</version>
226 <outputDirectory>target/assembly/lib</outputDirectory>
227 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
233 <id>unpack-karaf-resources</id>
235 <goal>unpack-dependencies</goal>
237 <phase>prepare-package</phase>
239 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
240 <groupId>org.opendaylight.controller</groupId>
241 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
242 <excludes>META-INF\/**</excludes>
243 <excludeTransitive>true</excludeTransitive>
244 <ignorePermissions>false</ignorePermissions>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-antrun-plugin</artifactId>
254 <phase>prepare-package</phase>
261 <fileset dir="${project.build.directory}/assembly/bin">
262 <include name="karaf"/>
263 <include name="instance"/>
274 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
275 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
277 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>