Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-591

Empty classifier in dependency causes extra dash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • 2.4
    • None
    • 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

      Attachments

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

        Activity

          People

            dennisl@apache.org Dennis Lundberg
            apetrelli Antonio Petrelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: