blob: 7a45a79115a48d03c768578fa93bb3158be1c2d2 [file] [log] [blame]
Felix Meschberger57efc292008-05-20 18:28:18 +00001<!--
Felix Meschberger9b3c4e02008-06-02 13:52:15 +00002 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
Felix Meschberger57efc292008-05-20 18:28:18 +000010 http://www.apache.org/licenses/LICENSE-2.0
Felix Meschberger9b3c4e02008-06-02 13:52:15 +000011
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
Felix Meschberger57efc292008-05-20 18:28:18 +000018-->
Felix Meschberger7dfbb4a2008-05-20 18:19:33 +000019<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/maven-v4_0_0.xsd">
Felix Meschbergerca29a962008-05-16 11:59:32 +000020
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
Felix Meschbergere60e0722008-05-16 13:09:35 +000023 <groupId>org.apache.felix</groupId>
Felix Meschbergere48e5db2009-05-11 14:25:53 +000024 <artifactId>felix-parent</artifactId>
Felix Meschberger9de2c592011-12-17 12:17:32 +000025 <version>2.1</version>
Felix Meschbergere60e0722008-05-16 13:09:35 +000026 <relativePath>../pom/pom.xml</relativePath>
Felix Meschbergerca29a962008-05-16 11:59:32 +000027 </parent>
28
Felix Meschbergere60e0722008-05-16 13:09:35 +000029 <artifactId>org.apache.felix.webconsole</artifactId>
Felix Meschbergerca29a962008-05-16 11:59:32 +000030 <packaging>bundle</packaging>
Valentin Valchevb16efcb2015-03-10 13:11:55 +000031 <version>4.2.9-SNAPSHOT</version>
Felix Meschbergerca29a962008-05-16 11:59:32 +000032
Felix Meschbergere60e0722008-05-16 13:09:35 +000033 <name>Apache Felix Web Management Console</name>
34 <description>
Felix Meschberger8ee5c432008-08-27 06:46:31 +000035 Web Based Management Console for OSGi Frameworks. See
Felix Meschberger61ac6072009-10-01 14:27:10 +000036 http://felix.apache.org/site/apache-felix-web-console.html for more
Felix Meschberger8ee5c432008-08-27 06:46:31 +000037 information on this bundle.
Felix Meschbergere60e0722008-05-16 13:09:35 +000038 </description>
Felix Meschbergered350d82012-12-02 18:41:33 +000039
40 <properties>
41 <org.json.version>20070829</org.json.version>
42 <org.json.version.osgi>0.0.0.${org.json.version}</org.json.version.osgi>
Carsten Ziegeler2f193642013-01-29 15:27:02 +000043 <webconsole.exports>
Carsten Ziegeler8baa8be2015-02-27 05:59:41 +000044 org.apache.felix.webconsole;version=3.2.0;provide:=true,
Carsten Ziegeler2f193642013-01-29 15:27:02 +000045 org.apache.felix.webconsole.bundleinfo;version=1.0.0;provide:=true,
46 org.apache.felix.webconsole.i18n;version=1.0.0;provide:=true
47 </webconsole.exports>
Felix Meschbergered350d82012-12-02 18:41:33 +000048 </properties>
Felix Meschbergerca29a962008-05-16 11:59:32 +000049
50 <scm>
Valentin Valchevb16efcb2015-03-10 13:11:55 +000051 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/webconsole</connection>
52 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/webconsole</developerConnection>
53 <url>http://svn.apache.org/viewvc/felix/trunk/webconsole</url>
Felix Meschbergerca29a962008-05-16 11:59:32 +000054 </scm>
55
56 <build>
Felix Meschbergerf85d5af2010-03-26 11:38:34 +000057 <resources>
58 <!-- default resources (may be removed when compat is removed) -->
59 <resource>
60 <directory>${basedir}/src/main/resources</directory>
61 </resource>
62 <resource>
63 <targetPath>META-INF</targetPath>
64 <directory>${basedir}</directory>
65 <includes>
Felix Meschbergerfabe0252010-08-12 07:40:34 +000066 <include>LICENSE</include>
67 <include>NOTICE</include>
68 <include>DEPENDENCIES</include>
Felix Meschbergera4f53642010-11-03 22:28:52 +000069 <include>changelog.txt</include>
Felix Meschbergerf85d5af2010-03-26 11:38:34 +000070 </includes>
71 </resource>
72 <!-- CSS and images for backwards compatibility -->
73 <resource>
74 <directory>${basedir}/src/main/compat</directory>
75 </resource>
76 </resources>
Felix Meschbergerca29a962008-05-16 11:59:32 +000077 <plugins>
Felix Meschberger17f7f792010-02-22 14:12:43 +000078 <!-- translate UTF-8 encoded properties files to ISO-8859-1 -->
79 <plugin>
80 <groupId>org.codehaus.mojo</groupId>
81 <artifactId>native2ascii-maven-plugin</artifactId>
Felix Meschbergerd7274052011-12-17 13:57:38 +000082 <version>1.0-beta-1</version>
Felix Meschberger17f7f792010-02-22 14:12:43 +000083 <executions>
84 <execution>
85 <goals>
86 <goal>native2ascii</goal>
87 </goals>
88 <configuration>
89 <encoding>UTF-8</encoding>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
Felix Meschbergera424dec2011-12-17 18:11:16 +000094 <!-- Make sure to not use non Java 1.4 API -->
95 <plugin>
96 <groupId>org.codehaus.mojo</groupId>
97 <artifactId>animal-sniffer-maven-plugin</artifactId>
98 <version>1.7</version>
99 <configuration>
100 <signature>
101 <groupId>org.codehaus.mojo.signature</groupId>
102 <artifactId>java14</artifactId>
103 <version>1.0</version>
104 </signature>
105 </configuration>
106 <executions>
107 <execution>
108 <phase>test</phase>
109 <goals>
110 <goal>check</goal>
111 </goals>
112 </execution>
113 </executions>
114 </plugin>
Felix Meschberger46d68152011-12-17 12:34:04 +0000115 <plugin>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000116 <groupId>org.apache.felix</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000117 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger46d68152011-12-17 12:34:04 +0000118 <version>2.3.6</version>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000119 <extensions>true</extensions>
120 <configuration>
121 <instructions>
Carsten Ziegeler5e32e602008-05-16 14:44:08 +0000122 <Bundle-SymbolicName>
Felix Meschbergerccdf4fa2011-03-24 16:22:32 +0000123 ${project.artifactId}
Carsten Ziegeler5e32e602008-05-16 14:44:08 +0000124 </Bundle-SymbolicName>
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000125 <Bundle-Vendor>
126 The Apache Software Foundation
127 </Bundle-Vendor>
128 <Bundle-DocURL>
Felix Meschbergera26ffb42008-12-22 11:39:17 +0000129 http://felix.apache.org/site/apache-felix-web-console.html
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000130 </Bundle-DocURL>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000131 <Bundle-Activator>
Felix Meschbergerab3c75c2008-05-16 13:14:45 +0000132 org.apache.felix.webconsole.internal.OsgiManagerActivator
Felix Meschbergerca29a962008-05-16 11:59:32 +0000133 </Bundle-Activator>
Felix Meschberger68c153a2012-01-06 15:03:17 +0000134 <Export-Package>
Carsten Ziegeler2f193642013-01-29 15:27:02 +0000135 ${webconsole.exports}
Felix Meschberger68c153a2012-01-06 15:03:17 +0000136 </Export-Package>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000137 <Import-Package>
Felix Meschbergered350d82012-12-02 18:41:33 +0000138 org.json.*;version=0,
Felix Meschberger6dcc01e2010-01-17 17:40:57 +0000139 javax.servlet.*;version=2.4,
Valentin Valchevcc9e47d2012-07-12 06:56:09 +0000140 org.apache.commons.io; version="[1.4,3)",
Felix Meschberger6dcc01e2010-01-17 17:40:57 +0000141 *
Felix Meschbergerca29a962008-05-16 11:59:32 +0000142 </Import-Package>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000143 <DynamicImport-Package>
Felix Meschbergerb58af942011-12-19 12:54:03 +0000144 org.apache.felix.bundlerepository;version="[2.0,3)",
145 org.osgi.service.obr;version="[1.0,2)",
146 org.osgi.service.cm;version="[1.2,2)",
147 org.osgi.service.condpermadmin;version="[1.0,2)",
148 org.osgi.service.log;version="[1.3,2)",
149 org.osgi.service.metatype;version="[1.1,2)",
150 org.osgi.service.permissionadmin;version="[1.2,2)",
151 org.osgi.service.prefs;version="[1.1,2)",
152 org.osgi.service.wireadmin;version="[1.0,2)"
Felix Meschberger35ddac22010-03-22 15:31:13 +0000153 </DynamicImport-Package>
Felix Meschbergerdcf0f3d2011-12-17 11:16:13 +0000154 <Include-Resource>
Felix Meschberger921a80a2012-04-05 14:11:10 +0000155 {maven-resources},OSGI-INF=target/classes/OSGI-INF
Felix Meschbergerdcf0f3d2011-12-17 11:16:13 +0000156 </Include-Resource>
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000157 <Embed-Dependency>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000158 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
Felix Meschbergerbee7fec2012-12-25 19:56:31 +0000159 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000160 </Embed-Dependency>
Felix Meschbergerc17f2d12010-01-12 08:09:52 +0000161 <_removeheaders>
162 Embed-Dependency,Private-Package,Include-Resource
163 </_removeheaders>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000164 </instructions>
165 </configuration>
166 </plugin>
Felix Meschberger9de2c592011-12-17 12:17:32 +0000167 <plugin>
168 <artifactId>maven-javadoc-plugin</artifactId>
169 <configuration>
170 <excludePackageNames>
171 *.internal
172 </excludePackageNames>
173 </configuration>
174 </plugin>
175 <plugin>
176 <groupId>org.apache.rat</groupId>
177 <artifactId>apache-rat-plugin</artifactId>
178 <configuration>
179 <includes>
180 <include>src/**</include>
181 </includes>
182 <excludes>
183 <exclude>src/main/appended-resources/**</exclude>
Felix Meschbergerefc5de52012-12-02 18:44:51 +0000184 <exclude>src/main/resources/res/lib/jquery-1.8.3.js</exclude>
185 <exclude>src/main/resources/res/lib/jquery-ui-1.9.2.js</exclude>
Felix Meschberger9de2c592011-12-17 12:17:32 +0000186 <exclude>src/main/resources/res/lib/jquery-ui-i18n-1.7.2.js</exclude>
Carsten Ziegelerb0efb6d2014-12-29 14:24:03 +0000187 <exclude>src/main/resources/res/lib/jquery.autosize.min.js</exclude>
Felix Meschberger9de2c592011-12-17 12:17:32 +0000188 <exclude>src/main/resources/res/lib/jquery.cookies-2.2.0.js</exclude>
189 <exclude>src/main/resources/res/lib/jquery.multifile-1.4.6.js</exclude>
190 <exclude>src/main/resources/res/lib/jquery.tablesorter-2.0.3.js</exclude>
191 <exclude>src/main/resources/res/lib/reset-min.css</exclude>
192 <exclude>src/main/resources/res/lib/themes/**</exclude>
193 <exclude>src/main/resources/res/ui/ui.tabs.paging.js</exclude>
194 <exclude>src/main/resources/templates/*.html</exclude>
Felix Meschbergerefc5de52012-12-02 18:44:51 +0000195 <exclude>src/main/debug-resources/res/lib/**</exclude>
Felix Meschberger9de2c592011-12-17 12:17:32 +0000196 </excludes>
197 </configuration>
198 </plugin>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000199 </plugins>
200 </build>
201
Felix Meschbergered350d82012-12-02 18:41:33 +0000202 <profiles>
203 <!--
204 The "all-in-one-bundle" profile builds a bundle including certain
205 3rd party libraries and classes, namely: Commons IO, Commons
206 FileUpload, JSON, and the OSGi ServiceTracker.
207 The "all-in-one-bundle" can be used in deployments where these
208 dependencies need not be deployed separately.
209 -->
210 <profile>
211 <id>all-in-one-bundle</id>
212 <activation><activeByDefault>true</activeByDefault></activation>
213 <build>
214 <plugins>
215 <plugin>
216 <groupId>org.apache.felix</groupId>
217 <artifactId>maven-bundle-plugin</artifactId>
218 <executions>
219 <execution>
220 <id>all-in-one-bundle</id>
221 <goals>
222 <goal>bundle</goal>
223 </goals>
224 <configuration>
225 <classifier>all</classifier>
226 <instructions>
227 <Bundle-Name>
228 ${project.name} (All In One)
229 </Bundle-Name>
Felix Meschberger4219ee02012-12-31 07:56:40 +0000230 <Bundle-Version>
231 ${project.version}-all
232 </Bundle-Version>
Carsten Ziegelerbbf96682013-01-28 21:33:31 +0000233 <Export-Package>
Felix Meschbergered350d82012-12-02 18:41:33 +0000234 org.apache.commons.fileupload,
235 org.apache.commons.fileupload.disk,
236 org.apache.commons.fileupload.servlet,
237 org.apache.commons.fileupload.util,
238 org.apache.commons.io,
239 org.apache.commons.io.filefilter,
240 org.apache.commons.io.output,
Carsten Ziegelerbbf96682013-01-28 21:33:31 +0000241 org.json;version=${org.json.version.osgi},
Felix Meschberger64383512013-05-21 16:32:52 +0000242 org.apache.felix.inventory;version=1.0.0,
Carsten Ziegeler2f193642013-01-29 15:27:02 +0000243 ${webconsole.exports}
Felix Meschbergered350d82012-12-02 18:41:33 +0000244 </Export-Package>
245 <Embed-Dependency>
246 <!-- Import/Export-Package parsing -->
247 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
248 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
249
250 <!-- ServiceTracker -->
251 org.osgi.compendium;
252 inline=org/osgi/util/tracker/*,
Felix Meschberger64383512013-05-21 16:32:52 +0000253 org.apache.felix.inventory;inline=true
Felix Meschbergered350d82012-12-02 18:41:33 +0000254 </Embed-Dependency>
255
256 <_removeheaders>
257 Embed-Dependency,Private-Package,Include-Resource
258 </_removeheaders>
259 </instructions>
260 </configuration>
261 </execution>
262 </executions>
263 </plugin>
264 <!--
265 <plugin>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-remote-resources-plugin</artifactId>
268 <executions>
269 <execution>
270 <goals>
271 <goal>process</goal>
272 </goals>
273 <configuration>
274 <resourceBundles>
275 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
276 </resourceBundles>
277 </configuration>
278 </execution>
279 </executions>
280 </plugin>
281 -->
282 </plugins>
283 </build>
Felix Meschberger64383512013-05-21 16:32:52 +0000284 <dependencies>
285 <dependency>
286 <groupId>org.apache.felix</groupId>
287 <artifactId>org.apache.felix.inventory</artifactId>
Felix Meschberger93f54c12013-05-27 12:57:36 +0000288 <version>1.0.0</version>
Felix Meschberger64383512013-05-21 16:32:52 +0000289 <scope>provided</scope>
290 </dependency>
291 </dependencies>
Felix Meschbergered350d82012-12-02 18:41:33 +0000292 </profile>
Felix Meschbergerefc5de52012-12-02 18:44:51 +0000293
294 <!--
295 The "debug" profile builds a bundle using the non-minified
296 JQuery libraries and CSS files instead to make debugging
297 JQuery related issues easier.
298 -->
299 <profile>
300 <id>debug-bundle</id>
301 <activation><activeByDefault>true</activeByDefault></activation>
302 <build>
303 <plugins>
304 <plugin>
305 <groupId>org.apache.felix</groupId>
306 <artifactId>maven-bundle-plugin</artifactId>
307 <executions>
308 <execution>
309 <id>debug-bundle</id>
310 <goals>
311 <goal>bundle</goal>
312 </goals>
313 <configuration>
314 <classifier>debug</classifier>
315 <instructions>
316 <Bundle-Name>
317 ${project.name} (JQuery Debug)
318 </Bundle-Name>
Felix Meschberger4219ee02012-12-31 07:56:40 +0000319 <Bundle-Version>
320 ${project.version}-debug
321 </Bundle-Version>
Felix Meschbergerefc5de52012-12-02 18:44:51 +0000322 <Include-Resource>
323 {maven-resources},
324 res=src/main/debug-resources/res
325 </Include-Resource>
326 </instructions>
327 </configuration>
328 </execution>
329 </executions>
330 </plugin>
331 <!--
332 <plugin>
333 <groupId>org.apache.maven.plugins</groupId>
334 <artifactId>maven-remote-resources-plugin</artifactId>
335 <executions>
336 <execution>
337 <goals>
338 <goal>process</goal>
339 </goals>
340 <configuration>
341 <resourceBundles>
342 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
343 </resourceBundles>
344 </configuration>
345 </execution>
346 </executions>
347 </plugin>
348 -->
349 </plugins>
350 </build>
351 </profile>
Felix Meschbergered350d82012-12-02 18:41:33 +0000352 </profiles>
353
Felix Meschbergerca29a962008-05-16 11:59:32 +0000354 <dependencies>
355 <dependency>
356 <groupId>javax.servlet</groupId>
357 <artifactId>servlet-api</artifactId>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000358 <version>2.4</version>
359 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000360 </dependency>
361
Felix Meschbergerca29a962008-05-16 11:59:32 +0000362 <dependency>
363 <groupId>commons-fileupload</groupId>
364 <artifactId>commons-fileupload</artifactId>
Felix Meschberger7587b422011-12-17 13:00:58 +0000365 <version>1.2.1</version>
Carsten Ziegeler32196dc2009-02-05 18:35:13 +0000366 <scope>provided</scope>
Carsten Ziegeler32196dc2009-02-05 18:35:13 +0000367 </dependency>
368
369 <dependency>
370 <groupId>commons-io</groupId>
371 <artifactId>commons-io</artifactId>
372 <version>1.4</version>
373 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000374 </dependency>
375
376 <dependency>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000377 <groupId>org.osgi</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000378 <artifactId>org.osgi.core</artifactId>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000379 <version>4.1.0</version>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000380 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000381 </dependency>
382 <dependency>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000383 <groupId>org.osgi</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000384 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000385 <version>4.1.0</version>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000386 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000387 </dependency>
388
389 <dependency>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000390 <groupId>org.json</groupId>
391 <artifactId>json</artifactId>
Felix Meschbergered350d82012-12-02 18:41:33 +0000392 <version>${org.json.version}</version>
Felix Meschbergerc5c55512010-08-03 09:45:33 +0000393 <scope>provided</scope>
394 </dependency>
Felix Meschbergered350d82012-12-02 18:41:33 +0000395
Felix Meschbergerc5c55512010-08-03 09:45:33 +0000396 <dependency>
397 <groupId>org.apache.felix</groupId>
398 <artifactId>org.apache.felix.shell</artifactId>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000399 <version>1.0.0</version>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000400 <scope>provided</scope>
401 </dependency>
402
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000403 <!--
404 Required for a simple VersionRange class, the class from
405 the utils bundle is overkill and requires JDK 1.4 or better
406 -->
407 <dependency>
408 <groupId>org.apache.felix</groupId>
409 <artifactId>org.apache.felix.framework</artifactId>
410 <version>2.0.2</version>
411 <scope>provided</scope>
412 <optional>true</optional>
413 </dependency>
414
Felix Meschberger18330ac2009-06-29 10:21:00 +0000415 <!-- Parsing Import/Export-Package headers -->
Felix Meschbergerca29a962008-05-16 11:59:32 +0000416 <dependency>
417 <groupId>org.apache.felix</groupId>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000418 <artifactId>org.apache.felix.utils</artifactId>
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000419 <version>1.0.0</version>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000420 <scope>provided</scope>
Felix Meschberger6c39c6c2008-05-21 21:25:49 +0000421 <optional>true</optional>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000422 </dependency>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000423
424 <!-- OSGi and Apache Felix OBR API -->
425 <dependency>
426 <groupId>org.apache.felix</groupId>
427 <artifactId>org.osgi.service.obr</artifactId>
428 <version>1.0.2</version>
429 <scope>provided</scope>
430 </dependency>
431 <dependency>
432 <groupId>org.apache.felix</groupId>
433 <artifactId>org.apache.felix.bundlerepository</artifactId>
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000434 <version>1.6.0</version>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000435 <scope>provided</scope>
436 <optional>true</optional>
437 </dependency>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000438 </dependencies>
Felix Meschberger51a72802008-08-27 19:52:34 +0000439</project>