Mojo

Maven MiniJar Plugin to mimimize dependency jars

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: _Plugin Submission
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    2
  1. file.diff
    10/Jan/06 3:49 AM
    2 kB
    Torsten Curdt
  2. maven-minijar-plugin.tgz
    09/Jan/06 8:46 PM
    12 kB
    Torsten Curdt

Activity

Hide
Brian Fox added a comment -

Code, license and site seem to be in order. I committed the code to the sandbox. There seems to be a pathing error when I try to run it: (tried 2.0 and 2.0.1)
[INFO] failed to process jar

Embedded error: E:\mojo\mojo\dependency-maven-plugin\target\E:\mojo\mojo\depende
ncy-maven-plugin\target\dependency-maven-plugin-1.1-SNAPSHOT-minimal.jar-minimal
.jar (The filename, directory name, or volume label syntax is incorrect)

Show
Brian Fox added a comment - Code, license and site seem to be in order. I committed the code to the sandbox. There seems to be a pathing error when I try to run it: (tried 2.0 and 2.0.1) [INFO] failed to process jar Embedded error: E:\mojo\mojo\dependency-maven-plugin\target\E:\mojo\mojo\depende ncy-maven-plugin\target\dependency-maven-plugin-1.1-SNAPSHOT-minimal.jar-minimal .jar (The filename, directory name, or volume label syntax is incorrect)
Hide
Torsten Curdt added a comment -

Was a sloppy file path handling and therefor a unix/windows issue. Please apply the fix and try again.

Show
Torsten Curdt added a comment - Was a sloppy file path handling and therefor a unix/windows issue. Please apply the fix and try again.
Hide
Brian Fox added a comment -

Patch applied and it works now. I'll deploy a snapshot version and the site.

Show
Brian Fox added a comment - Patch applied and it works now. I'll deploy a snapshot version and the site.
Hide
Brian Fox added a comment -

It seems to work ok in most cases. I did have a few wierd instances where it returned empty jars when I didn't think it should. The question is how this can be used in production? In order for it to work for a war, it seems like these jars need to be substituted for the full size ones so they get packaged. In this case, it would probably make sense to specify which jars you wanted to minimize and include.

Show
Brian Fox added a comment - It seems to work ok in most cases. I did have a few wierd instances where it returned empty jars when I didn't think it should. The question is how this can be used in production? In order for it to work for a war, it seems like these jars need to be substituted for the full size ones so they get packaged. In this case, it would probably make sense to specify which jars you wanted to minimize and include.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: