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

plugin dependencies cannot be resolved

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-1
    • Plugins and Lifecycle
    • None

    Description

      Try: deleting ~/.m2/repository/org/codehaus and then build maven-model.

      Somehow plugin dependencies are not resolved; weird that this doesn't occur more often.
      This is because in DefaultPluginManager the verifyPlugin method calls checkRequiredMavenVersion
      with just the PluginArtifactRepositories. The checkRequiredMavenVersion resolves the plugin and/or
      its dependencies but does not have access to the normal artifact repositories, so only plugin repositories
      can be searched for the plugin's dependencies.

      Modified the verifyPlugin method to add the RemoteArtifactRepositories to the list.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              kenney Kenney Westerhof
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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