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
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 :
Download the file referred above from here
Add the downloaded file as an 'Archived Download site' like so :
- After that you should get the following :
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.
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.
Eclipse Mars (4.5.1)
Installation
You can install Checkstyle plugin from the Marketplace.
Help > Eclipse Martketplace...
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
Window > Show View > Other...
Type checkstyle
> select the views (Ctrl + click) > OK
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: