<small id='CEPai'></small><noframes id='CEPai'>

      <legend id='CEPai'><style id='CEPai'><dir id='CEPai'><q id='CEPai'></q></dir></style></legend>

      <tfoot id='CEPai'></tfoot>
      • <bdo id='CEPai'></bdo><ul id='CEPai'></ul>

      <i id='CEPai'><tr id='CEPai'><dt id='CEPai'><q id='CEPai'><span id='CEPai'><b id='CEPai'><form id='CEPai'><ins id='CEPai'></ins><ul id='CEPai'></ul><sub id='CEPai'></sub></form><legend id='CEPai'></legend><bdo id='CEPai'><pre id='CEPai'><center id='CEPai'></center></pre></bdo></b><th id='CEPai'></th></span></q></dt></tr></i><div id='CEPai'><tfoot id='CEPai'></tfoot><dl id='CEPai'><fieldset id='CEPai'></fieldset></dl></div>

      1. 使用 Java 11 运行 SonarScanner 分析,使用 Java 8 运行目标代码

        Run SonarScanner analysis with Java 11, run target code with Java 8(使用 Java 11 运行 SonarScanner 分析,使用 Java 8 运行目标代码)
        <i id='jw5Tr'><tr id='jw5Tr'><dt id='jw5Tr'><q id='jw5Tr'><span id='jw5Tr'><b id='jw5Tr'><form id='jw5Tr'><ins id='jw5Tr'></ins><ul id='jw5Tr'></ul><sub id='jw5Tr'></sub></form><legend id='jw5Tr'></legend><bdo id='jw5Tr'><pre id='jw5Tr'><center id='jw5Tr'></center></pre></bdo></b><th id='jw5Tr'></th></span></q></dt></tr></i><div id='jw5Tr'><tfoot id='jw5Tr'></tfoot><dl id='jw5Tr'><fieldset id='jw5Tr'></fieldset></dl></div>
      2. <tfoot id='jw5Tr'></tfoot>

              1. <small id='jw5Tr'></small><noframes id='jw5Tr'>

                <legend id='jw5Tr'><style id='jw5Tr'><dir id='jw5Tr'><q id='jw5Tr'></q></dir></style></legend>
                  <tbody id='jw5Tr'></tbody>

                • <bdo id='jw5Tr'></bdo><ul id='jw5Tr'></ul>
                • 本文介绍了使用 Java 11 运行 SonarScanner 分析,使用 Java 8 运行目标代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如下图所示,SonarSource 终止了对运行 Java 11 之前版本的代码分析器的支持

                  As the following image points out, SonarSource ended support to run code Analyzers with pre-11 Java versions

                  我试图搜索关于如何运行 bitbucket 管道以使用 java 11 Analyzer 执行 SonarScanner 分析但目标代码使用 pre-java 11 版本(例如 java 8)的完整示例,但我找不到.按照那张图,应该是可以的.

                  I have tried to search for a full example about how to run a bitbucket pipeline to execute SonarScanner analysis using a java 11 Analyzer but having target code using pre-java 11 versions (e.g. java 8), but I wasn't able to found one. According to that image, it should be possible.

                  推荐答案

                  我不确定是什么问题.公告通知您必须使用 Java 11+ 来执行扫描,但您仍然可以使用 Java <11 编译代码.您没有提供任何有关您的项目的信息,所以我们以一个 Maven 项目为例.

                  I'm not sure what is the problem. The announcements informs that you have to use Java 11+ to execute scans, but you can still compile your code with Java <11. You didn't provide any information about your project, so let's take a Maven project as an example.

                  这通常意味着你必须做这样的事情:

                  It generally means that you have to do something like this:

                  // set Java to 8
                  export JAVA_HOME=/path/to/jdk8/
                  
                  // compile, test and build
                  mvn package
                  
                  // set Java to 11
                  export JAVA_HOME=/path/to/jdk11/
                  
                  // execute scanner
                  mvn sonar:sonar
                  

                  这篇关于使用 Java 11 运行 SonarScanner 分析,使用 Java 8 运行目标代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                  Security - Array is stored directly(安全性 - 数组直接存储)
                  SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                  Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                  How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                  automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)

                  1. <i id='3Z5Tl'><tr id='3Z5Tl'><dt id='3Z5Tl'><q id='3Z5Tl'><span id='3Z5Tl'><b id='3Z5Tl'><form id='3Z5Tl'><ins id='3Z5Tl'></ins><ul id='3Z5Tl'></ul><sub id='3Z5Tl'></sub></form><legend id='3Z5Tl'></legend><bdo id='3Z5Tl'><pre id='3Z5Tl'><center id='3Z5Tl'></center></pre></bdo></b><th id='3Z5Tl'></th></span></q></dt></tr></i><div id='3Z5Tl'><tfoot id='3Z5Tl'></tfoot><dl id='3Z5Tl'><fieldset id='3Z5Tl'></fieldset></dl></div>
                    <legend id='3Z5Tl'><style id='3Z5Tl'><dir id='3Z5Tl'><q id='3Z5Tl'></q></dir></style></legend>
                    <tfoot id='3Z5Tl'></tfoot>

                    <small id='3Z5Tl'></small><noframes id='3Z5Tl'>

                      <tbody id='3Z5Tl'></tbody>

                          • <bdo id='3Z5Tl'></bdo><ul id='3Z5Tl'></ul>