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

Silent failure: <outputFileNameMapping> declared with multiple includes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2-beta-1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      java version "1.5.0_09"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)

      Description

      When attempting to add a dependency to an assembly without unpacking the dependency using the following snippet of assembly, the dependecies are silently ignored:

      <dependencySet>
      <outputDirectory></outputDirectory>
      <outputFileNameMapping></outputFileNameMapping>
      <includes>
      <include>alchemy:alchemy-quant:jar:${os-platform}</include>
      <include>alchemy:alchemy-quant:ctf:${os-platform}</include>
      </includes>
      <unpack>false</unpack>
      <scope>runtime</scope>
      </dependencySet>

      It turns out the above config makes no sense - multiple dependencies match the includes rule, and yet an outputFileNameMapping has been defined, which only makes sense when it matches a single include line.

      In this case a proper error message needs to be thrown to explain that when outputFileNameMapping is present, only one include can be present. Currently assembly succeeds silently while doing nothing, causing much confusion.

        Attachments

          Activity

            People

            • Assignee:
              jdcasey John Dennis Casey
              Reporter:
              minfrin Graham Leggett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: