Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-4554

[regression] plugin updates are requested on every build regardless of policies

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      I'm not sure if this is an intentional change that I've missed or not, but running something like:

      mvn archetype:generate
      

      will retrieve the metadata from the repository on every build:

      Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml
      9 KB downloaded at 17.1 KB/sec
      

      This is in contrast to Maven 2.2.1 which always continues to use the first version encountered until you use -U:

        <pluginRepositories>
          <pluginRepository>
            <releases>
              <updatePolicy>never</updatePolicy>
            </releases>
      

      While that remains in the super POM of Maven 3, it seems that the metadata is retrieved regardless.

        Issue Links

          Activity

          Brett Porter made changes -
          Field Original Value New Value
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Brett Porter made changes -
          Link This issue is related to MNG-4555 [ MNG-4555 ]
          Benjamin Bentmann made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Brett Porter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: