<tfoot id='AHpE0'></tfoot>

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

      • <bdo id='AHpE0'></bdo><ul id='AHpE0'></ul>

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

        mvn sonar:sonar 是做什么的?

        What does mvn sonar:sonar do?(mvn sonar:sonar 是做什么的?)

          <tbody id='MZFh7'></tbody>

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

            1. <legend id='MZFh7'><style id='MZFh7'><dir id='MZFh7'><q id='MZFh7'></q></dir></style></legend>

                • <small id='MZFh7'></small><noframes id='MZFh7'>

                • 本文介绍了mvn sonar:sonar 是做什么的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  命令 mvn sonar:sonar 执行哪些 maven 生命周期阶段?

                  What are the maven lifecycle phases does the command mvn sonar:sonar execute?

                  当我看到在屏幕上运行的日志时,在我发现的非常高级的 test, install 上.

                  While I see the logs that run over the screen, at a very high level test, install that I spotted out.

                  考虑以下示例,

                  我有一个像下面这样的 maven 项目

                  I have a maven project like the following

                  maven-root
                  
                   maven-child-1
                  
                   maven-child-2
                  

                  考虑以下场景,我在根级别按顺序完成了它们

                  Consider the following scenario, I have done them sequentially at root level

                  1. mvn 全新安装
                  2. mvn sonar:sonar -- 查看报告
                  3. 通过添加一些测试用例来修改 child-2 以增加代码覆盖率
                  4. 运行 mvn sonar:sonar
                  1. mvn clean install
                  2. mvn sonar:sonar -- See the report
                  3. Modified child-2 by adding some test cases to increase the code coverage
                  4. Run mvn sonar:sonar

                  我对测试用例的更改未反映在报告中.

                  My changes for the test cases are not reflecting in the report.

                  1. 我已从 sonarqube 中删除报告
                  2. mvn 声纳:声纳

                  仍然会生成旧报告.

                  简而言之,我需要执行 mvn clean install 然后 mvn sonar:sonar 吗?

                  In brief, Do I need to perform mvn clean install and then mvn sonar:sonar ?

                  如果 mvn sonar:sonar 涵盖执行 mvn clean install,为什么报告给我旧数字?

                  If mvn sonar:sonar covers executing the mvn clean install, why the report gives me old numbers?

                  推荐答案

                  mvn sonar:sonar 不会触发 mvn clean install 执行.它仅触发 Maven Surefire 插件执行.

                  mvn sonar:sonar does not trigger a mvn clean install execution. It triggers a Maven Surefire plugin execution only.

                  这就是为什么您需要在每次分析之前执行 mvn clean install - 否则您编译的类将不是最新的,因此 Surefire 执行将不包括最近的修改.

                  This is why you need to perform a mvn clean install before each analysis - otherwise your compiled classes won't be up-to-date and therefore the Surefire execution won't include recent modifications.

                  这篇关于mvn sonar:sonar 是做什么的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 等)

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

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