SonarQube “Class Not Found” during Main AST Scan

前端 未结 3 560
北海茫月
北海茫月 2021-01-03 01:20

My setup:

  • Sonarqube 5.1.1
  • Sonar-Maven Plugin 2.6 (also tried 2.7 and 3.6)
  • JDK 1.7.0_51

Example of the error:

1         


        
3条回答
  •  渐次进展
    2021-01-03 01:35

    According to http://docs.oracle.com/javase/7/docs/api/index.html?javax/annotation/package-summary.html the classes you expect are not part of JDK 7.

    The classes you're looking for are part of google JSR-305 implementation that was initiated here https://code.google.com/p/jsr-305/source/browse/trunk/ri/src/main/java/javax/annotation/Nullable.java?r=24 and which moved to Findbugs:

    
      com.google.code.findbugs
      jsr305
      3.0.0
    
    

    According to https://jcp.org/en/jsr/detail?id=305 the JSR-305 is finished, but is in dormant status and has not been added to a JDK release yet.

    Hope it helps.

提交回复
热议问题