Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-310

Enable skip overlays from command line

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: 2.4, 2.5
    • Fix Version/s: None
    • Component/s: overlay
    • Labels:
      None
    • Environment:
      N/A

      Description

      Sometimes I need to skip the overlay plugin execution but I don't want to change all my (about one hundred) pom.xml files.

      I've done this modifing Overlay.java class as below:

      private boolean skip = true;

      But I think you could find a more elegant solution such as adding a parameter:

      import org.apache.maven.plugins.annotations.Parameter;
      [...]
      @Parameter( property = "skipOverlays", defaultValue = "false" )
      private boolean skip;

      I've tested this code but for some reason (yes, I know, is my fault) it doesn't work, and unfortunatelly I have no more time to spend in this task.

      Please, don't let my stupidity prevents you to consider this improvement.

      Best Regards,

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                restalion Julio Palma Vázquez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: