【问题标题】:Howto use PMD plugin in Eclpise 4.3 running on Java 8如何在 Java 8 上运行的 Eclipse 4.3 中使用 PMD 插件
【发布时间】:2015-10-12 13:55:36
【问题描述】:

PDM 带来了与 java 8 不兼容的 xerces jar - 这已在此处报告:https://bugs.eclipse.org/bugs/show_bug.cgi?id=432118

这是我想使用的 PMD 插件:http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

有没有办法在 java 8 上的 eclipse 4.3/4.4 中安装 PMD?

【问题讨论】:

    标签: eclipse pmd


    【解决方案1】:

    https://sourceforge.net/p/pmd/bugs/1210/ 显示修复的当前状态(已关闭),并具有安装当前快照版本的存储库位置,并表示修复将在 4.0.4 中发布。我将更新站点添加到我的安装位置并安装了快照(日期为 7/29),现在我在运行 JDK8 的 Luna 4.4 中拥有了我的 PMD 首选项/菜单/透视图。非常感谢树干提示。

    【讨论】:

      【解决方案2】:

      这是一个 PMD 错误 - 他们已经在后备箱中修复了它,我已经对其进行了测试并且工作正常。问题是,它对旧的 xerces 库具有传递依赖。

      【讨论】:

        【解决方案3】:

        当我直接从 Eclipse 市场安装 PMD 时,Eclipse Luna 4.4.2 出现 PMD 插件安装问题。

        为了解决这个问题,

        我卸载了插件并使用以下链接选择 4.4 eclipse PMD 插件。

        http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

        成功了!

        【讨论】:

          【解决方案4】:

          这是解决方案:

          如果您之前安装了 2012 年 11 月之前的 PMD Eclipse 插件版本,那么您应该先删除/卸载它。安装 PMD for Eclipse 插件:

          In Eclipse, click on Help -> Install New Software...
          Click on Add..
          Enter the following:
              Name: PMD for Eclipse Update Site
              URL: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/
          and click OK.
          You should see PMD for Eclipse 4. Select the checkbox next to it and click Next >.
          You'll need to accept the license and confirm you want to install a plugin that is not digitally signed. Go ahead and install it anyway.
          Restart eclipse
          

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2021-08-18
            • 1970-01-01
            • 2017-06-27
            • 1970-01-01
            相关资源
            最近更新 更多