<bdo id='6rgBo'></bdo><ul id='6rgBo'></ul>
<legend id='6rgBo'><style id='6rgBo'><dir id='6rgBo'><q id='6rgBo'></q></dir></style></legend>
      1. <tfoot id='6rgBo'></tfoot>

      2. <small id='6rgBo'></small><noframes id='6rgBo'>

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

        在 Eclipse 中将项目关联到 Sonar

        时间:2024-05-09

        <small id='56YB5'></small><noframes id='56YB5'>

          <tfoot id='56YB5'></tfoot>

          <legend id='56YB5'><style id='56YB5'><dir id='56YB5'><q id='56YB5'></q></dir></style></legend>
          • <bdo id='56YB5'></bdo><ul id='56YB5'></ul>

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

                <tbody id='56YB5'></tbody>
                • 本文介绍了在 Eclipse 中将项目关联到 Sonar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有带有 MyEclipse 10 Java 企业开发插件的 Eclipse Indigo 3.7 基础:

                  I have Eclipse Indigo 3.7 base with MyEclipse 10 Java enterprise development plug-in:

                  • 我已经为 eclipse 安装了 Sonar 插件.
                  • 安装 Sonar 服务器并从 localhost (localhost:9000) 在本地运行它
                  • 在 Eclipse 中测试了服务器连接,来自
                    Windows>首选项>声纳>服务器.连接成功.
                  • 对于我的项目,为声纳 (sonar:sonar) 运行 Maven 目标.构建是成功的.我可以在 localhost 中浏览结果.(本地主机:9000)

                  我的问题是将项目与声纳相关联.当我右键单击我的项目时,配置 > 与声纳关联,我得到一个没有任何反应的屏幕.

                  My issue is with Associating the project to Sonar. When i right click on my project, Configure > Associate with Sonar, I get a screen where nothing happens.

                  屏幕基本上有 2 个字段,Project 和 Sonar Project.Project 字段包含我的项目的名称,Sonar Project 字段列出了此消息 - 单击此处开始搜索远程 Sonar 项目"

                  Basically the screen has 2 fields,Project and Sonar Project. The Project field contains the name of my Project and Sonar Project field lists this message - "click here to start searching for a remote Sonar project"

                  • 我单击该字段并输入我的 groupid:artifactid 但什么也没有发生.
                  • 我还尝试输入 Sonar 仪表板中列出的项目名称但这也无济于事.

                  当我右键单击我的项目时,在上下文菜单中我无法看到声纳"选项.

                  When i right click on my project, In the context menu i am unable to see 'Sonar' option.

                  帮助我将我的项目与 Eclipse 中的 Sonar 关联起来.请让我知道我错过了什么.提前致谢.

                  Help me associate my project to Sonar in eclipse. Please let me know what i am missing. Thanks in advance.

                  推荐答案

                  我在 Eclipse (liferay-plugins-sdk.6.2.0) 中的 Liferay 项目遇到了同样的问题,下面是我如何让它工作的:

                  I had the same issue with my Liferay project in Eclipse (liferay-plugins-sdk.6.2.0) and here is how I got it working:

                  • 安装eclipse插件,并测试服务器连接
                  • 安装 Sonar 服务器并启动它(例如在 yourhost:9000 上)
                  • 转到 yourhost:9000 并登录(管理员/管理员,除非您更改它)
                  • 转到设置 -> 系统 -> 配置
                  • 新建项目(右上角+Create)
                  • 我使用过 key=Liferay6.2 和 name=liferay-plugins-sdk-6.2.0
                  • Install the eclipse plugin, and test server connection
                  • Install the Sonar server and start it (for example on yourhost:9000)
                  • Go to yourhost:9000 and login (admin/admin unless you changed it)
                  • Go to Settings -> System -> Provisioning
                  • Create new project (+Create in the top right corner)
                  • I've used key=Liferay6.2 and name=liferay-plugins-sdk-6.2.0

                  完成上述步骤后,我回到了我的 eclipse 项目并在 Configure > Associate with Sonar 中搜索/找到了 liferay 项目.

                  After the above steps I went back to my eclipse project and in Configure > Associate with Sonar I was able to search/find the liferay project.

                  这篇关于在 Eclipse 中将项目关联到 Sonar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SonarQube 是否支持 Java9? 下一篇:@Nullable 和 SonarQube '有条件执行的块应该可以访问' 警告

                  相关文章

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

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