Merge "Removal of calls to COPSDebug.err() and replaced with calls to the logger."
[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         <version>${karaf.version}</version>\r
189         <extensions>true</extensions>\r
190         <configuration>\r
191           <bootFeatures>\r
192             <feature>standard</feature>\r
193             <feature>odl-mdsal-apidocs</feature>\r
194             <feature>odl-packetcable-provider</feature>\r
195             <!--\r
196               Optional TODO: Add entries here for the features you want in your local distro\r
197               Note: odl-restconf is a separate feature from odl-mdsal-broker.  If you want\r
198               restconf, you need to list it here explicitely.\r
199               Examples:\r
200               <feature>odl-openflowplugin-flow-services</feature>\r
201               <feature>odl-restconf</feature>\r
202             -->\r
203             <!-- Final TODO: Remove TODO Comments ;) -->\r
204           </bootFeatures>\r
205         </configuration>\r
206         <executions>\r
207           <execution>\r
208             <id>process-resources</id>\r
209             <goals>\r
210               <goal>install-kars</goal>\r
211             </goals>\r
212             <phase>process-resources</phase>\r
213           </execution>\r
214           <execution>\r
215             <id>package</id>\r
216             <goals>\r
217               <goal>instance-create-archive</goal>\r
218             </goals>\r
219           </execution>\r
220         </executions>\r
221       </plugin>\r
222       <plugin>\r
223         <groupId>org.apache.maven.plugins</groupId>\r
224         <artifactId>maven-dependency-plugin</artifactId>\r
225         <version>2.6</version>\r
226         <executions>\r
227           <execution>\r
228             <id>copy</id>\r
229             <goals>\r
230               <goal>copy</goal>\r
231             </goals>\r
232             <phase>generate-resources</phase>\r
233             <configuration>\r
234               <artifactItems>\r
235                 <artifactItem>\r
236                   <groupId>org.opendaylight.controller</groupId>\r
237                   <artifactId>karaf.branding</artifactId>\r
238                   <version>${karaf.branding.version}</version>\r
239                   <outputDirectory>target/assembly/lib</outputDirectory>\r
240                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>\r
241                 </artifactItem>\r
242               </artifactItems>\r
243             </configuration>\r
244           </execution>\r
245           <execution>\r
246             <id>unpack-karaf-resources</id>\r
247             <goals>\r
248               <goal>unpack-dependencies</goal>\r
249             </goals>\r
250             <phase>prepare-package</phase>\r
251             <configuration>\r
252              <outputDirectory>${project.build.directory}/assembly</outputDirectory>\r
253              <groupId>org.opendaylight.controller</groupId>\r
254              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>\r
255              <excludes>META-INF\/**</excludes>\r
256              <excludeTransitive>true</excludeTransitive>\r
257              <ignorePermissions>false</ignorePermissions>\r
258             </configuration>\r
259           </execution>\r
260         </executions>\r
261       </plugin>\r
262       <plugin>\r
263         <groupId>org.apache.maven.plugins</groupId>\r
264         <artifactId>maven-antrun-plugin</artifactId>\r
265         <executions>\r
266             <execution>\r
267                 <phase>prepare-package</phase>\r
268                 <goals>\r
269                     <goal>run</goal>\r
270                 </goals>\r
271                 <configuration>\r
272                   <tasks>\r
273                     <chmod perm="755">\r
274                         <fileset dir="${project.build.directory}/assembly/bin">\r
275                           <include name="karaf" />\r
276                           <include name="instance" />\r
277                           <include name="start" />\r
278                           <include name="stop" />\r
279                           <include name="status" />\r
280                           <include name="client" />\r
281                           <include name="shell" />\r
282                         </fileset>\r
283                     </chmod>\r
284                   </tasks>\r
285                 </configuration>\r
286             </execution>\r
287         </executions>\r
288       </plugin>\r
289     </plugins>\r
290   </build>\r
291   <scm>\r
292     <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>\r
293     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>\r
294     <tag>HEAD</tag>\r
295     <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>\r
296   </scm>\r
297 </project>\r