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)
  • Sonar
  • SONAR-724

cannot execute clover2:instrument 'target/sonar/pom.xml' does not exist

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7
  • Fix Version/s: 1.8
  • Component/s: Maven Plugin
  • Labels:
    None
  • Environment:
    Java 1.6_10, Maven 2.1.0, Sonar 1.7, MySQL 5, Ubuntu Server

Description

When running Sonar 1.7 Maven plugin configured wih Clover2 the following error ocurres:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:jar' -->
[DEBUG]   (s) addDefaultSpecificationEntries = true
[DEBUG]   (s) addDefaultImplementationEntries = true
[DEBUG]   (s) manifest = org.apache.maven.archiver.ManifestConfiguration@e91a77
[DEBUG]   (f) archive = org.apache.maven.archiver.MavenArchiveConfiguration@1c89df9
[DEBUG]   (f) classesDirectory = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover/classes
[DEBUG]   (f) defaultManifestFile = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover/classes/META-INF/MANIFEST.MF
[DEBUG]   (f) finalName = maven-executor-1.0-beta-2-SNAPSHOT-clover
[DEBUG]   (f) forceCreation = false
[DEBUG]   (f) outputDirectory = /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/clover
[DEBUG]   (f) project = MavenProject: com.marvelution.maven.components:maven-executor:1.0-beta-2-SNAPSHOT @ /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml
[DEBUG]   (f) useDefaultManifestFile = false
[DEBUG] -- end configuration --
[INFO] [jar:jar]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument

Embedded error: Error assembling JAR
/marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml isn't a file.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        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:597)
        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.MojoExecutionException: Cannot execute the command com.atlassian.maven.plugins:maven-clover2-plugin::instrument
        at org.sonar.maven.SonarMojo.executeMaven(SonarMojo.java:294)
        at org.sonar.maven.SonarMojo.executeGoals(SonarMojo.java:256)
        at org.sonar.maven.SonarMojo.execute(SonarMojo.java:115)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 16 more
Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1168)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1009)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:627)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:151)
        at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:115)
        at org.sonar.maven.SonarMojo.executeMaven(SonarMojo.java:291)
        ... 20 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling JAR
        at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:225)
        at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:237)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        ... 32 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: /marvelution/ci-data/hudson/jobs/Maven-components/workspace/maven-components/maven-executor/target/sonar/pom.xml isn't a file.
        at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:300)
        at org.codehaus.plexus.archiver.AbstractArchiver.addFile(AbstractArchiver.java:292)
        at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:338)
        at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:218)
        ... 35 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38 seconds
[INFO] Finished at: Mon Mar 30 19:57:24 CEST 2009
[INFO] Final Memory: 12M/254M
[INFO] ------------------------------------------------------------------------

There is a pom file in the target/sonar directory, but it is named sonar-pom.xml.

With Cobertura the sonar plugin runs without any errors.

Clover2 gives no errors when running outside the Sonar plugin.

Issue Links

relates to

Improvement - An improvement or enhancement to an existing feature or task. SONAR-725 Upgrade to Clover 2.5

  • Critical - Crashes, loss of data, severe memory leak.
  • 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
Freddy Mallet added a comment - 30/Mar/09 2:19 PM

Mark, could you give a try with Sonar 1.8M1 to see if the issue still exists with all the refactoring done on the Sonar Maven plugin ?

Thanks,
Freddy

Show
Freddy Mallet added a comment - 30/Mar/09 2:19 PM Mark, could you give a try with Sonar 1.8M1 to see if the issue still exists with all the refactoring done on the Sonar Maven plugin ? Thanks, Freddy
Hide
Permalink
Mark Rekveld added a comment - 30/Mar/09 3:04 PM

Hi Freddy,

Thank you for your fast reply.

I have just tried version 1.8M1. In this version the clover plugin works.
Only it doesn't use the Clover2 version I specified in my pom (2.4.3) but keeps using 2.3.2.

Greets,
Mark

Show
Mark Rekveld added a comment - 30/Mar/09 3:04 PM Hi Freddy, Thank you for your fast reply. I have just tried version 1.8M1. In this version the clover plugin works. Only it doesn't use the Clover2 version I specified in my pom (2.4.3) but keeps using 2.3.2. Greets, Mark
Hide
Permalink
Freddy Mallet added a comment - 30/Mar/09 3:20 PM

Mark, I fix this issue on version 1.8 and I've created a new ticket SONAR-275 to migrate to Clover Maven plugin 2.4.3.

Show
Freddy Mallet added a comment - 30/Mar/09 3:20 PM Mark, I fix this issue on version 1.8 and I've created a new ticket SONAR-275 to migrate to Clover Maven plugin 2.4.3.
Hide
Permalink
Mark Rekveld added a comment - 30/Mar/09 3:22 PM

Hi Freddy,

Looking forward to the new release.

And thanks again.

Greets,
Mark

Show
Mark Rekveld added a comment - 30/Mar/09 3:22 PM Hi Freddy, Looking forward to the new release. And thanks again. Greets, Mark

People

  • Assignee:
    Unassigned
    Reporter:
    Mark Rekveld
Vote (0)
Watch (0)

Dates

  • Created:
    30/Mar/09 12:59 PM
    Updated:
    30/Mar/09 3:22 PM
    Resolved:
    30/Mar/09 3:20 PM
  • 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.