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>../../opendaylight/commons/opendaylight</relativePath>
10 <artifactId>opendaylight-karaf-empty</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>
22 <!-- scope is runtime so the feature repo is listed in the features
23 service config file, and features may be installed using the
24 karaf-maven-plugin configuration -->
26 <groupId>org.apache.karaf.features</groupId>
27 <artifactId>standard</artifactId>
28 <version>${karaf.version}</version>
29 <classifier>features</classifier>
31 <scope>runtime</scope>
36 <groupId>org.opendaylight.controller</groupId>
37 <artifactId>karaf.branding</artifactId>
38 <scope>compile</scope>
41 <!-- Resources needed -->
43 <groupId>org.opendaylight.controller</groupId>
44 <artifactId>opendaylight-karaf-resources</artifactId>
45 <version>${project.version}</version>
53 <groupId>org.eclipse.m2e</groupId>
54 <artifactId>lifecycle-mapping</artifactId>
55 <version>1.0.0</version>
57 <lifecycleMappingMetadata>
60 <pluginExecutionFilter>
61 <groupId>org.apache.felix</groupId>
62 <artifactId>maven-bundle-plugin</artifactId>
63 <versionRange>[0,)</versionRange>
65 <goal>cleanVersions</goal>
67 </pluginExecutionFilter>
73 <pluginExecutionFilter>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-dependency-plugin</artifactId>
76 <versionRange>[0,)</versionRange>
81 </pluginExecutionFilter>
87 <pluginExecutionFilter>
88 <groupId>org.apache.karaf.tooling</groupId>
89 <artifactId>karaf-maven-plugin</artifactId>
90 <versionRange>[0,)</versionRange>
92 <goal>commands-generate-help</goal>
94 </pluginExecutionFilter>
100 <pluginExecutionFilter>
101 <groupId>org.fusesource.scalate</groupId>
102 <artifactId>maven-scalate-plugin</artifactId>
103 <versionRange>[0,)</versionRange>
107 </pluginExecutionFilter>
113 <pluginExecutionFilter>
114 <groupId>org.apache.servicemix.tooling</groupId>
115 <artifactId>depends-maven-plugin</artifactId>
116 <versionRange>[0,)</versionRange>
118 <goal>generate-depends-file</goal>
120 </pluginExecutionFilter>
126 </lifecycleMappingMetadata>
133 <groupId>org.apache.karaf.tooling</groupId>
134 <artifactId>karaf-maven-plugin</artifactId>
135 <version>${karaf.version}</version>
136 <extensions>true</extensions>
139 <id>process-resources</id>
141 <goal>install-kars</goal>
143 <phase>process-resources</phase>
148 <goal>instance-create-archive</goal>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-checkstyle-plugin</artifactId>
157 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
161 <groupId>org.apache.maven.plugins</groupId>
162 <artifactId>maven-dependency-plugin</artifactId>
163 <version>2.6</version>
170 <!-- here the phase you need -->
171 <phase>generate-resources</phase>
175 <groupId>org.opendaylight.controller</groupId>
176 <artifactId>karaf.branding</artifactId>
177 <version>${karaf.branding.version}</version>
178 <outputDirectory>target/assembly/lib</outputDirectory>
179 <destFileName>karaf.branding-${branding.version}.jar</destFileName>
185 <id>unpack-karaf-resources</id>
187 <goal>unpack-dependencies</goal>
189 <phase>prepare-package</phase>
191 <outputDirectory>${project.build.directory}/assembly</outputDirectory>
192 <groupId>org.opendaylight.controller</groupId>
193 <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
194 <excludes>META-INF\/**</excludes>
195 <excludeTransitive>true</excludeTransitive>
196 <ignorePermissions>false</ignorePermissions>
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-antrun-plugin</artifactId>
206 <phase>prepare-package</phase>
213 <fileset dir="${project.build.directory}/assembly/bin">
214 <include name="karaf"/>
215 <include name="instance"/>
226 <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
227 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
229 <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>