Maven 1.x UberJar Plugin

Missmatch in artifact naming between jelly and velocity code.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven 1.0.2, maven-uberjar-plugin 1.2, Java 1.4.2
  • Number of attachments :
    0

Description

The plugin.jelly copies the dependency jars using the path property to the library directory, while the classworlds.conf template uses the dependecy artifact property when creating the loader script.

This is OK if no jar-tag is in the POM dependency that changes the deirectory structure of the dependecy jar. But if the jar is in a subdirectory, the generated classworlds.conf file points to a non-existent subdirectory in the uberjar/WORLDS-INF/lib structure.

Solution:
Change line 80 in plugin.jelly from:
<ant:copy todir="${libdir}" file="${lib.path}"/>
to:
<ant:copy tofile="${libdir}/${dep.artifact}" file="${lib.path}"/>

Cheers
/glz

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: