Error while installing check style plugin for eclipse

后端 未结 4 1850
不思量自难忘°
不思量自难忘° 2021-02-08 19:56

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

相关标签:
4条回答
  • 2021-02-08 20:15

    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:

    0 讨论(0)
  • 2021-02-08 20:18

    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.

    0 讨论(0)
  • 2021-02-08 20:29

    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.

    0 讨论(0)
  • 2021-02-08 20:32

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

    enter image description here

    Expected Result

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

    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 :

    enter image description here

    1. After that you should get the following :

    enter image description here

    0 讨论(0)
提交回复
热议问题