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

Ability to ignore errors about no files to package in assembly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • None
    • None
    • None

    Description

      Motivation: Having extremely large multi-module project, some modules lets call them "application" modules provide "configuration" files, and they provide them for different environments. Problem is that not all "application" modules provide "configuration" files for all environments. In case there are no files available for assembly, the single goal ends up with ERROR:

      Failed to
      create assembly: Error creating assembly archive <assembly_name>: You must set at least one file.

      Available workaround is to specify a property to by default skip the assembly execution and only if there are files for given environment set this property to not skip the given assembly execution.

      However for large number of environments this solution starts to be messy and hard to maintain.

      Do you think that having assembly Parameter "ignoreNoFiles" that will cause to skip the archive creation for cases there are no files to package seems like reasonable solution?

      Attachments

        Activity

          People

            Unassigned Unassigned
            vehovmar Martin Vehovský
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified