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

Unable to resolve Dashboard mojo from Central


    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.9
    • Fix Version/s: None
    • Component/s: Sites & Reporting
    • Labels:
    • Environment:
      Windows, JDK 1.6


      I have a simple test project that declares the dashboard-maven-plugin (see http://mojo.codehaus.org/dashboard-maven-plugin/usage.html ).

      Note that the usage does explicitly state that the Codehaus repository must be specified as a plugin repository...
      However, according to: http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html
      I'm pretty sure that Maven should be able to resolve the dashboard-maven-plugin from the central repo.

      I validated that the dashboard-maven-plugin residing in central is indeed the same artifact as that which lives at the codehaus repository.

      But as you can see from my attached test case, the codehaus mojo is NOT being resolved without the special plugin repository defined. When running

      mvn dashboard:dashboard

      , I get the following error message:

      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'dashboard'.
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] The plugin 'org.apache.maven.plugins:maven-dashboard-plugin' does not exist or no valid version could be found
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Sat Jan 24 12:40:55 PST 2009
      [INFO] Final Memory: 1M/254M
      [INFO] ------------------------------------------------------------------------

      If you edit the pom.xml to uncomment out the plugin repository declaration for codehaus, it works as one would expect.

      My understanding is that the only reason why the Dashboard Usage mentions their plugin repository is because the artifact was not available on the central repository – but it certainly is today.

      I also thought that perhaps the maven-metadata.xml might be incorrect (perhaps the dashboard plugin prefix is missing or different). I checked:

      and they both look OK to me... I clearly see:

          <name>Maven Dashboard Report Plugin</name> 

      And I don't see any plugin with a dashboard prefix specified as an Apache Maven Plugin here:

      If I explicitly specify the dashboard plugin like:

      mvn org.codehaus.mojo:dashboard-maven-plugin:dashboard

      that works...

      Overall, I am recording a bug because the documentation states:

      Maven will always search the following groupId's after searching any plugin groups specified in the user's settings:

      • org.apache.maven.plugins
      • org.codehaus.mojo

      I don't see this being done.

      Finally, I even tried adding a pluginGroups to my settings.xml:


      But that did not work either...


        1. dashbug.zip
          3 kB
          Anthony Whitford



            • Assignee:
              awhitford Anthony Whitford
            • Votes:
              17 Vote for this issue
              12 Start watching this issue


              • Created: