You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/01/12 09:16:56 UTC

[jira] Resolved: (FELIX-1976) Define Web Console build without embedded libraries

     [ https://issues.apache.org/jira/browse/FELIX-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-1976.
--------------------------------------

    Resolution: Fixed

Created a build profile "bare-bundle" in Rev. 898224 and 898231.

This build profile is...

  * enabled by default. To build without it, use -P!bare-bundle (don't forget to escape "!" if needed in the shell)
  * does not embed Commons IO, Commons FileUpload, JSON and the OSGi ServiceTracker
  * Still includes the bundlerepository classes, since these are not exported from the bundlerepository bundle
  * Contains a NOTICE file without a reference to the JSON library and included OSGi software

> 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.