Sonar 3.5.1 不适用于 Java 8 和带有 war 文件的 Maven 3.3.9

Sonar 3.5.1 not working for Java 8 and maven 3.3.9 with war file

我们正在将现有项目升级到 java 8 和 maven 3.3.9 我们有声纳 3.5.1,虽然最新版本的声纳可用我们不想更新声纳,因为我们已经做了一些声纳 3.5.1 中的自定义。

Main thing is that we deploy sonar war in the same tomcat where we have deployed our project but in new sonar versions war folder is deleted and they have provided separate sonar server which we don't want.

所以请帮我 运行 声纳 3.5.1 或告诉我如何制作 war 最新的声纳版本并将其部署在我自己的 tomcat 中。我从最近两天开始尝试这个,并用不同的版本进行了测试,但没有成功。使用声纳 3.5.1 时,我们得到以下错误

   [INFO] Sonar version: 3.5.1 
   [INFO] ------------------------------------------------------------------------ 
   [INFO] BUILD FAILURE 
   [INFO] ------------------------------------------------------------------------ 
   [INFO] Total time: 3.007 s 
   [INFO] Finished at: 2017-04-26T23:47:34+05:30 
   [INFO] Final Memory: 24M/218M 
   [INFO]  ------------------------------------------------------------------------ 
   [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project app25apr1: Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar failed: A required class was missing while executing org.codehaus.mojo:sonar-maven-plugin:2.0:sonar: org/sonatype/aether/graph/DependencyFilter 
   [ERROR]  ----------------------------------------------------- 
   [ERROR] realm =    plugin>org.codehaus.mojo:sonar-maven-plugin:2.0 
   [ERROR] strategy =   org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy 
   [ERROR] urls[0] =   file:/home/ist/innoeye/headStart8Repository/org/codehaus/mojo/sonar-maven-plugin/2.0/sonar-maven-plugin-2.0.jar
   [ERROR] urls[1] =   file:/home/ist/innoeye/headStart8Repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
   [ERROR] urls[2] =   file:/home/ist/innoeye/headStart8Repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
   [ERROR] urls[3] =   file:/home/ist/innoeye/headStart8Repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
   [ERROR] urls[4] =   file:/home/ist/innoeye/headStart8Repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
   [ERROR] urls[5] =   file:/home/ist/innoeye/headStart8Repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
   [ERROR] urls[6] =   file:/home/ist/innoeye/headStart8Repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
   [ERROR] urls[7] =   file:/home/ist/innoeye/headStart8Repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
   [ERROR] urls[8] =   file:/home/ist/innoeye/headStart8Repository/org/codehaus/plexus/plexus-utils/2.0.4/plexus-utils-2.0.4.jar
   [ERROR] Number of foreign imports: 1 
   [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] 
   [ERROR]  
   [ERROR]  -----------------------------------------------------: org.sonatype.aether.graph.DependencyFilter

声纳 3.5.1 已经 4 岁了。我强烈建议使用最新的 LTS (5.6.6),它与 ​​Java 8 和 maven 3.3.9 一起工作。

如果你因为自定义而不想升级,不知道你能不能分析你的项目。