Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2765 Refactor DefaultPluginManager
  3. MNG-3013

The plugin manager incorrectly caches plugin versions between embedder calls

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-1
    • 3.0-alpha-3
    • Embedding
    • None

    Description

      If you call the embedder once with a project and then change a plugin version in the pom and run the same embedder the old version is used.

      DefaultPluginManager.java lines 386-391 in revision 541121

      https://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java?annotate=536027

      was added in revision 498048
      https://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java?view=diff&r1=498047&r2=498048

      Any problem with removing that if block ?

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              carlos Carlos Sanchez Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: