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