blob: ab01f6fe0dbb1c9f871428c047c97e05de81d716 [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>
Valentin Pavlov Valcheve8db90c2012-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 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>
183 <exclude>src/main/resources/res/lib/jquery-1.3.2.js</exclude>
184 <exclude>src/main/resources/res/lib/jquery-ui-1.7.2.js</exclude>
185 <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>
193 </excludes>
194 </configuration>
195 </plugin>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000196 </plugins>
197 </build>
198
Felix Meschberger271297a2012-12-02 18:41:33 +0000199 <profiles>
200 <!--
201 The "all-in-one-bundle" profile builds a bundle including certain
202 3rd party libraries and classes, namely: Commons IO, Commons
203 FileUpload, JSON, and the OSGi ServiceTracker.
204 The "all-in-one-bundle" can be used in deployments where these
205 dependencies need not be deployed separately.
206 -->
207 <profile>
208 <id>all-in-one-bundle</id>
209 <activation><activeByDefault>true</activeByDefault></activation>
210 <build>
211 <plugins>
212 <plugin>
213 <groupId>org.apache.felix</groupId>
214 <artifactId>maven-bundle-plugin</artifactId>
215 <executions>
216 <execution>
217 <id>all-in-one-bundle</id>
218 <goals>
219 <goal>bundle</goal>
220 </goals>
221 <configuration>
222 <classifier>all</classifier>
223 <instructions>
224 <Bundle-Name>
225 ${project.name} (All In One)
226 </Bundle-Name>
227 <Bundle-SymbolicName>
228 ${project.artifactId}.all
229 </Bundle-SymbolicName>
230 <Include-Resource>
231 {maven-resources},META-INF=src/main/all-resources
232 </Include-Resource>
233 <Export-Package>
234 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,
241 org.json;version=${org.json.version.osgi}
242 </Export-Package>
243 <Embed-Dependency>
244 <!-- Import/Export-Package parsing -->
245 org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**,
246 org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**,
247
248 <!-- ServiceTracker -->
249 org.osgi.compendium;
250 inline=org/osgi/util/tracker/*,
251 </Embed-Dependency>
252
253 <_removeheaders>
254 Embed-Dependency,Private-Package,Include-Resource
255 </_removeheaders>
256 </instructions>
257 </configuration>
258 </execution>
259 </executions>
260 </plugin>
261 <!--
262 <plugin>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-remote-resources-plugin</artifactId>
265 <executions>
266 <execution>
267 <goals>
268 <goal>process</goal>
269 </goals>
270 <configuration>
271 <resourceBundles>
272 <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
273 </resourceBundles>
274 </configuration>
275 </execution>
276 </executions>
277 </plugin>
278 -->
279 </plugins>
280 </build>
281 </profile>
282 </profiles>
283
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000284 <dependencies>
285 <dependency>
286 <groupId>javax.servlet</groupId>
287 <artifactId>servlet-api</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000288 <version>2.4</version>
289 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000290 </dependency>
291
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000292 <dependency>
293 <groupId>commons-fileupload</groupId>
294 <artifactId>commons-fileupload</artifactId>
Felix Meschbergere5722152011-12-17 13:00:58 +0000295 <version>1.2.1</version>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000296 <scope>provided</scope>
Carsten Ziegelerbc118d92009-02-05 18:35:13 +0000297 </dependency>
298
299 <dependency>
300 <groupId>commons-io</groupId>
301 <artifactId>commons-io</artifactId>
302 <version>1.4</version>
303 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000304 </dependency>
305
306 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000307 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000308 <artifactId>org.osgi.core</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000309 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000310 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000311 </dependency>
312 <dependency>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000313 <groupId>org.osgi</groupId>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000314 <artifactId>org.osgi.compendium</artifactId>
Carsten Ziegelerc53e35a2009-12-15 15:57:11 +0000315 <version>4.1.0</version>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000316 <scope>provided</scope>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000317 </dependency>
318
319 <dependency>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000320 <groupId>org.json</groupId>
321 <artifactId>json</artifactId>
Felix Meschberger271297a2012-12-02 18:41:33 +0000322 <version>${org.json.version}</version>
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000323 <scope>provided</scope>
324 </dependency>
Felix Meschberger271297a2012-12-02 18:41:33 +0000325
Felix Meschbergercdcc8f02010-08-03 09:45:33 +0000326 <dependency>
327 <groupId>org.apache.felix</groupId>
328 <artifactId>org.apache.felix.shell</artifactId>
Felix Meschberger5fbdd8c2008-05-16 13:09:35 +0000329 <version>1.0.0</version>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000330 <scope>provided</scope>
331 </dependency>
332
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000333 <!--
334 Required for a simple VersionRange class, the class from
335 the utils bundle is overkill and requires JDK 1.4 or better
336 -->
337 <dependency>
338 <groupId>org.apache.felix</groupId>
339 <artifactId>org.apache.felix.framework</artifactId>
340 <version>2.0.2</version>
341 <scope>provided</scope>
342 <optional>true</optional>
343 </dependency>
344
Felix Meschbergerb16615b2009-06-29 10:21:00 +0000345 <!-- Parsing Import/Export-Package headers -->
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000346 <dependency>
347 <groupId>org.apache.felix</groupId>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000348 <artifactId>org.apache.felix.utils</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000349 <version>1.0.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000350 <scope>provided</scope>
Felix Meschbergeref9ec942008-05-21 21:25:49 +0000351 <optional>true</optional>
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000352 </dependency>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000353
354 <!-- OSGi and Apache Felix OBR API -->
355 <dependency>
356 <groupId>org.apache.felix</groupId>
357 <artifactId>org.osgi.service.obr</artifactId>
358 <version>1.0.2</version>
359 <scope>provided</scope>
360 </dependency>
361 <dependency>
362 <groupId>org.apache.felix</groupId>
363 <artifactId>org.apache.felix.bundlerepository</artifactId>
Felix Meschbergerccc755f2010-04-03 09:55:38 +0000364 <version>1.6.0</version>
Felix Meschbergerd66a1312010-03-22 15:31:13 +0000365 <scope>provided</scope>
366 <optional>true</optional>
367 </dependency>
368
Felix Meschbergerbb30b0c2008-05-16 11:59:32 +0000369 </dependencies>
Felix Meschberger714d78f2008-08-27 19:52:34 +0000370</project>