blob: 6fd7de42d2b6ffdaee9f105c479999c74cb92ad3 [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,
Felix Meschberger5fc70792010-01-17 17:40:57 +0000136 javax.servlet.*;version=2.4,
Valentin Pavlov Valchev548548c2012-07-12 06:56:09 +0000137 org.apache.commons.io; version="[1.4,3)",
Felix Meschberger5fc70792010-01-17 17:40:57 +0000138 *
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000139 </Import-Package>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000140 <DynamicImport-Package>
Felix Meschbergerc73f5772011-12-19 12:54:03 +0000141 org.apache.felix.bundlerepository;version="[2.0,3)",
142 org.osgi.service.obr;version="[1.0,2)",
143 org.osgi.service.cm;version="[1.2,2)",
144 org.osgi.service.condpermadmin;version="[1.0,2)",
145 org.osgi.service.log;version="[1.3,2)",
146 org.osgi.service.metatype;version="[1.1,2)",
147 org.osgi.service.permissionadmin;version="[1.2,2)",
148 org.osgi.service.prefs;version="[1.1,2)",
149 org.osgi.service.wireadmin;version="[1.0,2)"
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000150 </DynamicImport-Package>
Felix Meschbergerc37926b2011-12-17 11:16:13 +0000151 <Include-Resource>
Felix Meschbergerae42b9c2012-04-05 14:11:10 +0000152 {maven-resources},OSGI-INF=target/classes/OSGI-INF
Felix Meschbergerc37926b2011-12-17 11:16:13 +0000153 </Include-Resource>
Felix Meschberger4c664132008-06-02 13:52:15 +0000154 <Embed-Dependency>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000155 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
Felix Meschberger4b3011c2012-12-25 19:56:31 +0000156 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**
Felix Meschberger4c664132008-06-02 13:52:15 +0000157 </Embed-Dependency>
Felix Meschberger90777f42010-01-12 08:09:52 +0000158 <_removeheaders>
159 Embed-Dependency,Private-Package,Include-Resource
160 </_removeheaders>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000161 </instructions>
162 </configuration>
163 </plugin>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000164 <plugin>
165 <artifactId>maven-javadoc-plugin</artifactId>
166 <configuration>
167 <excludePackageNames>
168 *.internal
169 </excludePackageNames>
170 </configuration>
171 </plugin>
172 <plugin>
173 <groupId>org.apache.rat</groupId>
174 <artifactId>apache-rat-plugin</artifactId>
175 <configuration>
176 <includes>
177 <include>src/**</include>
178 </includes>
179 <excludes>
180 <exclude>src/main/appended-resources/**</exclude>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000181 <exclude>src/main/resources/res/lib/jquery-1.8.3.js</exclude>
182 <exclude>src/main/resources/res/lib/jquery-ui-1.9.2.js</exclude>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000183 <exclude>src/main/resources/res/lib/jquery-ui-i18n-1.7.2.js</exclude>
184 <exclude>src/main/resources/res/lib/jquery.cookies-2.2.0.js</exclude>
185 <exclude>src/main/resources/res/lib/jquery.multifile-1.4.6.js</exclude>
186 <exclude>src/main/resources/res/lib/jquery.tablesorter-2.0.3.js</exclude>
187 <exclude>src/main/resources/res/lib/reset-min.css</exclude>
188 <exclude>src/main/resources/res/lib/themes/**</exclude>
189 <exclude>src/main/resources/res/ui/ui.tabs.paging.js</exclude>
190 <exclude>src/main/resources/templates/*.html</exclude>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000191 <exclude>src/main/debug-resources/res/lib/**</exclude>
Felix Meschbergerbbdc6f02011-12-17 12:17:32 +0000192 </excludes>
193 </configuration>
194 </plugin>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000195 </plugins>
196 </build>
197
Felix Meschberger271297a2012-12-02 18:41:33 +0000198 <profiles>
199 <!--
200 The "all-in-one-bundle" profile builds a bundle including certain
201 3rd party libraries and classes, namely: Commons IO, Commons
202 FileUpload, JSON, and the OSGi ServiceTracker.
203 The "all-in-one-bundle" can be used in deployments where these
204 dependencies need not be deployed separately.
205 -->
206 <profile>
207 <id>all-in-one-bundle</id>
208 <activation><activeByDefault>true</activeByDefault></activation>
209 <build>
210 <plugins>
211 <plugin>
212 <groupId>org.apache.felix</groupId>
213 <artifactId>maven-bundle-plugin</artifactId>
214 <executions>
215 <execution>
216 <id>all-in-one-bundle</id>
217 <goals>
218 <goal>bundle</goal>
219 </goals>
220 <configuration>
221 <classifier>all</classifier>
222 <instructions>
223 <Bundle-Name>
224 ${project.name} (All In One)
225 </Bundle-Name>
Felix Meschberger127e36e2012-12-31 07:56:40 +0000226 <Bundle-Version>
227 ${project.version}-all
228 </Bundle-Version>
Felix Meschberger271297a2012-12-02 18:41:33 +0000229 <Export-Package>
230 org.apache.commons.fileupload,
231 org.apache.commons.fileupload.disk,
232 org.apache.commons.fileupload.servlet,
233 org.apache.commons.fileupload.util,
234 org.apache.commons.io,
235 org.apache.commons.io.filefilter,
236 org.apache.commons.io.output,
237 org.json;version=${org.json.version.osgi}
238 </Export-Package>
239 <Embed-Dependency>
240 <!-- Import/Export-Package parsing -->
241 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
242 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
243
244 <!-- ServiceTracker -->
245 org.osgi.compendium;
246 inline=org/osgi/util/tracker/*,
247 </Embed-Dependency>
248
249 <_removeheaders>
250 Embed-Dependency,Private-Package,Include-Resource
251 </_removeheaders>
252 </instructions>
253 </configuration>
254 </execution>
255 </executions>
256 </plugin>
257 <!--
258 <plugin>
259 <groupId>org.apache.maven.plugins</groupId>
260 <artifactId>maven-remote-resources-plugin</artifactId>
261 <executions>
262 <execution>
263 <goals>
264 <goal>process</goal>
265 </goals>
266 <configuration>
267 <resourceBundles>
268 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
269 </resourceBundles>
270 </configuration>
271 </execution>
272 </executions>
273 </plugin>
274 -->
275 </plugins>
276 </build>
277 </profile>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000278
279 <!--
280 The "debug" profile builds a bundle using the non-minified
281 JQuery libraries and CSS files instead to make debugging
282 JQuery related issues easier.
283 -->
284 <profile>
285 <id>debug-bundle</id>
286 <activation><activeByDefault>true</activeByDefault></activation>
287 <build>
288 <plugins>
289 <plugin>
290 <groupId>org.apache.felix</groupId>
291 <artifactId>maven-bundle-plugin</artifactId>
292 <executions>
293 <execution>
294 <id>debug-bundle</id>
295 <goals>
296 <goal>bundle</goal>
297 </goals>
298 <configuration>
299 <classifier>debug</classifier>
300 <instructions>
301 <Bundle-Name>
302 ${project.name} (JQuery Debug)
303 </Bundle-Name>
Felix Meschberger127e36e2012-12-31 07:56:40 +0000304 <Bundle-Version>
305 ${project.version}-debug
306 </Bundle-Version>
Felix Meschberger4dd77dd2012-12-02 18:44:51 +0000307 <Include-Resource>
308 {maven-resources},
309 res=src/main/debug-resources/res
310 </Include-Resource>
311 </instructions>
312 </configuration>
313 </execution>
314 </executions>
315 </plugin>
316 <!--
317 <plugin>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-remote-resources-plugin</artifactId>
320 <executions>
321 <execution>
322 <goals>
323 <goal>process</goal>
324 </goals>
325 <configuration>
326 <resourceBundles>
327 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
328 </resourceBundles>
329 </configuration>
330 </execution>
331 </executions>
332 </plugin>
333 -->
334 </plugins>
335 </build>
336 </profile>
Felix Meschberger271297a2012-12-02 18:41:33 +0000337 </profiles>
338
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000339 <dependencies>
340 <dependency>
341 <groupId>javax.servlet</groupId>
342 <artifactId>servlet-api</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000343 <version>2.4</version>
344 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000345 </dependency>
346
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000347 <dependency>
348 <groupId>commons-fileupload</groupId>
349 <artifactId>commons-fileupload</artifactId>
Felix Meschbergere5722152011-12-17 13:00:58 +0000350 <version>1.2.1</version>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000351 <scope>provided</scope>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000352 </dependency>
353
354 <dependency>
355 <groupId>commons-io</groupId>
356 <artifactId>commons-io</artifactId>
357 <version>1.4</version>
358 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000359 </dependency>
360
361 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000362 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000363 <artifactId>org.osgi.core</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000364 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000365 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000366 </dependency>
367 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000368 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000369 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000370 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000371 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000372 </dependency>
373
374 <dependency>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000375 <groupId>org.json</groupId>
376 <artifactId>json</artifactId>
Felix Meschberger271297a2012-12-02 18:41:33 +0000377 <version>${org.json.version}</version>
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000378 <scope>provided</scope>
379 </dependency>
Felix Meschberger271297a2012-12-02 18:41:33 +0000380
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000381 <dependency>
382 <groupId>org.apache.felix</groupId>
383 <artifactId>org.apache.felix.shell</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000384 <version>1.0.0</version>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000385 <scope>provided</scope>
386 </dependency>
387
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000388 <!--
389 Required for a simple VersionRange class, the class from
390 the utils bundle is overkill and requires JDK 1.4 or better
391 -->
392 <dependency>
393 <groupId>org.apache.felix</groupId>
394 <artifactId>org.apache.felix.framework</artifactId>
395 <version>2.0.2</version>
396 <scope>provided</scope>
397 <optional>true</optional>
398 </dependency>
399
Felix Meschbergerb16615b2009-06-29 10:21:00 +0000400 <!-- Parsing Import/Export-Package headers -->
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000401 <dependency>
402 <groupId>org.apache.felix</groupId>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000403 <artifactId>org.apache.felix.utils</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000404 <version>1.0.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000405 <scope>provided</scope>
Felix Meschbergeref9ec942008-05-21 21:25:49 +0000406 <optional>true</optional>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000407 </dependency>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000408
409 <!-- OSGi and Apache Felix OBR API -->
410 <dependency>
411 <groupId>org.apache.felix</groupId>
412 <artifactId>org.osgi.service.obr</artifactId>
413 <version>1.0.2</version>
414 <scope>provided</scope>
415 </dependency>
416 <dependency>
417 <groupId>org.apache.felix</groupId>
418 <artifactId>org.apache.felix.bundlerepository</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000419 <version>1.6.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000420 <scope>provided</scope>
421 <optional>true</optional>
422 </dependency>
423
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000424 </dependencies>
Felix Meschberger714d78f2008-08-27 19:52:34 +0000425</project>