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.6.1-SNAPSHOT</version>
8 <relativePath>../../opendaylight/commons/opendaylight</relativePath>
10 <artifactId>distribution.opendaylight-karaf</artifactId>
11 <packaging>pom</packaging>
15 <!-- scope is compile so all features (there is only one) are installed
16 into startup.properties and the feature repo itself is not installed -->
17 <groupId>org.apache.karaf.features</groupId>
18 <artifactId>framework</artifactId>
19 <version>${karaf.version}</version>
23 <groupId>org.opendaylight.controller</groupId>
24 <artifactId>karaf.branding</artifactId>
25 <scope>compile</scope>
28 <!-- Resources needed -->
30 <groupId>org.opendaylight.controller</groupId>
31 <artifactId>opendaylight-karaf-resources</artifactId>
32 <version>${project.version}</version>
35 <!-- scope is not runtime so the feature repo is pulled into the local
36 repo on build and thus you actually run. Failure to do so can lead
37 to very confusing errors for devs -->
39 <groupId>org.apache.karaf.features</groupId>
40 <artifactId>standard</artifactId>
41 <version>${karaf.version}</version>
42 <classifier>features</classifier>
47 controller provided features:
48 Note: Nothing should go here that is not locked
49 down with testing... ie, no broken feature repos
52 <!-- MD-SAL Related Features -->
54 <groupId>org.opendaylight.controller</groupId>
55 <artifactId>features-mdsal</artifactId>
56 <classifier>features</classifier>
58 <scope>runtime</scope>
61 <groupId>org.opendaylight.controller</groupId>
62 <artifactId>features-extras</artifactId>
63 <version>${project.version}</version>
64 <classifier>features</classifier>
66 <scope>runtime</scope>
69 <groupId>org.opendaylight.mdsal</groupId>
70 <artifactId>features-mdsal</artifactId>
71 <version>2.0.1-SNAPSHOT</version>
72 <classifier>features</classifier>
74 <scope>runtime</scope>
77 <groupId>org.opendaylight.mdsal.model</groupId>
78 <artifactId>features-mdsal-model</artifactId>
79 <version>0.8.1-SNAPSHOT</version>
80 <classifier>features</classifier>
82 <scope>runtime</scope>
85 <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
87 <groupId>org.opendaylight.controller</groupId>
88 <artifactId>features-netconf-connector</artifactId>
89 <classifier>features</classifier>
98 <groupId>org.eclipse.m2e</groupId>
99 <artifactId>lifecycle-mapping</artifactId>
100 <version>1.0.0</version>
102 <lifecycleMappingMetadata>
105 <pluginExecutionFilter>
106 <groupId>org.apache.felix</groupId>
107 <artifactId>maven-bundle-plugin</artifactId>
108 <versionRange>[0,)</versionRange>
110 <goal>cleanVersions</goal>
112 </pluginExecutionFilter>
118 <pluginExecutionFilter>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-dependency-plugin</artifactId>
121 <versionRange>[0,)</versionRange>
126 </pluginExecutionFilter>
132 <pluginExecutionFilter>
133 <groupId>org.apache.karaf.tooling</groupId>
134 <artifactId>karaf-maven-plugin</artifactId>
135 <versionRange>[0,)</versionRange>
137 <goal>commands-generate-help</goal>
139 </pluginExecutionFilter>
145 <pluginExecutionFilter>
146 <groupId>org.fusesource.scalate</groupId>
147 <artifactId>maven-scalate-plugin</artifactId>
148 <versionRange>[0,)</versionRange>
152 </pluginExecutionFilter>
158 <pluginExecutionFilter>
159 <groupId>org.apache.servicemix.tooling</groupId>
160 <artifactId>depends-maven-plugin</artifactId>
161 <versionRange>[0,)</versionRange>
163 <goal>generate-depends-file</goal>
165 </pluginExecutionFilter>
171 </lifecycleMappingMetadata>
178 <groupId>org.apache.karaf.tooling</groupId>
179 <artifactId>karaf-maven-plugin</artifactId>
180 <version>${karaf.version}</version>
181 <extensions>true</extensions>
183 <!-- no startupFeatures -->
185 <feature>standard</feature>
187 <!-- no installedFeatures -->
191 <id>process-resources</id>
193 <goal>install-kars</goal>
195 <phase>process-resources</phase>
200 <goal>instance-create-archive</goal>
206 <groupId>org.apache.maven.plugins</groupId>
207 <artifactId>maven-checkstyle-plugin</artifactId>
209 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
213 <groupId>org.apache.maven.plugins</groupId>
214 <artifactId>maven-dependency-plugin</artifactId>
221 <!-- here the phase you need -->
222 <phase>generate-resources</phase>
226 <groupId>org.opendaylight.controller</groupId>
227 <artifactId>karaf.branding</artifactId>
228 <version>${karaf.branding.version}</version>
229 <outputDirectory>target/assembly/lib</outputDirectory>
230 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
232 <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
234 <groupId>org.bouncycastle</groupId>
235 <artifactId>bcprov-jdk15on</artifactId>
236 <version>${bouncycastle.version}</version>
237 <outputDirectory>target/assembly/lib/ext</outputDirectory>
238 <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
244 <id>unpack-karaf-resources</id>
246 <goal>unpack-dependencies</goal>
248 <phase>prepare-package</phase>
250 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
251 <groupId>org.opendaylight.controller</groupId>
252 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
253 <excludes>META-INF\/**</excludes>
254 <excludeTransitive>true</excludeTransitive>
255 <ignorePermissions>false</ignorePermissions>
261 <groupId>org.apache.maven.plugins</groupId>
262 <artifactId>maven-antrun-plugin</artifactId>
265 <phase>prepare-package</phase>
272 <fileset dir="${project.build.directory}/assembly/bin">
273 <include name="karaf"/>
274 <include name="instance"/>
275 <include name="start"/>
276 <include name="stop"/>
277 <include name="status"/>
278 <include name="client"/>
279 <include name="shell"/>
290 <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
291 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
293 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>