Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Labels:None
-
Environment:maven 1.0.2, maven-uberjar-plugin 1.2, Java 1.4.2
-
Number of attachments :
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="$
to:
<ant:copy tofile="${libdir}
/$
{dep.artifact}" file="$
{lib.path}"/>
Cheers
/glz