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