使用Maven 3.3.3和Sonar Maven插件2.6的ConcurrentModificationException

时间:2015-08-05 10:35:53

标签: java maven sonarqube

Java 7 Maven 3.3.3 声纳插件2.6

[02:41:27][com.company:company] [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project company: null: MojoExecutionException: ConcurrentModificationException -> [Help 1]
[02:41:27][com.company:company] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project company: null
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:189)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
[02:41:27][com.company:company] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[02:41:27][com.company:company] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[02:41:27][com.company:company] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[02:41:27][com.company:company] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[02:41:27][com.company:company] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[02:41:27][com.company:company] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[02:41:27][com.company:company] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[02:41:27][com.company:company] at java.lang.Thread.run(Thread.java:722)
[02:41:27][com.company:company] Caused by: org.apache.maven.plugin.MojoExecutionException
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:41)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:139)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:132)
[02:41:27][com.company:company] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[02:41:27][com.company:company] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[02:41:27][com.company:company] ... 13 more
[02:41:27][com.company:company] Caused by: java.util.ConcurrentModificationException
[02:41:27][com.company:company] at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:394)
[02:41:27][com.company:company] at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:405)
[02:41:27][com.company:company] at org.apache.maven.project.MavenProject.getCompileClasspathElements(MavenProject.java:351)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.MavenProjectConverter.populateLibraries(MavenProjectConverter.java:368)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.MavenProjectConverter.synchronizeFileSystemAndOtherProps(MavenProjectConverter.java:322)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.MavenProjectConverter.merge(MavenProjectConverter.java:223)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.MavenProjectConverter.configureModules(MavenProjectConverter.java:183)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.MavenProjectConverter.configure(MavenProjectConverter.java:113)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.collectProperties(RunnerBootstraper.java:150)
[02:41:27][com.company:company] at org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:130)
[02:41:27][com.company:company] ... 16 more

当Maven退回到3.1时,它开始工作。

Side questiosn: - 有没有办法在不发布stackoverflow的情况下向Sonar提供错误? 无法在http://jira.sonarsource.com/browse/MSONAR

下注册帐户

0 个答案:

没有答案