简体   繁体   English

在Eclipse Neon上安装PMD 5.3.3

[英]Installing PMD 5.3.3 on Eclipse Neon

I'm trying to install the latest version of PMD on a fresh installation of Eclipse Neon. 我正在尝试在全新安装的Eclipse Neon上安装最新版本的PMD。

I've tried installing it by adding the site http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ 我尝试通过添加站点http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/来安装它

but it gives me the following error: 但这给了我以下错误:

Unable to read repository at http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/content.xml.
Unable to read repository at http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/content.xml.
Received fatal alert: handshake_failure

I've tried disabling my firewall and anti-virus, changing my Network Connection Active Provider to Native and Direct, but it still does not work. 我尝试禁用防火墙和防病毒功能,将“网络连接活动提供程序”更改为“本机”和“直接”,但仍然无法正常工作。

I've tried downloading the zip file (pmd-bin-5.3.3.zip) from the PMD site and tried adding it through "Install new Software" > "Add" > "Archive" but that did not work. 我尝试从PMD站点下载zip文件(pmd-bin-5.3.3.zip),并尝试通过“安装新软件”>“添加”>“存档”将其添加,但这没有用。

I've tried making a subfolder in my eclipse/dropins directory and extracting the PMD zip file there but that also does not work. 我试过在eclipse / dropins目录中创建一个子文件夹,然后在其中提取PMD zip文件,但这也不起作用。

I can access the internet via Eclipse if I open up the Internet Browser view. 如果打开Internet浏览器视图,则可以通过Eclipse访问Internet。 I've also installed EclEmma and FindBugs via the Marketplace as well as CheckStyle via Install New Software > Add > Archive. 我还通过Marketplace安装了EclEmma和FindBugs,并通过安装新软件>添加>存档安装了CheckStyle。

I've also tried reloading the software site via Preferences > Install/Update > Available Software Sites. 我还尝试通过“首选项”>“安装/更新”>“可用软件站点”重新加载软件站点。

I've been looking for solutions online but none so far have worked. 我一直在寻找在线解决方案,但到目前为止没有一个成功。 Any help would be greatly appreciated. 任何帮助将不胜感激。

There are some known problems that can occur while installing pmd-eclipse from the update site hosted at sourceforge, see https://github.com/pmd/pmd-eclipse-plugin/issues/19 从sourceforge托管的更新站点安装pmd-eclipse时,可能会发生一些已知的问题,请参阅https://github.com/pmd/pmd-eclipse-plugin/issues/19

To workaround all these problems, follow these instructions: 要变通解决所有这些问题,请按照以下说明进行操作:

  • Download the update site for the latest pmd-eclipse-plugin version as a zip-file from there: https://github.com/pmd/pmd-eclipse-plugin/releases 从那里下载最新的Pmd-eclipse-plugin版本的更新站点作为zip文件: https : //github.com/pmd/pmd-eclipse-plugin/releases

  • In eclipse, go to: Help > Install new Software > Add > Archive and select the update-site zip file (eg "net.sourceforge.pmd.eclipse.p2updatesite-4.0.11.v20170128-2103.zip") 在eclipse中,转到:帮助>安装新软件>添加>存档,然后选择更新站点的zip文件(例如“ net.sourceforge.pmd.eclipse.p2updatesite-4.0.11.v20170128-2103.zip”)

Please note: you have been trying to install PMD (pmd-bin-5.3.3.zip) directly into eclipse - this won't work. 请注意:您一直试图将PMD(pmd-bin-5.3.3.zip)直接安装到eclipse中-这将无法工作。 You'll need to install the pmd-eclipse-plugin - this already includes PMD. 您需要安装pmd-eclipse-plugin-它已经包括PMD。

Btw. 顺便说一句。 there is also an alternative pmd eclipse plugin available: https://acanda.github.io/eclipse-pmd/ 还有一个可供选择的pmd eclipse插件: https : //acanda.github.io/eclipse-pmd/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM