开发者社区> 问答> 正文

mvn sonar 配置好后 执行mvn sonar:sonar问题:配置报错 

RT : sonar已经启动 在maven中配置 当我执行 mvn clean sonar:sonar时  提示

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project Qukl: Unable to execute SonarQube         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)         at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)         at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)         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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute SonarQube         at org.sonarsource.scanner.maven.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:36)         at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:80)         at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:139)         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)         ... 19 more Caused by: org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube         at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:84)         at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:71)         at java.security.AccessController.doPrivileged(Native Method)         at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:71)         at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:67)         at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:218)         at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156)         at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:59)         ... 22 more Caused by: java.lang.IllegalStateException: Fail to bootstrap from server. Bootstrap index was: <!DOCTYPE html><html lang="en"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8" charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"><link rel="icon" type="image/x-icon" href="/favicon.ico"><meta name="application-name" content="SonarQube"/><meta name="msapplication-TileColor" content="#FFFFFF"/><meta name="msapplication-TileImage" content="/mstile-512x512.png"/><link href="/css/sonar.ab9ba892.css" rel="stylesheet"><title>SonarQube</title></head><body><div id="content"><div class="global-loading"><i class="spinner global-loading-spinner"></i> <span class="global-loading-text">Loading...</span></div></div><script>window.baseUrl=""</script><script src="/js/vendor.46c97c56.js"></script><script src="/js/app.ab9ba892.js"></script></body></html>         at org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles(Jars.java:88)         at org.sonarsource.scanner.api.internal.Jars.download(Jars.java:70)         at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:39)         at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory$1.run(IsolatedLauncherFactory.java:75)         ... 29 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 1         at org.sonarsource.scanner.api.internal.Jars.getScannerEngineFiles(Jars.java:84)  
 

展开
收起
kun坤 2020-06-02 15:56:41 817 0
1 条回答
写回答
取消 提交回答
  • 找到问题了 在需要删除后面的sonar######自己解决并发出解决方案,赞一个

    2020-06-02 15:56:49
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载