我们正在将现有项目升级到java 8和maven 3.3.9我们有声纳3.5.1,虽然最新版本的声纳可用,我们不想更新声纳,因为我们已经在声纳3.5.1中进行了一些定制.
主要的是我们在部署我们项目的同一个tomcat中部署了声纳战争但是在新的声纳版本中war文件夹被删除并且他们提供了我们不想要的单独的声纳服务器.
所以请帮我运行声纳3.5.1或者告诉我如何对最新的声纳版本进行战争并将其部署在我自己的tomcat中.我在过去两天尝试这个,并测试了不同的版本,但没有成功.当使用声纳3.5.1时,我们得到以下错误
[INFO] Sonar version: 3.5.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.007 s
[INFO] Finished at: 2017-04-26T23:47:34+05:30
[INFO] Final Memory: 24M/218M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project app25apr1: Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar failed: A required class was missing while executing org.codehaus.mojo:sonar-maven-plugin:2.0:sonar: org/sonatype/aether/graph/DependencyFilter
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:2.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/ist/innoeye/headStart8Repository/org/codehaus/mojo/sonar-maven-plugin/2.0/sonar-maven-plugin-2.0.jar
[ERROR] urls[1] = file:/home/ist/innoeye/headStart8Repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[2] = file:/home/ist/innoeye/headStart8Repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[3] …Run Code Online (Sandbox Code Playgroud) 我有一个Java代码库,需要在sonarqube中进行扫描,但是当我运行扫描仪时,我得到了:
Please provide compiled classes of your project with sonar.java.binaries property
Run Code Online (Sandbox Code Playgroud)
我没有课。我得到的代码尚未编译。它也是一个非常复杂的应用程序,我真的没有时间弄清楚如何自己构建它。有没有一种方法可以强制我在没有可用二进制文件的情况下运行分析?
感谢您的帮助/想法!
-杰森
(此外,我去年在Java代码上运行了sonarqube 5.x,而且绝对不必使用类文件进行该分析。我认为这是版本6的新“功能”,但是文档说,这是从版本4.12开始的。 (?!)
我正在使用 Sonarqube 社区版。我收到以下错误,
Exception in thread "LOG_FLUSHER" Exception in thread "CHECKPOINT_WRITER" java.lang.OutOfMemoryError: Java heap space
at java.util.ArrayList.iterator(ArrayList.java:840)
at java.util.Collections$SynchronizedCollection.iterator(Collections.java:2031)
at com.persistit.Persistit.pollAlertMonitors(Persistit.java:2285)
at com.persistit.Persistit$LogFlusher.run(Persistit.java:192)
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap$Values.iterator(HashMap.java:968)
at com.persistit.Persistit.earliestDirtyTimestamp(Persistit.java:1439)
at com.persistit.CheckpointManager.pollFlushCheckpoint(CheckpointManager.java:271)
at com.persistit.CheckpointManager.runTask(CheckpointManager.java:301)
at com.persistit.IOTaskRunnable.run(IOTaskRunnable.java:144)
at java.lang.Thread.run(Thread.java:748)
WARNING: WARN: [JOURNAL_FLUSHER] WARNING Journal flush operation took 7,078ms last 8 cycles average is 884ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:17.852s
ERROR: Error during SonarQube Scanner execution
ERROR: Java heap space
ERROR:
Exception: java.lang.OutOfMemoryError thrown from …Run Code Online (Sandbox Code Playgroud) 我正在与:
我有一个 Gradle 多模块
sonarqube-03
sonarqube-03-domain
sonarqube-03-repository
sonarqube-03-repository-impl
Run Code Online (Sandbox Code Playgroud)
我在根项目中只有一个 sonar-project.properties文件sonarqube-03,其内容如下:
# must be unique in a given SonarQube instance
sonar.projectKey=manolito-labs:sonarqube-03
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=sonarqube-03
sonar.projectVersion=1.0
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=src
sonar.tests=src
# Encoding of the source code. Default …Run Code Online (Sandbox Code Playgroud) 我的 C# WIndows Forms 应用程序有一些指向 Web URI 的菜单链接。但现在我的 SonarQube Scan 给了我这个错误/警告(S1075)来重构我的代码。那么在 C# 后端代码中使用 Web URI 的安全/最佳方法是什么?
private void HelpDocMenu_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("https://docs.google.com/document/d/142SFA/edit?usp=sharing");
}
Run Code Online (Sandbox Code Playgroud)
SonarQube 错误
S1075 Refactor your code not to use hardcoded absolute paths or URIs
Run Code Online (Sandbox Code Playgroud) 如何解决这个声纳问题?
File file = new File("/some directory");
Scanner scanner = new Scanner(file);
Run Code Online (Sandbox Code Playgroud)
删除构造函数“扫描仪(文件)”的这种使用