org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found

JFrog JIRA | Jörg Hohwiller | 10 years ago
  1. 0

    With artifactory it is pretty easy to deploy a JAR into the repository via the web-ui. However it seems to me that the maven-metadata.xml is generated incorrect. Additionally there seems no easy way to fix this: I can NOT modify the maven-metadata.xml. In such cases it seems to be easier to have a plain apache webserver with mod_dav as repository. I have put a SNAPSHOT version of a plugin (org.codehaus.mojo:cobertura-maven-plugin:2.2-SNAPSHOT) into artifactory and now when I call maven again on my project, it fails with the message: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found This only happens when my artifactory repository is added to the list of repositories. The file /home/build/.m2/repository/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata-artifactory.xml looks like this: <?xml version="1.0" encoding="UTF-8"?><metadata> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.2-SNAPSHOT</version> <versioning> <versions> <version>2.2-SNAPSHOT</version> </versions> <lastUpdated>20070404083252</lastUpdated> </versioning> </metadata> To me it seems that the maven-metadata.xml is missing the tags <latest> and/or <release> Do you agree or have I missed something? The full stacktrace of maven is: [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1326) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:662) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:642) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReportPluginVersion(DefaultPluginVersionManager.java:97) at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:509) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1297) ... 19 more

    JFrog JIRA | 10 years ago | J??rg Hohwiller
    org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found
  2. 0

    With artifactory it is pretty easy to deploy a JAR into the repository via the web-ui. However it seems to me that the maven-metadata.xml is generated incorrect. Additionally there seems no easy way to fix this: I can NOT modify the maven-metadata.xml. In such cases it seems to be easier to have a plain apache webserver with mod_dav as repository. I have put a SNAPSHOT version of a plugin (org.codehaus.mojo:cobertura-maven-plugin:2.2-SNAPSHOT) into artifactory and now when I call maven again on my project, it fails with the message: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found This only happens when my artifactory repository is added to the list of repositories. The file /home/build/.m2/repository/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata-artifactory.xml looks like this: <?xml version="1.0" encoding="UTF-8"?><metadata> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.2-SNAPSHOT</version> <versioning> <versions> <version>2.2-SNAPSHOT</version> </versions> <lastUpdated>20070404083252</lastUpdated> </versioning> </metadata> To me it seems that the maven-metadata.xml is missing the tags <latest> and/or <release> Do you agree or have I missed something? The full stacktrace of maven is: [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1326) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:662) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:642) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReportPluginVersion(DefaultPluginVersionManager.java:97) at org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:509) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1297) ... 19 more

    JFrog JIRA | 10 years ago | Jörg Hohwiller
    org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found
  3. 0

    org.codehaus.mojo:cobertura-maven-plugin does not exist or no valid version

    Stack Overflow | 3 years ago | BlueDolphin
    org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [BUILD] trunk: Failed for Revision: 726389

    geronimo-dev | 8 years ago | gawor@apache.org
    org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.geronimo.genesis.plugins:tools-maven-plugin' does not exist or no valid version could be found
  6. 0

    [BUILD] trunk: Failed for Revision: 726333

    geronimo-dev | 8 years ago | gawor@apache.org
    org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.geronimo.genesis.plugins:tools-maven-plugin' does not exist or no valid version could be found

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.plugin.version.PluginVersionNotFoundException

      The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not exist or no valid version could be found

      at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion()
    2. Maven Core
      DefaultPluginVersionManager.resolveReportPluginVersion
      1. org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:228)
      2. org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReportPluginVersion(DefaultPluginVersionManager.java:97)
      2 frames
    3. Maven Plugin
      DefaultPluginManager.verifyReportPlugin
      1. org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:509)
      1 frame
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1297)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:662)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:642)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:517)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
      7. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      8. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      9. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      10. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
      11. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
      11 frames
    5. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames