blob: 7d492cd74f18940ca6822b4d5a4766d6be1a9a02 [file] [log] [blame]
Felix Meschberger1f58a182008-05-20 18:28:18 +00001<!--
Felix Meschberger4c664132008-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 Meschberger1f58a182008-05-20 18:28:18 +000010 http://www.apache.org/licenses/LICENSE-2.0
Felix Meschberger4c664132008-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 Meschberger1f58a182008-05-20 18:28:18 +000018-->
Felix Meschbergerf73d2132008-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 Meschbergerbb30b0c2008-05-16 11:59:32 +000020
21 <modelVersion>4.0.0</modelVersion>
22 <parent>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +000023 <groupId>org.apache.felix</groupId>
Felix Meschbergereea99512009-05-11 14:25:53 +000024 <artifactId>felix-parent</artifactId>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +000025 <version>2.1</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +000026 <relativePath>../pom/pom.xml</relativePath>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000027 </parent>
28
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +000029 <artifactId>org.apache.felix.webconsole</artifactId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000030 <packaging>bundle</packaging>
Felix Meschberger930e3c62012-06-01 13:10:33 +000031 <version>4.0.1-SNAPSHOT</version>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000032
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +000033 <name>Apache Felix Web Management Console</name>
34 <description>
Felix Meschberger584090b2008-08-27 06:46:31 +000035 Web Based Management Console for OSGi Frameworks. See
Felix Meschberger0b0dc8c2009-10-01 14:27:10 +000036 http://felix.apache.org/site/apache-felix-web-console.html for more
Felix Meschberger584090b2008-08-27 06:46:31 +000037 information on this bundle.
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +000038 </description>
Felix Meschberger271297a2012-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>
43 </properties>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000044
45 <scm>
Felix Meschberger930e3c62012-06-01 13:10:33 +000046 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/webconsole</connection>
47 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/webconsole</developerConnection>
48 <url>http://svn.apache.org/viewvc/felix/trunk/webconsole</url>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000049 </scm>
50
51 <build>
Felix Meschbergeraec198b2010-03-26 11:38:34 +000052 <resources>
53 <!-- default resources (may be removed when compat is removed) -->
54 <resource>
55 <directory>${basedir}/src/main/resources</directory>
56 </resource>
57 <resource>
58 <targetPath>META-INF</targetPath>
59 <directory>${basedir}</directory>
60 <includes>
Felix Meschbergerd68c4b42010-08-12 07:40:34 +000061 <include>LICENSE</include>
62 <include>NOTICE</include>
63 <include>DEPENDENCIES</include>
Felix Meschberger967e8bf2010-11-03 22:28:52 +000064 <include>changelog.txt</include>
Felix Meschbergeraec198b2010-03-26 11:38:34 +000065 </includes>
66 </resource>
67 <!-- CSS and images for backwards compatibility -->
68 <resource>
69 <directory>${basedir}/src/main/compat</directory>
70 </resource>
71 </resources>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +000072 <plugins>
Felix Meschbergered15be52010-02-22 14:12:43 +000073 <!-- translate UTF-8 encoded properties files to ISO-8859-1 -->
74 <plugin>
75 <groupId>org.codehaus.mojo</groupId>
76 <artifactId>native2ascii-maven-plugin</artifactId>
Felix Meschbergerde5fab62011-12-17 13:57:38 +000077 <version>1.0-beta-1</version>
Felix Meschbergered15be52010-02-22 14:12:43 +000078 <executions>
79 <execution>
80 <goals>
81 <goal>native2ascii</goal>
82 </goals>
83 <configuration>
84 <encoding>UTF-8</encoding>
85 </configuration>
86 </execution>
87 </executions>
88 </plugin>
Felix Meschberger6d3e53f2011-12-17 18:11:16 +000089 <!-- Make sure to not use non Java 1.4 API -->
90 <plugin>
91 <groupId>org.codehaus.mojo</groupId>
92 <artifactId>animal-sniffer-maven-plugin</artifactId>
93 <version>1.7</version>
94 <configuration>
95 <signature>
96 <groupId>org.codehaus.mojo.signature</groupId>
97 <artifactId>java14</artifactId>
98 <version>1.0</version>
99 </signature>
100 </configuration>
101 <executions>
102 <execution>
103 <phase>test</phase>
104 <goals>
105 <goal>check</goal>
106 </goals>
107 </execution>
108 </executions>
109 </plugin>
Felix Meschberger7933fca2011-12-17 12:34:04 +0000110 <plugin>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000111 <groupId>org.apache.felix</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000112 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger7933fca2011-12-17 12:34:04 +0000113 <version>2.3.6</version>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000114 <extensions>true</extensions>
115 <configuration>
116 <instructions>
Carsten Ziegeler540e3bc2008-05-16 14:44:08 +0000117 <Bundle-SymbolicName>
Felix Meschberger6fbedfa2011-03-24 16:22:32 +0000118 ${project.artifactId}
Carsten Ziegeler540e3bc2008-05-16 14:44:08 +0000119 </Bundle-SymbolicName>
Felix Meschberger4c664132008-06-02 13:52:15 +0000120 <Bundle-Vendor>
121 The Apache Software Foundation
122 </Bundle-Vendor>
123 <Bundle-DocURL>
Felix Meschbergera6cdce22008-12-22 11:39:17 +0000124 http://felix.apache.org/site/apache-felix-web-console.html
Felix Meschberger4c664132008-06-02 13:52:15 +0000125 </Bundle-DocURL>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000126 <Bundle-Activator>
Felix Meschbergere024f262008-05-16 13:14:45 +0000127 org.apache.felix.webconsole.internal.OsgiManagerActivator
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000128 </Bundle-Activator>
Felix Meschberger8eac10c2012-01-06 15:03:17 +0000129 <Export-Package>
Felix Meschberger7db299e2012-12-02 18:46:49 +0000130 org.apache.felix.webconsole;version=3.1.3;provide:=true,
Valentin Pavlov Valcheve8db90c2012-08-15 12:48:53 +0000131 org.apache.felix.webconsole.bundleinfo;version=1.0.0;provide:=true,
132 org.apache.felix.webconsole.i18n;version=1.0.0;provide:=true
Felix Meschberger8eac10c2012-01-06 15:03:17 +0000133 </Export-Package>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000134 <Import-Package>
Felix Meschberger271297a2012-12-02 18:41:33 +0000135 org.json.*;version=0,
136 org.osgi.service.metatype;resolution:=optional,
Felix Meschberger5fc70792010-01-17 17:40:57 +0000137 javax.servlet.*;version=2.4,
Valentin Pavlov Valchev548548c2012-07-12 06:56:09 +0000138 org.apache.commons.io; version="[1.4,3)",
Felix Meschberger5fc70792010-01-17 17:40:57 +0000139 *
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000140 </Import-Package>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000141 <DynamicImport-Package>
Felix Meschbergerc73f5772011-12-19 12:54:03 +0000142 org.apache.felix.bundlerepository;version="[2.0,3)",
143 org.osgi.service.obr;version="[1.0,2)",
144 org.osgi.service.cm;version="[1.2,2)",
145 org.osgi.service.condpermadmin;version="[1.0,2)",
146 org.osgi.service.log;version="[1.3,2)",
147 org.osgi.service.metatype;version="[1.1,2)",
148 org.osgi.service.permissionadmin;version="[1.2,2)",
149 org.osgi.service.prefs;version="[1.1,2)",
150 org.osgi.service.wireadmin;version="[1.0,2)"
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000151 </DynamicImport-Package>
Felix Meschbergerc37926b2011-12-17 11:16:13 +0000152 <Include-Resource>
Felix Meschbergerae42b9c2012-04-05 14:11:10 +0000153 {maven-resources},OSGI-INF=target/classes/OSGI-INF
Felix Meschbergerc37926b2011-12-17 11:16:13 +0000154 </Include-Resource>
Felix Meschberger4c664132008-06-02 13:52:15 +0000155 <Embed-Dependency>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000156 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
Felix Meschbergerc73f5772011-12-19 12:54:03 +0000157 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
158 org.osgi.compendium;inline=org/osgi/service/metatype/**
Felix Meschberger4c664132008-06-02 13:52:15 +0000159 </Embed-Dependency>
Felix Meschberger90777f42010-01-12 08:09:52 +0000160 <_removeheaders>
161 Embed-Dependency,Private-Package,Include-Resource
162 </_removeheaders>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000163 </instructions>
164 </configuration>
165 </plugin>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000166 <plugin>
167 <artifactId>maven-javadoc-plugin</artifactId>
168 <configuration>
169 <excludePackageNames>
170 *.internal
171 </excludePackageNames>
172 </configuration>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.rat</groupId>
176 <artifactId>apache-rat-plugin</artifactId>
177 <configuration>
178 <includes>
179 <include>src/**</include>
180 </includes>
181 <excludes>
182 <exclude>src/main/appended-resources/**</exclude>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000183 <exclude>src/main/resources/res/lib/jquery-1.8.3.js</exclude>
184 <exclude>src/main/resources/res/lib/jquery-ui-1.9.2.js</exclude>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000185 <exclude>src/main/resources/res/lib/jquery-ui-i18n-1.7.2.js</exclude>
186 <exclude>src/main/resources/res/lib/jquery.cookies-2.2.0.js</exclude>
187 <exclude>src/main/resources/res/lib/jquery.multifile-1.4.6.js</exclude>
188 <exclude>src/main/resources/res/lib/jquery.tablesorter-2.0.3.js</exclude>
189 <exclude>src/main/resources/res/lib/reset-min.css</exclude>
190 <exclude>src/main/resources/res/lib/themes/**</exclude>
191 <exclude>src/main/resources/res/ui/ui.tabs.paging.js</exclude>
192 <exclude>src/main/resources/templates/*.html</exclude>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000193 <exclude>src/main/debug-resources/res/lib/**</exclude>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000194 </excludes>
195 </configuration>
196 </plugin>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000197 </plugins>
198 </build>
199
Felix Meschberger271297a2012-12-02 18:41:33 +0000200 <profiles>
201 <!--
202 The "all-in-one-bundle" profile builds a bundle including certain
203 3rd party libraries and classes, namely: Commons IO, Commons
204 FileUpload, JSON, and the OSGi ServiceTracker.
205 The "all-in-one-bundle" can be used in deployments where these
206 dependencies need not be deployed separately.
207 -->
208 <profile>
209 <id>all-in-one-bundle</id>
210 <activation><activeByDefault>true</activeByDefault></activation>
211 <build>
212 <plugins>
213 <plugin>
214 <groupId>org.apache.felix</groupId>
215 <artifactId>maven-bundle-plugin</artifactId>
216 <executions>
217 <execution>
218 <id>all-in-one-bundle</id>
219 <goals>
220 <goal>bundle</goal>
221 </goals>
222 <configuration>
223 <classifier>all</classifier>
224 <instructions>
225 <Bundle-Name>
226 ${project.name} (All In One)
227 </Bundle-Name>
228 <Bundle-SymbolicName>
229 ${project.artifactId}.all
230 </Bundle-SymbolicName>
Felix Meschberger271297a2012-12-02 18:41:33 +0000231 <Export-Package>
232 org.apache.commons.fileupload,
233 org.apache.commons.fileupload.disk,
234 org.apache.commons.fileupload.servlet,
235 org.apache.commons.fileupload.util,
236 org.apache.commons.io,
237 org.apache.commons.io.filefilter,
238 org.apache.commons.io.output,
239 org.json;version=${org.json.version.osgi}
240 </Export-Package>
241 <Embed-Dependency>
242 <!-- Import/Export-Package parsing -->
243 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
244 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
245
246 <!-- ServiceTracker -->
247 org.osgi.compendium;
248 inline=org/osgi/util/tracker/*,
249 </Embed-Dependency>
250
251 <_removeheaders>
252 Embed-Dependency,Private-Package,Include-Resource
253 </_removeheaders>
254 </instructions>
255 </configuration>
256 </execution>
257 </executions>
258 </plugin>
259 <!--
260 <plugin>
261 <groupId>org.apache.maven.plugins</groupId>
262 <artifactId>maven-remote-resources-plugin</artifactId>
263 <executions>
264 <execution>
265 <goals>
266 <goal>process</goal>
267 </goals>
268 <configuration>
269 <resourceBundles>
270 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
271 </resourceBundles>
272 </configuration>
273 </execution>
274 </executions>
275 </plugin>
276 -->
277 </plugins>
278 </build>
279 </profile>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000280
281 <!--
282 The "debug" profile builds a bundle using the non-minified
283 JQuery libraries and CSS files instead to make debugging
284 JQuery related issues easier.
285 -->
286 <profile>
287 <id>debug-bundle</id>
288 <activation><activeByDefault>true</activeByDefault></activation>
289 <build>
290 <plugins>
291 <plugin>
292 <groupId>org.apache.felix</groupId>
293 <artifactId>maven-bundle-plugin</artifactId>
294 <executions>
295 <execution>
296 <id>debug-bundle</id>
297 <goals>
298 <goal>bundle</goal>
299 </goals>
300 <configuration>
301 <classifier>debug</classifier>
302 <instructions>
303 <Bundle-Name>
304 ${project.name} (JQuery Debug)
305 </Bundle-Name>
306 <Bundle-SymbolicName>
307 ${project.artifactId}.debug
308 </Bundle-SymbolicName>
309 <Include-Resource>
310 {maven-resources},
311 res=src/main/debug-resources/res
312 </Include-Resource>
313 </instructions>
314 </configuration>
315 </execution>
316 </executions>
317 </plugin>
318 <!--
319 <plugin>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-remote-resources-plugin</artifactId>
322 <executions>
323 <execution>
324 <goals>
325 <goal>process</goal>
326 </goals>
327 <configuration>
328 <resourceBundles>
329 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
330 </resourceBundles>
331 </configuration>
332 </execution>
333 </executions>
334 </plugin>
335 -->
336 </plugins>
337 </build>
338 </profile>
Felix Meschberger271297a2012-12-02 18:41:33 +0000339 </profiles>
340
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000341 <dependencies>
342 <dependency>
343 <groupId>javax.servlet</groupId>
344 <artifactId>servlet-api</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000345 <version>2.4</version>
346 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000347 </dependency>
348
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000349 <dependency>
350 <groupId>commons-fileupload</groupId>
351 <artifactId>commons-fileupload</artifactId>
Felix Meschbergere5722152011-12-17 13:00:58 +0000352 <version>1.2.1</version>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000353 <scope>provided</scope>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000354 </dependency>
355
356 <dependency>
357 <groupId>commons-io</groupId>
358 <artifactId>commons-io</artifactId>
359 <version>1.4</version>
360 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000361 </dependency>
362
363 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000364 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000365 <artifactId>org.osgi.core</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000366 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000367 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000368 </dependency>
369 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000370 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000371 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000372 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000373 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000374 </dependency>
375
376 <dependency>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000377 <groupId>org.json</groupId>
378 <artifactId>json</artifactId>
Felix Meschberger271297a2012-12-02 18:41:33 +0000379 <version>${org.json.version}</version>
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000380 <scope>provided</scope>
381 </dependency>
Felix Meschberger271297a2012-12-02 18:41:33 +0000382
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000383 <dependency>
384 <groupId>org.apache.felix</groupId>
385 <artifactId>org.apache.felix.shell</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000386 <version>1.0.0</version>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000387 <scope>provided</scope>
388 </dependency>
389
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000390 <!--
391 Required for a simple VersionRange class, the class from
392 the utils bundle is overkill and requires JDK 1.4 or better
393 -->
394 <dependency>
395 <groupId>org.apache.felix</groupId>
396 <artifactId>org.apache.felix.framework</artifactId>
397 <version>2.0.2</version>
398 <scope>provided</scope>
399 <optional>true</optional>
400 </dependency>
401
Felix Meschbergerb16615b2009-06-29 10:21:00 +0000402 <!-- Parsing Import/Export-Package headers -->
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000403 <dependency>
404 <groupId>org.apache.felix</groupId>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000405 <artifactId>org.apache.felix.utils</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000406 <version>1.0.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000407 <scope>provided</scope>
Felix Meschbergeref9ec942008-05-21 21:25:49 +0000408 <optional>true</optional>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000409 </dependency>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000410
411 <!-- OSGi and Apache Felix OBR API -->
412 <dependency>
413 <groupId>org.apache.felix</groupId>
414 <artifactId>org.osgi.service.obr</artifactId>
415 <version>1.0.2</version>
416 <scope>provided</scope>
417 </dependency>
418 <dependency>
419 <groupId>org.apache.felix</groupId>
420 <artifactId>org.apache.felix.bundlerepository</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000421 <version>1.6.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000422 <scope>provided</scope>
423 <optional>true</optional>
424 </dependency>
425
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000426 </dependencies>
Felix Meschberger714d78f2008-08-27 19:52:34 +0000427</project>