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

Better Validation of Assembly Descriptors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      Running 'assembly:assembly' from the command line produces

      [ERROR] BUILD FAILURE
      [INFO] ------------------
      [INFO] The assembly id null is used more than once.

      The same descriptor can be used successfully via 'assembly:attached', either via the command line or within a maven build lifecycle. The descriptor doesn't specify <id>assembly-name</id>.

      Per John Casey on users@continuum.apache.org, "it looks like we need to improve the validation of descriptors. None of the assembly mojos should really work without an assembly id".

      Descriptor validation should be improved, with self-explanatory error messages when the validation fails.

        Attachments

          Activity

            People

            • Assignee:
              jdcasey John Dennis Casey
              Reporter:
              bsharper Brad Harper
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: