如果新的"无效的sonar.libraries / IllegalStateException值:没有文件或目录匹配"针对SONARCLIPS 3.5报告缺陷。或者我应该尝试在SonarQube Eclipse插件3.5中重新打开已经修复的缺陷SONARCLIPS-430吗?
在Eclipse Mars(4.5.0)中,当我尝试使用SonarQube Eclipse插件3.5.0.20150804来分析项目时,它失败并显示错误
sonar.libraries的值无效
和异常引起的
IllegalStateException:没有匹配[...]
的文件或目录
根据SONARCLIPS-430,SonarQube Eclipse 3.5解决了这个问题。但我运行3.5并仍然遇到问题。我没有在这个项目中使用Groovy而且SONARCLIPS-430是由关于groovy和SonarQube Eclipse的stackoverflow问题引起的:Sonar Eclipse issue。
此分析中涉及的sonar.libraries(从sonar-project2243985040659442672.properties复制):
sonar.libraries = C:\工具\爪哇\ jdk1.8.0_51 \ JRE \ lib中\ resources.jar,C:\工具\爪哇\ jdk1.8.0_51 \ JRE \ lib中\ rt.jar中,C:\工具\ Java的\ jdk1.8.0_51 \ JRE \ LIB \ jsse.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ LIB \ jce.jar,C:\工具\的Java \ jdk1.8.0_51 \ jre的\ LIB \ charsets.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ LIB \ jfr.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\访问桥-64的.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ cldrdata.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ dnsns.jar,C:\工具\ Java的\ jdk1.8.0_51 \ JRE \ lib中\分机\ jaccess.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ jfxrt.jar,C:\工具\ Java的\ jdk1。 8.0_51 \ JRE \ lib中\分机\ localedata.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ nashorn.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ sunec.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\程序(sunjce_provider.jar),C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ sunmscapi.jar ,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ sunpkcs11.jar,C:\工具\的Java \ jdk1.8.0_51 \ JRE \ lib中\分机\ zipfs.jar,C是:/ dev / prodtrunk / someProduct / PhysView / PhysViewApi /目标/类,C是:/ dev / prodtrunk / someProduct /配置/ Configurati onStructure /目标/类,C是:/ dev / prodtrunk / someProduct /配置/ ConfigurationStructure /目标/测试类,C:\ mvnrepo \的junit \的junit \ 4.12 \的junit-4.12.jar,C:\ mvnrepo \有机\ hamcrest \ hamcrest芯\ 1.3 \ hamcrest核-1.3.jar,C:\ mvnrepo \ log4j的\ log4j的\ 1.2.17 \ log4j的-1.2.17.jar,C:\ mvnrepo \有机\ OSGi的\ org.osgi.compendium \ 5.0.0 \ org.osgi.compendium-5.0.0.jar,C:\ mvnrepo \有机\的OSGi \ org.osgi.core \ 5.0.0 \ org.osgi.core-5.0.0.jar,C: /dev/prodtrunk/someProduct/DeviceStructure/target/classes,C:/dev/prodtrunk/someProduct/DeviceStructure/target/test-classes,C:\mvnrepo\org\slf4j\slf4j-api\1.6.6\slf4j-api -1.6.6.jar,C是:/ dev / prodtrunk / JavaCommon /目标/类,C是:/ dev / prodtrunk / JavaCommon /目标/测试类,C:\ mvnrepo \的jython \的jython \ 2.1 \的jython-2.1。罐子,C:\ mvnrepo \公地编解码器\公地编解码器\ 1.7 \公地编解码器-1.7.jar,C:\ mvnrepo \共享记录\共享记录\ 1.1.1 \共享记录-1.1.1。罐子,C:\ mvnrepo \公地-CLI \公地-CLI \ 1.0 \公地-CLI-1.0.jar,C是:/ dev / prodtrunk / someProduct /记录/记录/目标/类,C:\ mvnrepo \共同S-郎\公地琅\ 2.5 \公地琅-2.5.jar,C:\ mvnrepo \公地集合\公地集合\ 3.2.1 \公地集合-3.2.1.jar,C:\ mvnrepo \有机\ EasyMock的\ EasyMock的\ 3.3.1 \ EasyMock的-3.3.1.jar,C:\ mvnrepo \ CGLIB \ CGLIB \ 3.1 \ CGLIB-3.1.jar,C:\ mvnrepo \有机\ OW2 \ ASM \ ASM \ 5.0。 3 \ ASM-5.0.3.jar,C:\ mvnrepo \有机\ objenesis \ objenesis \ 2.1 \ objenesis-2.1.jar,C是:/ dev / prodtrunk / someProduct / someProductCommon /目标/类,C:\ mvnrepo \有机\ knopflerfish \束\桌面\ 5.0.1 \桌面5.0.1.jar,C:\ mvnrepo \ COM \ somecompany \ someproduct \ ActionProcessing \ 7.0.0.0-SNAPSHOT \ ActionProcessing-7.0.0.0-SNAPSHOT.jar,C:的/ dev / prodtrunk / someProduct / CircuitManagement / CircuitStructure /目标/类,C是:/ dev / prodtrunk / someProduct / CircuitManagement / CircuitStructure /目标/测试类,C是:/ dev / prodtrunk / someProduct / JavaCommon_Bundle /目标/类,C :\ mvnrepo \有机\冬眠\冬眠-envers \ 3.6.4.Final \冬眠-envers-3.6.4.Final.jar,C:\ mvnrepo \有机\休眠\冬眠核\ 3.6.4.Final \休眠-core-3.6.4.Final.jar,C:\ mvnrepo \ ANTLR \ ANTLR \ 2.7.6 \一个ntlr-2.7.6.jar,C:\ mvnrepo \ DOM4J \ DOM4J \ 1.6.1 \ DOM4J-1.6.1.jar,C:\ mvnrepo \的javax \交易\ JTA \ 1.1 \ JTA-1.1.jar,C: \ mvnrepo \组织\休眠\冬眠公地的注解\ 3.2.0.Final \冬眠公地的注解 - 3.2.0.Final.jar,C:\ mvnrepo \组织\休眠\冬眠-的EntityManager \ 3.6.4。最终\休眠-的EntityManager-3.6.4.Final.jar,C:\ mvnrepo \ CGLIB \ CGLIB \ 2.2 \ CGLIB-2.2.jar,C:\ mvnrepo \ ASM \ ASM \ 3.1 \ ASM-3.1.jar,C: \ mvnrepo \ Javassist是\ Javassist是\ 3.12.0.GA \ Javassist进行-3.12.0.GA.jar,C:\ mvnrepo \组织\休眠\冬眠的工具\ 3.2.0.ga \冬眠的工具 - 3.2.0。 ga.jar,C:\ mvnrepo \有机\ beanshell中\ BSH \ 2.0b4 \ BSH-2.0b4.jar,C:\ mvnrepo \的freemarker \的freemarker \ 2.3.8 \的freemarker-2.3.8.jar,C:\ mvnrepo \有机\休眠\ jtidy \ r8-20060801 \ jtidy-r8-20060801.jar,C:\ mvnrepo \有机\休眠\的javax \持久\冬眠-JPA-2.0-API \ 1.0.0.Final \冬眠-jpa- 2.0-API-1.0.0.Final.jar,C是:/ dev / prodtrunk / someProduct / DatabaseCommon /目标/类,C是:/ dev / prodtrunk / someProduct / LegacyCommunicationsApi /目标/类,C是:/ dev / prodtrunk / someProduct /自动化/ A utomation共用/目标/类,C是:/ dev / prodtrunk / someProduct / DSLink_bundle /目标/类,C:\ mvnrepo \有机\ IOT-DSA \ DSLink的\ 0.8.0 \ DSLink的-0.8.0.jar,C: \ mvnrepo \有机\ IOT-DSA \记录\ 0.8.0 \测井0.8.0.jar,C:\ mvnrepo \有机\ IOT-DSA \ runtime_shared \ 0.8.0 \ runtime_shared-0.8.0.jar,C: \ mvnrepo \ IO \ vertx \ vertx核\ 2.1.5 \ vertx核-2.1.5.jar,C:\ mvnrepo \ COM \ fasterxml \杰克逊\芯\杰克逊 - 数据绑定\ 2.2.2 \杰克逊 - databind- 2.2.2.jar,C:\ mvnrepo \ COM \ fasterxml \杰克逊\芯\杰克逊 - 注解\ 2.2.2 \杰克逊 - 注解-2.2.2.jar,C:\ mvnrepo \ COM \ fasterxml \杰克逊\芯\杰克逊芯\ 2.2.2 \杰克逊 - 核 - 2.2.2.jar,C:\ mvnrepo \ IO \网状\网状-所有\ 4.0.21.Final \网状-全4.0.21.Final.jar,C :\ mvnrepo \ COM \博伊斯特\ jcommander \ 1.48 \ jcommander-1.48.jar,C:\ mvnrepo \有机\ BouncyCastle的\ bcprov-jdk15on \ 1.51 \ bcprov-jdk15on-1.51.jar,C是:/ dev / prodtrunk / someProduct / someProductSystem / someProductSystemApi /目标/类,C是:/ dev / prodtrunk / PersistenceService / PersistenceService /目标/类,C是:/ dev / prodtrunk / PersistenceService / PersistenceService /目标/测试类,C是:/ dev / prodtrunk / ServiceManagement / ServiceManagement /目标/类,C是:/ dev / prodtrunk / SecretStuff / SecretStuff /目标/类,C是:/ dev / prodtrunk / SecretStuff / SecretStuff /目标/测试 - 类,C:\ mvnrepo \ COM \ somecompany \ someproduct \通信\通信\ 7.0.0.0-SNAPSHOT \通信7.0.0.0-SNAPSHOT.jar,C:\ mvnrepo \有机\ jacorb \ jacorb \ 3.1 \ jacorb-3.1。罐子,C:\ mvnrepo \ tanukisoft \包装\ 3.5.4 \包装-3.5.4.jar,C:\ mvnrepo \ COM \太阳\ XML \绑定\ JAXB的IMPL \ 2.1.5 \ JAXB-implement执行-2.1。 5.jar,C:\ mvnrepo \的javax \ XML \绑定\ JAXB-API \ 2.1 \ JAXB-API-2.1.jar,C:\ mvnrepo \的javax \激活\激活\ 1.1 \激活-1.1.jar,C: \ mvnrepo \的javax \ XML \流\ STAX-API \ 1.0-2 \ STAX-API-1.0-2.jar,C:\ mvnrepo \有机\ SLF4J \ SLF4J-log4j12 \ 1.6.6 \ SLF4J-log4j12-1.6。 6.jar,C是:/ dev / prodtrunk / someProduct /故障/ FaultServiceApi /目标/类,C是:/ dev / prodtrunk / someProduct /持久性/目标/类,C:\ mvnrepo \有机\ knopflerfish \束\ remoteserviceadmin-API \ 1.0.0 \ remoteserviceadmin-API-1.0.0.jar,C:\ mvnrepo \的javax \的servlet \ servlet的API \ 2.4 \ servlet的AP I-2.4.jar,C是:/ dev / prodtrunk / someProduct /自动化/自动化服务/目标/类,C是:/ dev / prodtrunk / someProduct /自动化/自动化服务/目标/测试类,C是:/ dev /prodtrunk/someProduct/Configuration/ConfigurationManagement/target/classes,C:\mvnrepo\org\hibernate\hibernate-c3p0\3.6.4.Final\hibernate-c3p0-3.6.4.Final.jar,C:\mvnrepo\c3p0 \ C3P0 \ 0.9.1 \ c3p0-0.9.1.jar,C是:/ dev / prodtrunk / someProduct /休眠/目标/类,C:\ mvnrepo \有机\的PostgreSQL \的PostgreSQL \ 9.2-1003-jdbc4 \的PostgreSQL-9.2 -1003-jdbc4.jar,C:\ mvnrepo \的MySQL \ MySQL的连接器的Java \ 5.1.12 \ MySQL的连接器的Java-5.1.12.jar,C:\ mvnrepo \有机\ Codehaus的\常规\ Groovy的所有\ 2.0.2 \ Groovy的全2.0.2.jar,C是:/ dev / prodtrunk / someProduct / LegacyCommunications /目标/类,C是:/ dev / prodtrunk / someProduct / LegacyCommunications /目标/测试类,C:/开发/ prodtrunk / someProduct / PanelManager /目标/类,C是:/ dev / prodtrunk / someProduct / PanelManager /目标/测试类,C:\ mvnrepo \有机\ knopflerfish \束\控制台\ 4.0.1 \控制台4.0。 1.jar,C:\ mvnrepo \组织\ knopflerfish \登录API \ 5.0.0 \日志-API-5.0.0.jar,C是:/ dev / prodtrunk / someProduct /用户/ UserServiceApi /目标/类,C是:/ dev / prodtrunk / someProduct / TerminalArbitration / terminalarbitration共用/目标/类,C是:/ dev / prodtrunk / someProduct / SecretStuffService /目标/类,C:\ mvnrepo \ COM \ eclipsesource \ JAXRS \出版商\ 5.0 \出版商-5.0.jar,C:\ mvnrepo \ COM \ eclipsesource \ JAXRS \ Jersey的所有\ 2.18 \ Jersey的全2.18.jar
发出的完整异常是
08:57:06.276 ERROR - Invalid value of sonar.libraries for com.somecompany.someproduct.physview:PhysViewImpl
Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)
at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)
Caused by: java.lang.IllegalStateException: No files nor directories matching 'C:/dev/prodtrunk/someProduct/Configuration/ConfigurationStructure/target/test-classes' in directory C:\dev\prodtrunk\someProduct\PhysView\PhysViewImpl
at org.sonar.batch.scan.ProjectReactorBuilder.validateDirectories(ProjectReactorBuilder.java:302)
at org.sonar.batch.scan.ProjectReactorBuilder.defineProject(ProjectReactorBuilder.java:131)
at org.sonar.batch.scan.ProjectReactorBuilder.execute(ProjectReactorBuilder.java:114)
at org.sonar.batch.scan.ProjectScanContainer.projectBootstrap(ProjectScanContainer.java:114)
at org.sonar.batch.scan.ProjectScanContainer.doBeforeStart(ProjectScanContainer.java:92)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:90)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:64)
at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:51)
at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:110)
at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:185)
at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
... 6 more
答案 0 :(得分:2)