Error while installing check style plugin for eclipse

跟風遠走 提交于 2019-12-03 17:44:09

问题


I am getting the following error while installing the checkstyle plugin for my eclipuse via the update manager

Cannot complete the install because one or more required items could not be found. Software being installed: EclipseCS SevNTU plugin feature 1.5.0 (com.github.sevntu.checkstyle.checks.feature.feature.group 1.5.0) Missing requirement: Sevntu eclipse-cs Extension Plugin 1.5.0 (com.github.sevntu.checkstyle.checks 1.5.0) requires 'bundle net.sf.eclipsecs.core 0.0.0' but it could not be found Cannot satisfy dependency: From: EclipseCS SevNTU plugin feature 1.5.0 (com.github.sevntu.checkstyle.checks.feature.feature.group 1.5.0) To: com.github.sevntu.checkstyle.checks [1.5.0]

I am using the below update site.

http://eclipse-cs.sf.net/update/

I have googled a lot on this but could not find a appropriate solution. Please help. Thanks in advance


回答1:


When you attempt to install is Contact all update sites during install to find required software checked ? If not, it should be :

Expected Result

When using the update site in OP's post, following is the expected result :

Offline Installation

From this page :

Alternatively the Checkstyle Eclipse Plug-in can be downloaded from the Eclipse Checkstyle Plug-in's SourceForge download site. The download consists of a archived update site (file name net.sf.eclipsecs-x.x.x.buildstamp-updatesite.zip), containing all mandatory and optional parts of the plugin.

The plugin can be installed from the archived update site in the following ways:

1. Via Eclipse's P2 Installation Manager similar as described above, pointing to the archive file instead
2. Extracted into Eclipse's dropins folder. 

So, the steps are as follows :

  1. Download the file referred above from here

  2. Add the downloaded file as an 'Archived Download site' like so :

  1. After that you should get the following :




回答2:


I think Ashutosh' answer should have worked, alternatively another option is to download the zip archive from http://sourceforge.net/projects/eclipse-cs/files/Eclipse%20Checkstyle%20Plug-in/5.5.0/ and extract it to eclipse plugins folder.




回答3:


I think the caveat here is the plugin's homepage http://eclipse-cs.sourceforge.net/ gives http://sevntu-checkstyle.github.com/sevntu.checkstyle/update-site/ as the installation URL, but it does not work (Yes?). However on http://eclipse-cs.sourceforge.net/downloads.html a different installation URL http://eclipse-cs.sf.net/update/ is given, which turns out to work correctly.




回答4:


Eclipse Mars (4.5.1)

Installation

You can install Checkstyle plugin from the Marketplace.

  1. Help > Eclipse Martketplace...

  2. Type "checkstyle plug-in" and hit Enter.

    You can also type only checkstyle and then select the plugin from the list.

    Click on Install.

Usage

  1. Window > Show View > Other...

  2. Type checkstyle > select the views (Ctrl + click) > OK

  3. Right click on your project > Checkstyle > Check Code with Checkstyle

    The output will be shown in the checkstyle views (2 tabs).

    If you listed all the violations for a type (using the arrow / right click / double click), you can go back using the "Go back to the master view" arrow:



来源:https://stackoverflow.com/questions/11865025/error-while-installing-check-style-plugin-for-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!