Maven 1.x UberJar Plugin
  1. Maven 1.x UberJar Plugin
  2. MPUBERJAR-7

Missmatch in artifact naming between jelly and velocity code.

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • 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

          • Assignee:
            Unassigned
            Reporter:
            Goran Lowkrantz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: