Now Karaf module capable of starting the new bundles contained in the new feature...
[packetcable.git] / packetcable-policy-karaf / pom.xml
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>
4   <parent>
5     <artifactId>packetcable</artifactId>
6     <groupId>org.opendaylight.packetcable</groupId>
7     <version>1.2.0-SNAPSHOT</version>
8   </parent>
9   <artifactId>packetcable-policy-karaf</artifactId>
10   <packaging>pom</packaging>
11   <prerequisites>
12     <maven>3.0</maven>
13   </prerequisites>
14   <properties>
15     <!-- Optional TODO: Move these properties to your parent pom and possibly
16             DependencyManagement section of your parent pom -->
17     <branding.version>1.1.0-SNAPSHOT</branding.version>
18     <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
19   </properties>
20
21   <dependencies>
22     <!-- Basic Karaf dependencies -->
23     <dependency>
24       <groupId>org.apache.karaf.features</groupId>
25       <artifactId>framework</artifactId>
26       <version>${karaf.version}</version>
27       <type>kar</type>
28     </dependency>
29     <dependency>
30       <groupId>org.apache.karaf.features</groupId>
31       <artifactId>standard</artifactId>
32       <version>${karaf.version}</version>
33       <classifier>features</classifier>
34       <type>xml</type>
35       <scope>runtime</scope>
36     </dependency>
37
38     <!-- ODL Branding -->
39     <dependency>
40       <groupId>org.opendaylight.controller</groupId>
41       <artifactId>karaf.branding</artifactId>
42       <version>${branding.version}</version>
43       <scope>compile</scope>
44     </dependency>
45
46     <!-- ODL Resources needed for karaf -->
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>opendaylight-karaf-resources</artifactId>
50       <version>${karaf.resources.version}</version>
51     </dependency>
52
53     <!-- Project local feautures -->
54     <!--
55       Necessary TODO put your features here.
56
57       Note: they will need to be <type>xml</xml>
58       and <classifier>features</classifier>.
59
60       Note: they must be <scope>runtime</scope>
61
62       Note: usually you would only need to depend
63       on your own feature file here for your local distro,
64       and possible the features-mdsal for odl-restconf
65       (although, strange situations do exist :) )
66
67       Example:
68       <dependency>
69         <groupId>org.opendaylight.controller</groupId>
70         <artifactId>features-mdsal</artifactId>
71         <classifier>features</classifier>
72         <type>xml</type>
73         <scope>runtime</scope>
74       </dependency>
75       <dependency>
76         <groupId>org.opendaylight.openflowplugin</groupId>
77         <artifactId>features-openflowplugin</artifactId>
78         <version>0.1.0-SNAPSHOT</version>
79         <classifier>features</classifier>
80         <type>xml</type>
81         <scope>runtime</scope>
82       </dependency>
83     -->
84       <dependency>
85           <groupId>org.opendaylight.controller</groupId>
86           <artifactId>features-mdsal</artifactId>
87           <classifier>features</classifier>
88           <version>${project.version}</version>
89           <type>xml</type>
90           <scope>runtime</scope>
91       </dependency>
92 <!--
93       <dependency>
94         <groupId>org.opendaylight.l2switch</groupId>
95         <artifactId>features-l2switch</artifactId>
96         <classifier>features</classifier>
97         <version>0.2.0-SNAPSHOT</version>
98         <type>xml</type>
99         <scope>runtime</scope>
100       </dependency>
101 -->
102       <dependency>
103           <groupId>org.opendaylight.controller</groupId>
104           <artifactId>features-restconf</artifactId>
105           <classifier>features</classifier>
106           <version>1.2.0-SNAPSHOT</version>
107           <type>xml</type>
108           <scope>runtime</scope>
109       </dependency>
110       <dependency>
111           <groupId>org.opendaylight.dlux</groupId>
112           <artifactId>features-dlux</artifactId>
113           <classifier>features</classifier>
114           <version>0.2.0-SNAPSHOT</version>
115           <type>xml</type>
116           <scope>runtime</scope>
117       </dependency>
118       <dependency>
119         <groupId>org.opendaylight.packetcable</groupId>
120         <artifactId>features-packetcable-policy</artifactId>
121         <classifier>features</classifier>
122         <version>${project.version}</version>
123         <type>xml</type>
124         <scope>runtime</scope>
125       </dependency>
126   </dependencies>
127
128   <build>
129     <pluginManagement>
130       <plugins>
131         <plugin>
132           <groupId>org.eclipse.m2e</groupId>
133           <artifactId>lifecycle-mapping</artifactId>
134           <version>1.0.0</version>
135           <configuration>
136             <lifecycleMappingMetadata>
137               <pluginExecutions>
138                 <pluginExecution>
139                   <pluginExecutionFilter>
140                     <groupId>org.apache.felix</groupId>
141                     <artifactId>maven-bundle-plugin</artifactId>
142                     <versionRange>[0,)</versionRange>
143                     <goals>
144                       <goal>cleanVersions</goal>
145                     </goals>
146                   </pluginExecutionFilter>
147                   <action>
148                     <ignore></ignore>
149                   </action>
150                 </pluginExecution>
151                 <pluginExecution>
152                   <pluginExecutionFilter>
153                     <groupId>org.apache.maven.plugins</groupId>
154                     <artifactId>maven-dependency-plugin</artifactId>
155                     <versionRange>[0,)</versionRange>
156                     <goals>
157                       <goal>copy</goal>
158                       <goal>unpack</goal>
159                     </goals>
160                   </pluginExecutionFilter>
161                   <action>
162                     <ignore></ignore>
163                   </action>
164                 </pluginExecution>
165                 <pluginExecution>
166                   <pluginExecutionFilter>
167                     <groupId>org.apache.karaf.tooling</groupId>
168                     <artifactId>karaf-maven-plugin</artifactId>
169                     <versionRange>[0,)</versionRange>
170                     <goals>
171                       <goal>commands-generate-help</goal>
172                     </goals>
173                   </pluginExecutionFilter>
174                   <action>
175                     <ignore></ignore>
176                   </action>
177                 </pluginExecution>
178                 <pluginExecution>
179                   <pluginExecutionFilter>
180                     <groupId>org.fusesource.scalate</groupId>
181                     <artifactId>maven-scalate-plugin</artifactId>
182                     <versionRange>[0,)</versionRange>
183                     <goals>
184                       <goal>sitegen</goal>
185                     </goals>
186                   </pluginExecutionFilter>
187                   <action>
188                     <ignore></ignore>
189                   </action>
190                 </pluginExecution>
191                 <pluginExecution>
192                   <pluginExecutionFilter>
193                     <groupId>org.apache.servicemix.tooling</groupId>
194                     <artifactId>depends-maven-plugin</artifactId>
195                     <versionRange>[0,)</versionRange>
196                     <goals>
197                       <goal>generate-depends-file</goal>
198                     </goals>
199                   </pluginExecutionFilter>
200                   <action>
201                     <ignore></ignore>
202                   </action>
203                 </pluginExecution>
204               </pluginExecutions>
205             </lifecycleMappingMetadata>
206           </configuration>
207         </plugin>
208       </plugins>
209     </pluginManagement>
210     <plugins>
211       <plugin>
212         <groupId>org.apache.karaf.tooling</groupId>
213         <artifactId>karaf-maven-plugin</artifactId>
214         <version>${karaf.version}</version>
215         <extensions>true</extensions>
216         <configuration>
217           <bootFeatures>
218             <feature>standard</feature>
219             <!-- Uncomment the following lines to ensure restconf & dlux are automatically installed -->
220             <!--<feature>odl-restconf</feature>-->
221             <!--<feature>odl-dlux-core</feature>-->
222             <feature>odl-mdsal-apidocs</feature>
223             <feature>odl-packetcable-policy-server-all</feature>
224             <!--
225               Optional TODO: Add entries here for the features you want in your local distro
226               Note: odl-restconf is a separate feature from odl-mdsal-broker.  If you want
227               restconf, you need to list it here explicitely.
228               Examples:
229               <feature>odl-openflowplugin-flow-services</feature>
230               <feature>odl-restconf</feature>
231             -->
232             <!-- Final TODO: Remove TODO Comments ;) -->
233           </bootFeatures>
234         </configuration>
235         <executions>
236           <execution>
237             <id>process-resources</id>
238             <goals>
239               <goal>install-kars</goal>
240             </goals>
241             <phase>process-resources</phase>
242           </execution>
243           <execution>
244             <id>package</id>
245             <goals>
246               <goal>instance-create-archive</goal>
247             </goals>
248           </execution>
249         </executions>
250       </plugin>
251       <plugin>
252         <groupId>org.apache.maven.plugins</groupId>
253         <artifactId>maven-dependency-plugin</artifactId>
254         <version>2.6</version>
255         <executions>
256           <execution>
257             <id>copy</id>
258             <goals>
259               <goal>copy</goal>
260             </goals>
261             <phase>generate-resources</phase>
262             <configuration>
263               <artifactItems>
264                 <artifactItem>
265                   <groupId>org.opendaylight.controller</groupId>
266                   <artifactId>karaf.branding</artifactId>
267                   <version>${karaf.branding.version}</version>
268                   <outputDirectory>target/assembly/lib</outputDirectory>
269                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
270                 </artifactItem>
271               </artifactItems>
272             </configuration>
273           </execution>
274           <execution>
275             <id>unpack-karaf-resources</id>
276             <goals>
277               <goal>unpack-dependencies</goal>
278             </goals>
279             <phase>prepare-package</phase>
280             <configuration>
281              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
282              <groupId>org.opendaylight.controller</groupId>
283              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
284              <excludes>META-INF\/**</excludes>
285              <excludeTransitive>true</excludeTransitive>
286              <ignorePermissions>false</ignorePermissions>
287             </configuration>
288           </execution>
289         </executions>
290       </plugin>
291       <plugin>
292         <groupId>org.apache.maven.plugins</groupId>
293         <artifactId>maven-antrun-plugin</artifactId>
294         <executions>
295             <execution>
296                 <phase>prepare-package</phase>
297                 <goals>
298                     <goal>run</goal>
299                 </goals>
300                 <configuration>
301                   <tasks>
302                     <chmod perm="755">
303                         <fileset dir="${project.build.directory}/assembly/bin">
304                           <include name="karaf" />
305                           <include name="instance" />
306                           <include name="start" />
307                           <include name="stop" />
308                           <include name="status" />
309                           <include name="client" />
310                           <include name="shell" />
311                         </fileset>
312                     </chmod>
313                   </tasks>
314                 </configuration>
315             </execution>
316         </executions>
317       </plugin>
318     </plugins>
319   </build>
320   <scm>
321     <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
322     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
323     <tag>HEAD</tag>
324     <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
325   </scm>
326 </project>