Maven Assembly Plugin
  1. Maven Assembly Plugin
  2. MASSEMBLY-591

Empty classifier in dependency causes extra dash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.4
    • Component/s: None
    • Labels:
      None

      Description

      When having a dependency with an empty classifier element, adding it as a dependency set causes an extra dash to appear in the file name.
      For example, when I add a dependency of this type (notice the empty classifier element):

      [snip]
      <dependency>
      <groupId>org.apache.tiles</groupId>
      <artifactId>tiles-api</artifactId>
      <version>2.2.2</version>
      <classifier />
      </dependency>
      [/snip]

      and I put it inside the assembly descriptor:
      [snip]
      <dependencySets>
      <dependencySet>
      <outputDirectory>/</outputDirectory>
      </dependencySet>
      </dependencySets>
      [/snip]

      I see that the tiles-api jar contains an extra dash in its name:
      tiles-api-2.2.2-.jar

      1. assemblybug.zip
        2 kB
        Antonio Petrelli
      2. assembly-dash-classifier-patch.diff
        4 kB
        Antonio Petrelli

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Dennis Lundberg
            Reporter:
            Antonio Petrelli
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development