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.5.0-SNAPSHOT</version>
8 <relativePath>../../commons/opendaylight</relativePath>
10 <artifactId>opendaylight-karaf-empty</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>
25 <!-- scope is runtime so the feature repo is listed in the features
26 service config file, and features may be installed using the
27 karaf-maven-plugin configuration -->
29 <groupId>org.apache.karaf.features</groupId>
30 <artifactId>standard</artifactId>
31 <version>${karaf.version}</version>
32 <classifier>features</classifier>
34 <scope>runtime</scope>
39 <groupId>org.opendaylight.controller</groupId>
40 <artifactId>karaf.branding</artifactId>
41 <scope>compile</scope>
44 <!-- Resources needed -->
46 <groupId>org.opendaylight.controller</groupId>
47 <artifactId>opendaylight-karaf-resources</artifactId>
48 <version>${project.version}</version>
56 <groupId>org.eclipse.m2e</groupId>
57 <artifactId>lifecycle-mapping</artifactId>
58 <version>1.0.0</version>
60 <lifecycleMappingMetadata>
63 <pluginExecutionFilter>
64 <groupId>org.apache.felix</groupId>
65 <artifactId>maven-bundle-plugin</artifactId>
66 <versionRange>[0,)</versionRange>
68 <goal>cleanVersions</goal>
70 </pluginExecutionFilter>
76 <pluginExecutionFilter>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-dependency-plugin</artifactId>
79 <versionRange>[0,)</versionRange>
84 </pluginExecutionFilter>
90 <pluginExecutionFilter>
91 <groupId>org.apache.karaf.tooling</groupId>
92 <artifactId>karaf-maven-plugin</artifactId>
93 <versionRange>[0,)</versionRange>
95 <goal>commands-generate-help</goal>
97 </pluginExecutionFilter>
103 <pluginExecutionFilter>
104 <groupId>org.fusesource.scalate</groupId>
105 <artifactId>maven-scalate-plugin</artifactId>
106 <versionRange>[0,)</versionRange>
110 </pluginExecutionFilter>
116 <pluginExecutionFilter>
117 <groupId>org.apache.servicemix.tooling</groupId>
118 <artifactId>depends-maven-plugin</artifactId>
119 <versionRange>[0,)</versionRange>
121 <goal>generate-depends-file</goal>
123 </pluginExecutionFilter>
129 </lifecycleMappingMetadata>
136 <groupId>org.apache.karaf.tooling</groupId>
137 <artifactId>karaf-maven-plugin</artifactId>
138 <version>${karaf.version}</version>
139 <extensions>true</extensions>
142 <id>process-resources</id>
144 <goal>install-kars</goal>
146 <phase>process-resources</phase>
151 <goal>instance-create-archive</goal>
157 <groupId>org.apache.maven.plugins</groupId>
158 <artifactId>maven-checkstyle-plugin</artifactId>
160 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-dependency-plugin</artifactId>
166 <version>2.6</version>
173 <!-- here the phase you need -->
174 <phase>generate-resources</phase>
178 <groupId>org.opendaylight.controller</groupId>
179 <artifactId>karaf.branding</artifactId>
180 <version>${karaf.branding.version}</version>
181 <outputDirectory>target/assembly/lib</outputDirectory>
182 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
188 <id>unpack-karaf-resources</id>
190 <goal>unpack-dependencies</goal>
192 <phase>prepare-package</phase>
194 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
195 <groupId>org.opendaylight.controller</groupId>
196 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
197 <excludes>META-INF\/**</excludes>
198 <excludeTransitive>true</excludeTransitive>
199 <ignorePermissions>false</ignorePermissions>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-antrun-plugin</artifactId>
209 <phase>prepare-package</phase>
216 <fileset dir="${project.build.directory}/assembly/bin">
217 <include name="karaf"/>
218 <include name="instance"/>
229 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
230 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
232 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>