问题描述
我正在做 iOS 应用程序,我正在尝试使用 fastlane 和 sonarqube 检查代码质量。 我的 MAC 机器上也安装了 Java。
但是,在启动 sonarqube 包装器时,它没有开始
控制台日志
a@Apples-MBP macosx-universal-64 % sh sonar.sh console
Running SonarQube...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | copyright 1999-2006 Tanuki Software,Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /Applications/SonarQube/temp
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es',ipcIndex=1,logFilenamePrefix=es]] from [/Applications/SonarQube/elasticsearch]: /Applications/SonarQube/elasticsearch/bin/elasticsearch
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | Unrecognized VM option 'UseConcmarkSweepGC'
jvm 1 | Error: Could not create the Java Virtual Machine.
jvm 1 | Error: A fatal exception has occurred. Program will exit.
jvm 1 | 2020.12.24 00:10:34 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 1
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2020.12.24 00:10:34 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
我的 Java 虚拟机是
a@Apples-MBP macosx-universal-64 % /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
1.8.0_201,x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
Java 版本是
a@Apples-MBP macosx-universal-64 % java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9)
OpenJDK 64-Bit Server VM (build 15.0.1+9,mixed mode,sharing)
a@Apples-MBP macosx-universal-64 %
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)