Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1976

Define Web Console build without embedded libraries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-2.0.4
    • webconsole-2.0.6
    • Web Console
    • None

    Description

      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;

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: