简体   繁体   English

在 Eclipse 中安装 PMD 5.0.4

[英]Installing PMD 5.0.4 in Eclipse

Can anybody tell me how to install PMD in Eclipse.谁能告诉我如何在 Eclipse 中安装 PMD。 I have downloaded PMD 5.0.4 from the following link:我已经从以下链接下载了 PMD 5.0.4:

http://sourceforge.net/projects/pmd/files/latest/download?source=files http://sourceforge.net/projects/pmd/files/latest/download?source=files

When I add this archive file in Eclipse install option I am getting an error stating that "It could not find the file specified".当我在 Eclipse 安装选项中添加这个存档文件时,我收到一条错误消息,指出“找不到指定的文件”。

Just follow the directions on http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ I copied the direction here for you so you don't even have to click !!只需按照http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ 上的说明操作,我在此处为您复制了说明,因此您甚至不必单击!

In Eclipse, click on Help -> Install New Software...在 Eclipse 中,单击帮助 -> 安装新软件...

Click on Add.. Enter the following:单击添加.. 输入以下内容:

Name: PMD for Eclipse Update Site名称:Eclipse 更新站点的 PMD

URL: https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/网址: https : //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 >.您应该会看到 Eclipse 4 的 PMD。选中它旁边的复选框并单击下一步 >。

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.重启日食。

You should not download anything.你不应该下载任何东西。 Instead, simply add following URL as new update site in Eclipse -> Help -> Install new sofware:相反,只需在 Eclipse -> 帮助 -> 安装新软件中添加以下 URL 作为新的更新站点:

http://pmd.sourceforge.net/eclipse

Then select appropriate Eclipse PMD plugin and you are done.然后选择合适的 Eclipse PMD 插件就大功告成了。

Are you behind a firewall?你在防火墙后面吗?

Check the connection settings in your eclipse.检查 eclipse 中的连接设置。

Simply goto Eclipse -> Help -> Marketplace From here search "PMD" in the box and select the PMD plugin(not eclipse-pmd).只需转到 Eclipse -> Help -> Marketplace 从这里在框中搜索“PMD”并选择 PMD 插件(不是 eclipse-pmd)。

Click on install and restart eclipse to use.点击安装并重启eclipse即可使用。

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

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