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>base-features</artifactId>
28 <version>${project.version}</version>
32 <groupId>org.opendaylight.controller</groupId>
33 <artifactId>karaf.branding</artifactId>
34 <scope>compile</scope>
36 <!-- scope is runtime so the feature repo is listed in the features
37 service config file, and features may be installed using the
38 karaf-maven-plugin configuration -->
40 <groupId>org.apache.karaf.features</groupId>
41 <artifactId>standard</artifactId>
42 <version>${karaf.version}</version>
43 <classifier>features</classifier>
45 <scope>runtime</scope>
48 <groupId>org.opendaylight.controller</groupId>
49 <artifactId>base-features</artifactId>
50 <version>${project.parent.version}</version>
51 <classifier>features</classifier>
53 <scope>runtime</scope>
55 <!-- scope is compile so all features (there is only one) are installed
56 into startup.properties and the feature repo itself is not installed -->
58 <groupId>org.opendaylight.controller</groupId>
59 <artifactId>extras-features</artifactId>
60 <version>${project.version}</version>
62 <scope>runtime</scope>
65 <groupId>org.opendaylight.controller</groupId>
66 <artifactId>config-netty-features</artifactId>
67 <classifier>features</classifier>
69 <scope>runtime</scope>
72 <!-- AD-SAL Related Features -->
74 <groupId>org.opendaylight.controller</groupId>
75 <artifactId>features-adsal</artifactId>
76 <classifier>features</classifier>
78 <scope>runtime</scope>
81 <groupId>org.opendaylight.controller</groupId>
82 <artifactId>features-nsf</artifactId>
83 <version>${project.version}</version>
84 <classifier>features</classifier>
86 <scope>runtime</scope>
89 <!-- MD-SAL Related Features -->
91 <groupId>org.opendaylight.controller</groupId>
92 <artifactId>mdsal-features</artifactId>
93 <classifier>features</classifier>
95 <scope>runtime</scope>
103 <groupId>org.eclipse.m2e</groupId>
104 <artifactId>lifecycle-mapping</artifactId>
105 <version>1.0.0</version>
107 <lifecycleMappingMetadata>
110 <pluginExecutionFilter>
111 <groupId>org.apache.felix</groupId>
112 <artifactId>maven-bundle-plugin</artifactId>
113 <versionRange>[0,)</versionRange>
115 <goal>cleanVersions</goal>
117 </pluginExecutionFilter>
123 <pluginExecutionFilter>
124 <groupId>org.apache.maven.plugins</groupId>
125 <artifactId>maven-dependency-plugin</artifactId>
126 <versionRange>[0,)</versionRange>
131 </pluginExecutionFilter>
137 <pluginExecutionFilter>
138 <groupId>org.apache.karaf.tooling</groupId>
139 <artifactId>karaf-maven-plugin</artifactId>
140 <versionRange>[0,)</versionRange>
142 <goal>commands-generate-help</goal>
144 </pluginExecutionFilter>
150 <pluginExecutionFilter>
151 <groupId>org.fusesource.scalate</groupId>
152 <artifactId>maven-scalate-plugin</artifactId>
153 <versionRange>[0,)</versionRange>
157 </pluginExecutionFilter>
163 <pluginExecutionFilter>
164 <groupId>org.apache.servicemix.tooling</groupId>
165 <artifactId>depends-maven-plugin</artifactId>
166 <versionRange>[0,)</versionRange>
168 <goal>generate-depends-file</goal>
170 </pluginExecutionFilter>
176 </lifecycleMappingMetadata>
183 <groupId>org.apache.karaf.tooling</groupId>
184 <artifactId>karaf-maven-plugin</artifactId>
185 <version>${karaf.version}</version>
186 <extensions>true</extensions>
188 <!-- no startupFeatures -->
190 <feature>standard</feature>
192 <!-- no installedFeatures -->
196 <id>process-resources</id>
198 <goal>install-kars</goal>
200 <phase>process-resources</phase>
205 <goal>instance-create-archive</goal>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-checkstyle-plugin</artifactId>
213 <version>${checkstyle.version}</version>
215 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-dependency-plugin</artifactId>
221 <version>2.6</version>
228 <!-- here the phase you need -->
229 <phase>generate-resources</phase>
233 <groupId>org.opendaylight.controller</groupId>
234 <artifactId>karaf.branding</artifactId>
235 <version>${karaf.branding.version}</version>
236 <outputDirectory>target/assembly/lib</outputDirectory>
237 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-antrun-plugin</artifactId>
249 <phase>prepare-package</phase>
255 <copy todir="${project.build.directory}/assembly/bin" overwrite="true">
256 <fileset dir="${basedir}/src/main/resources/karaf/" includes="karaf,karaf.bat,instance,instance.bat"/>
266 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
267 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
269 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>