Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3927

[regression] Configuration of custom plugin execution using default id pollutes configuration of default plugin executions introduced by packaging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-1
    • 3.0-alpha-3
    • Plugins and Lifecycle
    • None

    Description

      Seems that maven is allowing pom writers to define new values for parameters that a plugin has marked as readOnly. I have attached a pom that overrides the resources parameter in the maven-resources-plugin. This is allowed in 2.0.9, but fails (as it should) in 3.x (see line 89)

      I would've expected to see this error (as i do in 3.x)

      [ERROR]
      ERROR: Cannot override read-only parameter: resources in goal: resources:resources

      Attachments

        1. pom.xml
          5 kB
          Max Powers

        Issue Links

          Activity

            People

              sisbell Britton Isbell
              mpowers Max Powers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: