jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Archiva
  • MRM-641

mvn cobertura:cobertura does not work with Archiva repository set as mirror

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Archiva is running on a Tomcat 6.0.14 with default setup.
    I've also tried it on a Tomcat 5.5.25 with the same result.

Description

mvn cobertura:cobertura does not work with Archiva repository set as mirror.

$ mvn cobertura:cobertura
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cobertura'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-cobertura-plugin: checking for updates from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-cobertura-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: 2 seconds
[INFO] Finished at: Thu Dec 20 16:19:17 GMT 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    output1.log
    20/Dec/07 12:13 PM
    4 kB
    Henrik Schmidt
  2. Text File
    output2.log
    20/Dec/07 12:14 PM
    66 kB
    Henrik Schmidt
  3. XML File
    settings.xml
    20/Dec/07 12:26 PM
    0.3 kB
    Henrik Schmidt

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRM-734 Unable to update metadata - No versions found for reference

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Wendy Smoak added a comment - 20/Dec/07 10:57 AM

Try adding -U to your command line to force updates. (Also try with -e or -X to get more output.)

Watch the Archiva logs while this is happening to see whether a request comes in.

Maven's default update policy is 'daily', so if it failed once to download the plugin, it will not try again until tomorrow.

Show
Wendy Smoak added a comment - 20/Dec/07 10:57 AM Try adding -U to your command line to force updates. (Also try with -e or -X to get more output.) Watch the Archiva logs while this is happening to see whether a request comes in. Maven's default update policy is 'daily', so if it failed once to download the plugin, it will not try again until tomorrow.
Hide
Permalink
Henrik Schmidt added a comment - 20/Dec/07 12:12 PM - edited

The Archiva logs do not record a request coming in.

Steps to reproduce:
$ mvn archetype:create -DgroupId=some.namespace -DartifactId=myproject -DarchetypeArtifactId=maven-archetype-quickstart
$ cd myproject/
$ mvn -U -X -e cobertura:cobertura >output1.log
$ rm ~/.m2/settings.xml
$ mvn -U -X -e cobertura:cobertura >output2.log

output logs attached

Show
Henrik Schmidt added a comment - 20/Dec/07 12:12 PM - edited The Archiva logs do not record a request coming in. Steps to reproduce: $ mvn archetype:create -DgroupId=some.namespace -DartifactId=myproject -DarchetypeArtifactId=maven-archetype-quickstart $ cd myproject/ $ mvn -U -X -e cobertura:cobertura >output1.log $ rm ~/.m2/settings.xml $ mvn -U -X -e cobertura:cobertura >output2.log output logs attached
Hide
Permalink
Henrik Schmidt added a comment - 20/Dec/07 12:13 PM

output with settings.xml pointing to Archiva mirror

Show
Henrik Schmidt added a comment - 20/Dec/07 12:13 PM output with settings.xml pointing to Archiva mirror
Hide
Permalink
Henrik Schmidt added a comment - 20/Dec/07 12:14 PM

output with settings.xml removed (it now works)

Show
Henrik Schmidt added a comment - 20/Dec/07 12:14 PM output with settings.xml removed (it now works)
Hide
Permalink
Henrik Schmidt added a comment - 20/Dec/07 12:26 PM

Client settings.xml

Show
Henrik Schmidt added a comment - 20/Dec/07 12:26 PM Client settings.xml
Hide
Permalink
Henrik Schmidt added a comment - 26/Dec/07 1:51 PM

Workaround:

Use fully qualified plugin-name

$ mvn org.codehaus.mojo:cobertura-maven-plugin:cobertura

Show
Henrik Schmidt added a comment - 26/Dec/07 1:51 PM Workaround: Use fully qualified plugin-name $ mvn org.codehaus.mojo:cobertura-maven-plugin:cobertura
Hide
Permalink
Brett Porter added a comment - 25/Mar/08 9:07 AM

fixed in 1.0.2

Show
Brett Porter added a comment - 25/Mar/08 9:07 AM fixed in 1.0.2

People

  • Assignee:
    Brett Porter
    Reporter:
    Henrik Schmidt
Vote (1)
Watch (2)

Dates

  • Created:
    20/Dec/07 10:27 AM
    Updated:
    25/Mar/08 9:07 AM
    Resolved:
    25/Mar/08 9:07 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.