blob: d9f7aeee8b9cce443fe9039fcee69cddbf42c493 [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>
Felix Meschbergera09d4372012-06-01 13:10:33 +000031 <version>4.0.1-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>
43 </properties>
Felix Meschbergerca29a962008-05-16 11:59:32 +000044
45 <scm>
Felix Meschbergera09d4372012-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 Meschbergerca29a962008-05-16 11:59:32 +000049 </scm>
50
51 <build>
Felix Meschbergerf85d5af2010-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 Meschbergerfabe0252010-08-12 07:40:34 +000061 <include>LICENSE</include>
62 <include>NOTICE</include>
63 <include>DEPENDENCIES</include>
Felix Meschbergera4f53642010-11-03 22:28:52 +000064 <include>changelog.txt</include>
Felix Meschbergerf85d5af2010-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 Meschbergerca29a962008-05-16 11:59:32 +000072 <plugins>
Felix Meschberger17f7f792010-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 Meschbergerd7274052011-12-17 13:57:38 +000077 <version>1.0-beta-1</version>
Felix Meschberger17f7f792010-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 Meschbergera424dec2011-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 Meschberger46d68152011-12-17 12:34:04 +0000110 <plugin>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000111 <groupId>org.apache.felix</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000112 <artifactId>maven-bundle-plugin</artifactId>
Felix Meschberger46d68152011-12-17 12:34:04 +0000113 <version>2.3.6</version>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000114 <extensions>true</extensions>
115 <configuration>
116 <instructions>
Carsten Ziegeler5e32e602008-05-16 14:44:08 +0000117 <Bundle-SymbolicName>
Felix Meschbergerccdf4fa2011-03-24 16:22:32 +0000118 ${project.artifactId}
Carsten Ziegeler5e32e602008-05-16 14:44:08 +0000119 </Bundle-SymbolicName>
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000120 <Bundle-Vendor>
121 The Apache Software Foundation
122 </Bundle-Vendor>
123 <Bundle-DocURL>
Felix Meschbergera26ffb42008-12-22 11:39:17 +0000124 http://felix.apache.org/site/apache-felix-web-console.html
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000125 </Bundle-DocURL>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000126 <Bundle-Activator>
Felix Meschbergerab3c75c2008-05-16 13:14:45 +0000127 org.apache.felix.webconsole.internal.OsgiManagerActivator
Felix Meschbergerca29a962008-05-16 11:59:32 +0000128 </Bundle-Activator>
Felix Meschberger68c153a2012-01-06 15:03:17 +0000129 <Export-Package>
Valentin Valchev57ba7bc2012-08-15 12:48:53 +0000130 org.apache.felix.webconsole;version=3.1.2;provide:=true,
131 org.apache.felix.webconsole.bundleinfo;version=1.0.0;provide:=true,
132 org.apache.felix.webconsole.i18n;version=1.0.0;provide:=true
Felix Meschberger68c153a2012-01-06 15:03:17 +0000133 </Export-Package>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000134 <Import-Package>
Felix Meschbergered350d82012-12-02 18:41:33 +0000135 org.json.*;version=0,
136 org.osgi.service.metatype;resolution:=optional,
Felix Meschberger6dcc01e2010-01-17 17:40:57 +0000137 javax.servlet.*;version=2.4,
Valentin Valchevcc9e47d2012-07-12 06:56:09 +0000138 org.apache.commons.io; version="[1.4,3)",
Felix Meschberger6dcc01e2010-01-17 17:40:57 +0000139 *
Felix Meschbergerca29a962008-05-16 11:59:32 +0000140 </Import-Package>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000141 <DynamicImport-Package>
Felix Meschbergerb58af942011-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 Meschberger35ddac22010-03-22 15:31:13 +0000151 </DynamicImport-Package>
Felix Meschbergerdcf0f3d2011-12-17 11:16:13 +0000152 <Include-Resource>
Felix Meschberger921a80a2012-04-05 14:11:10 +0000153 {maven-resources},OSGI-INF=target/classes/OSGI-INF
Felix Meschbergerdcf0f3d2011-12-17 11:16:13 +0000154 </Include-Resource>
Felix Meschberger9b3c4e02008-06-02 13:52:15 +0000155 <Embed-Dependency>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000156 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
Felix Meschbergerb58af942011-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 Meschberger9b3c4e02008-06-02 13:52:15 +0000159 </Embed-Dependency>
Felix Meschbergerc17f2d12010-01-12 08:09:52 +0000160 <_removeheaders>
161 Embed-Dependency,Private-Package,Include-Resource
162 </_removeheaders>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000163 </instructions>
164 </configuration>
165 </plugin>
Felix Meschberger9de2c592011-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 Meschbergerefc5de52012-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 Meschberger9de2c592011-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 Meschbergerefc5de52012-12-02 18:44:51 +0000193 <exclude>src/main/debug-resources/res/lib/**</exclude>
Felix Meschberger9de2c592011-12-17 12:17:32 +0000194 </excludes>
195 </configuration>
196 </plugin>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000197 </plugins>
198 </build>
199
Felix Meschbergered350d82012-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>
231 <Include-Resource>
232 {maven-resources},META-INF=src/main/all-resources
233 </Include-Resource>
234 <Export-Package>
235 org.apache.commons.fileupload,
236 org.apache.commons.fileupload.disk,
237 org.apache.commons.fileupload.servlet,
238 org.apache.commons.fileupload.util,
239 org.apache.commons.io,
240 org.apache.commons.io.filefilter,
241 org.apache.commons.io.output,
242 org.json;version=${org.json.version.osgi}
243 </Export-Package>
244 <Embed-Dependency>
245 <!-- Import/Export-Package parsing -->
246 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
247 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
248
249 <!-- ServiceTracker -->
250 org.osgi.compendium;
251 inline=org/osgi/util/tracker/*,
252 </Embed-Dependency>
253
254 <_removeheaders>
255 Embed-Dependency,Private-Package,Include-Resource
256 </_removeheaders>
257 </instructions>
258 </configuration>
259 </execution>
260 </executions>
261 </plugin>
262 <!--
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-remote-resources-plugin</artifactId>
266 <executions>
267 <execution>
268 <goals>
269 <goal>process</goal>
270 </goals>
271 <configuration>
272 <resourceBundles>
273 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
274 </resourceBundles>
275 </configuration>
276 </execution>
277 </executions>
278 </plugin>
279 -->
280 </plugins>
281 </build>
282 </profile>
Felix Meschbergerefc5de52012-12-02 18:44:51 +0000283
284 <!--
285 The "debug" profile builds a bundle using the non-minified
286 JQuery libraries and CSS files instead to make debugging
287 JQuery related issues easier.
288 -->
289 <profile>
290 <id>debug-bundle</id>
291 <activation><activeByDefault>true</activeByDefault></activation>
292 <build>
293 <plugins>
294 <plugin>
295 <groupId>org.apache.felix</groupId>
296 <artifactId>maven-bundle-plugin</artifactId>
297 <executions>
298 <execution>
299 <id>debug-bundle</id>
300 <goals>
301 <goal>bundle</goal>
302 </goals>
303 <configuration>
304 <classifier>debug</classifier>
305 <instructions>
306 <Bundle-Name>
307 ${project.name} (JQuery Debug)
308 </Bundle-Name>
309 <Bundle-SymbolicName>
310 ${project.artifactId}.debug
311 </Bundle-SymbolicName>
312 <Include-Resource>
313 {maven-resources},
314 res=src/main/debug-resources/res
315 </Include-Resource>
316 </instructions>
317 </configuration>
318 </execution>
319 </executions>
320 </plugin>
321 <!--
322 <plugin>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-remote-resources-plugin</artifactId>
325 <executions>
326 <execution>
327 <goals>
328 <goal>process</goal>
329 </goals>
330 <configuration>
331 <resourceBundles>
332 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
333 </resourceBundles>
334 </configuration>
335 </execution>
336 </executions>
337 </plugin>
338 -->
339 </plugins>
340 </build>
341 </profile>
Felix Meschbergered350d82012-12-02 18:41:33 +0000342 </profiles>
343
Felix Meschbergerca29a962008-05-16 11:59:32 +0000344 <dependencies>
345 <dependency>
346 <groupId>javax.servlet</groupId>
347 <artifactId>servlet-api</artifactId>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000348 <version>2.4</version>
349 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000350 </dependency>
351
Felix Meschbergerca29a962008-05-16 11:59:32 +0000352 <dependency>
353 <groupId>commons-fileupload</groupId>
354 <artifactId>commons-fileupload</artifactId>
Felix Meschberger7587b422011-12-17 13:00:58 +0000355 <version>1.2.1</version>
Carsten Ziegeler32196dc2009-02-05 18:35:13 +0000356 <scope>provided</scope>
Carsten Ziegeler32196dc2009-02-05 18:35:13 +0000357 </dependency>
358
359 <dependency>
360 <groupId>commons-io</groupId>
361 <artifactId>commons-io</artifactId>
362 <version>1.4</version>
363 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000364 </dependency>
365
366 <dependency>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000367 <groupId>org.osgi</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000368 <artifactId>org.osgi.core</artifactId>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000369 <version>4.1.0</version>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000370 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000371 </dependency>
372 <dependency>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000373 <groupId>org.osgi</groupId>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000374 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegeler975b2e22009-12-15 15:57:11 +0000375 <version>4.1.0</version>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000376 <scope>provided</scope>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000377 </dependency>
378
379 <dependency>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000380 <groupId>org.json</groupId>
381 <artifactId>json</artifactId>
Felix Meschbergered350d82012-12-02 18:41:33 +0000382 <version>${org.json.version}</version>
Felix Meschbergerc5c55512010-08-03 09:45:33 +0000383 <scope>provided</scope>
384 </dependency>
Felix Meschbergered350d82012-12-02 18:41:33 +0000385
Felix Meschbergerc5c55512010-08-03 09:45:33 +0000386 <dependency>
387 <groupId>org.apache.felix</groupId>
388 <artifactId>org.apache.felix.shell</artifactId>
Felix Meschbergere60e0722008-05-16 13:09:35 +0000389 <version>1.0.0</version>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000390 <scope>provided</scope>
391 </dependency>
392
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000393 <!--
394 Required for a simple VersionRange class, the class from
395 the utils bundle is overkill and requires JDK 1.4 or better
396 -->
397 <dependency>
398 <groupId>org.apache.felix</groupId>
399 <artifactId>org.apache.felix.framework</artifactId>
400 <version>2.0.2</version>
401 <scope>provided</scope>
402 <optional>true</optional>
403 </dependency>
404
Felix Meschberger18330ac2009-06-29 10:21:00 +0000405 <!-- Parsing Import/Export-Package headers -->
Felix Meschbergerca29a962008-05-16 11:59:32 +0000406 <dependency>
407 <groupId>org.apache.felix</groupId>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000408 <artifactId>org.apache.felix.utils</artifactId>
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000409 <version>1.0.0</version>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000410 <scope>provided</scope>
Felix Meschberger6c39c6c2008-05-21 21:25:49 +0000411 <optional>true</optional>
Felix Meschbergerca29a962008-05-16 11:59:32 +0000412 </dependency>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000413
414 <!-- OSGi and Apache Felix OBR API -->
415 <dependency>
416 <groupId>org.apache.felix</groupId>
417 <artifactId>org.osgi.service.obr</artifactId>
418 <version>1.0.2</version>
419 <scope>provided</scope>
420 </dependency>
421 <dependency>
422 <groupId>org.apache.felix</groupId>
423 <artifactId>org.apache.felix.bundlerepository</artifactId>
Felix Meschbergerd43b6d92010-04-03 09:55:38 +0000424 <version>1.6.0</version>
Felix Meschberger35ddac22010-03-22 15:31:13 +0000425 <scope>provided</scope>
426 <optional>true</optional>
427 </dependency>
428
Felix Meschbergerca29a962008-05-16 11:59:32 +0000429 </dependencies>
Felix Meschberger51a72802008-08-27 19:52:34 +0000430</project>