SonarQube Community 10.2.1 和 sonarqube-community-branch-plugin 1.14.0 问题

问题描述 投票:0回答:1

大家好,我正在尝试将 sonarqube-community-branch-plugin 1.14.0 插件与 sonarqube Community 10.2.1 一起使用。我按照此处文档中的安装步骤进行操作: 这里

但是当我尝试运行它时,出现以下错误:

\temp\sq-process8801222574988639052properties
19:28:19.432 [main] INFO com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent -- Loading agent
19:28:19.439 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent -- Transforming class org.sonar.server.almsettings.MultipleAlmFeature
19:28:19.458 [main] ERROR com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent -- Could not transform class org.sonar.server.almsettings.MultipleAlmFeature, will use default class definition
javassist.NotFoundException: isEnabled(..) is not found in org.sonar.server.almsettings.MultipleAlmFeature
        at javassist.CtClassType.getDeclaredMethod(CtClassType.java:1356)
        at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent.lambda$redefineIsEnabledFlag$2(CommunityBranchAgent.java:107)
        at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent$1.transform(CommunityBranchAgent.java:81)
        at java.instrument/java.lang.instrument.ClassFileTransformer.transform(ClassFileTransformer.java:244)
        at java.instrument/sun.instrument.TransformerManager.transform(TransformerManager.java:188)
        at java.instrument/sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:541)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
        at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
        at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:862)
        at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:760)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:681)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:639)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:375)
        at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent.redefineEdition(CommunityBranchAgent.java:94)
        at com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent.premain(CommunityBranchAgent.java:57)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
        at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
19:28:19.463 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent -- Transforming class org.sonar.server.newcodeperiod.ws.SetAction
19:28:19.502 [main] DEBUG com.github.mc1arke.sonarqube.plugin.CommunityBranchAgent -- Transforming class org.sonar.server.newcodeperiod.ws.UnsetAction
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.sonar.process.PluginSecurityManager (file:/C:/sonarqube-10.2.1.78527/lib/sonar-application-10.2.1.78527.jar)
WARNING: Please consider reporting this to the maintainers of org.sonar.process.PluginSecurityManager
WARNING: System::setSecurityManager will be removed in a future release
2023.11.12 19:28:35 INFO  app[][o.s.a.SchedulerImpl] Process[Web Server] is stopped
2023.11.12 19:28:35 INFO  app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped
2023.11.12 19:28:35 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped

谢谢你

plugins sonarqube compatibility
1个回答
0
投票

1.14.0 不支持任何 10.x 版本,尽管文档尚不清楚。看来目前 10.x 没有可行的解决方案。

这里是与该主题相关的插件问题的链接 https://github.com/mc1arke/sonarqube-community-branch-plugin/issues/813

© www.soinside.com 2019 - 2024. All rights reserved.