Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-333

The maven plugin does not work with maven 2.0.10-RC4

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: Maven Plugin
    • Labels:
      None

      Description

      Trying to execute sonar on the project samples/main-sample with maven 2.0.10RC4:

      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).
      
      
      Project ID: org.sonar.samples:main-sample
      POM Location: /Users/sbrandhof/projects/sonar/svn/trunk/samples/main-sample/${project.basedir}/target/sonar/sonar-pom.xml
      
      Reason: Resolving expression: '${project.basedir}': Detected the following recursive expression cycle: [] for project org.sonar.samples:main-sample at /Users/sbrandhof/projects/sonar/svn/trunk/samples/main-sample/${project.basedir}/target/sonar/sonar-pom.xml
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Cannot read the sonar-pom.xml
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:603)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:532)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:502)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:350)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:247)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:162)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
      	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.MojoExecutionException: Cannot read the sonar-pom.xml
      	at ch.hortis.sonar.mvn.SonarMojo.saveSonarPom(SonarMojo.java:204)
      	at ch.hortis.sonar.mvn.SonarMojo.saveExecutedProjects(SonarMojo.java:221)
      	at ch.hortis.sonar.mvn.SonarMojo.executeMaven(SonarMojo.java:244)
      	at ch.hortis.sonar.mvn.SonarMojo.executeGoals(SonarMojo.java:231)
      	at ch.hortis.sonar.mvn.SonarMojo.execute(SonarMojo.java:116)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:466)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:578)
      	... 16 more
      Caused by: org.apache.maven.project.InvalidProjectModelException: Resolving expression: '${project.basedir}': Detected the following recursive expression cycle: [] for project org.sonar.samples:main-sample at /Users/sbrandhof/projects/sonar/svn/trunk/samples/main-sample/${project.basedir}/target/sonar/sonar-pom.xml
      	at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:884)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:227)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:357)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:345)
      	at ch.hortis.sonar.mvn.SonarMavenEmbedder.readProjectWithDependencies(SonarMavenEmbedder.java:109)
      	at ch.hortis.sonar.mvn.SonarMojo.saveSonarPom(SonarMojo.java:200)
      	... 22 more
      Caused by: org.apache.maven.project.interpolation.ModelInterpolationException: Resolving expression: '${project.basedir}': Detected the following recursive expression cycle: []
      	at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.java:252)
      	at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.java:157)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:997)
      	at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
      	... 28 more
      Caused by: org.codehaus.plexus.interpolation.InterpolationException: Resolving expression: '${project.basedir}': Detected the following recursive expression cycle: []
      	at org.codehaus.plexus.interpolation.RegexBasedInterpolator.interpolate(RegexBasedInterpolator.java:210)
      	at org.codehaus.plexus.interpolation.RegexBasedInterpolator.interpolate(RegexBasedInterpolator.java:227)
      	at org.codehaus.plexus.interpolation.RegexBasedInterpolator.interpolate(RegexBasedInterpolator.java:179)
      	at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.java:248)
      	... 31 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8 seconds
      [INFO] Finished at: Mon Aug 04 09:52:35 CEST 2008
      [INFO] Final Memory: 5M/29M
      [INFO] ------------------------------------------------------------------------
      
      
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              simon.brandhof Simon Brandhof
              Reporter:
              simon.brandhof Simon Brandhof
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: