felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-1976) Define Web Console build without embedded libraries
Date Tue, 12 Jan 2010 07:12:57 GMT
Define Web Console build without embedded libraries
---------------------------------------------------

                 Key: FELIX-1976
                 URL: https://issues.apache.org/jira/browse/FELIX-1976
             Project: Felix
          Issue Type: Improvement
          Components: Web Console
    Affects Versions: webconsole-2.0.4
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: webconsole-2.0.6


Currently the Web Console by default embeds three 3rd party Java libraries: JSON, Commons
IO, and Commons FileUpload. For certain uses cases - namely embedded devices -, it would be
useful to have Web Console builds without the embedded libraries to conserve memory consumption.

This can be achieved with  a simple extension to the Maven POM à-la:

Index: pom.xml
===================================================================
--- pom.xml	(revision 897848)
+++ pom.xml	(working copy)
@@ -50,6 +50,22 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <version>1.4.3</version>
                 <extensions>true</extensions>
+                <executions>
+                    <execution>
+                        <id>test</id>
+                        <goals>
+                            <goal>bundle</goal>
+                        </goals>
+                        <configuration>
+                            <classifier>minimal</classifier>
+                            <instructions>
+                                <Embed-Dependency>
+                                    -
+                                </Embed-Dependency>
+                            </instructions>
+                        </configuration>
+                    </execution>
+                </executions>
                 <configuration>
                     <instructions>
                         <Bundle-SymbolicName>
@@ -79,7 +95,6 @@
                             javax.portlet;resolution:=optional,
                             javax.servlet.*;version=2.4,*;
                         </Import-Package>
-
                         <Embed-Dependency>
                             <!-- Import/Export-Package parsing -->
                             org.apache.felix.bundlerepository;


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message