Eclipse IDE 的 PMD 插件离线安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11407355/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:30:40  来源:igfitidea点击:

Offine installation of PMD plugin for Eclipse IDE

eclipseeclipse-pluginpmd

提问by Pawan Choure

I am trying to download and install PMD plugin for Eclipse offline but did not succeed in doing so.

我正在尝试为 Eclipse 离线下载和安装 PMD 插件,但没有成功。

I downloaded following 2 zips:

我下载了以下 2 个 zip:

  • net.sourceforge.pmd.eclipse-3.2.6.v200903300643.zip (this version matches with the one which I installed online)
  • pmd-eclipse-1.8.0
  • net.sourceforge.pmd.eclipse-3.2.6.v200903300643.zip(这个版本和我网上安装的版本一致)
  • pmd-eclipse-1.8.0

Not sure which one to use and how to configure it in Eclipse.

不确定使用哪一个以及如何在 Eclipse 中配置它。

I searched a lot but did not find proper steps for the offine installation and configuration.

我搜索了很多,但没有找到离线安装和配置的正确步骤。

采纳答案by codejammer

In case it contains site archieve:

如果它包含站点档案:

Goto Help->Install New Software

转到帮助->安装新软件

Click Add...

单击添加...

In the Add Repository Dialog click Archive and point to your zip. Rest of the installation is as you would do with an online installation.

在 Add Repository 对话框中,单击 Archive 并指向您的 zip。其余的安装与在线安装一样。

Else:

别的:

Extract the zip Copy all plugins to your target eclipse plugins folder

解压 zip 将所有插件复制到目标 eclipse plugins 文件夹

Copy all features to your target eclipse features folder

将所有功能复制到您的目标 Eclipse 功能文件夹

launch eclipse with -clean option

使用 -clean 选项启动 Eclipse

回答by Brian

You can get the latest 4.0 version of the plugin by pointing your Eclipse installer here: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

您可以通过将 Eclipse 安装程序指向此处来获取插件的最新 4.0 版本:http: //sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/