org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar


Solutions on the web

Solution icon of coderanch
via Coderanch by sandeep mathur, 10 months ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Jarle Hjortland, 6 months ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Freddy Mallet, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Christian Breuer, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Ivar Grimstad, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Cyrille Lebec, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Mik Quinlan, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by Reynald Borer, 1 year ago
Can not execute Sonar

Solution icon of sonarsource
via SonarSource JIRA by claudio di giovanni, 1 year ago
Can not execute Sonar

Solution icon of stackoverflow
Can not execute Sonar

Stack trace

org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	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: Can not execute Sonar
	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:103)
	at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
	at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 17 more
Caused by: java.lang.NullPointerException
	at org.sonar.plugins.php.phpunit.PhpUnitCoverageResultParser.parseFile(PhpUnitCoverageResultParser.java:125)
	at org.sonar.plugins.php.phpunit.PhpUnitCoverageResultParser.parse(PhpUnitCoverageResultParser.java:95)
	at org.sonar.plugins.php.phpunit.PhpUnitSensor.analyse(PhpUnitSensor.java:74)
	at org.sonar.batch.SensorsExecutor.execute(SensorsExecutor.java:58)
	at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59)
	at org.sonar.batch.Batch.analyzeProject(Batch.java:120)
	at org.sonar.batch.Batch.analyzeProjects(Batch.java:83)
	at org.sonar.batch.Batch.execute(Batch.java:58)
	at org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:142)
	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:133)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
	... 21 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.