Skip to content

12. IDE instructions

Ilkka Seppälä edited this page Oct 20, 2019 · 26 revisions

Initially

  • Clone the project git clone https://github.com/iluwatar/java-design-patterns.git

Eclipse

  • Download Eclipse from https://eclipse.org/downloads/ Choose Eclipse IDE for Java Developers or Eclipse IDE for Java EE Developers
  • Import the project File - Import - Existing Maven projects - point to the project root folder
  • You can run Checkstyle in Eclipse IDE by selecting the project(s) in package/project explorer, right-clicking the project and choosing Checkstyle - Check Code with Checkstyle

IntelliJ IDEA

  • Download IntelliJ IDEA from https://www.jetbrains.com/idea/download/
  • Import project - point to project root pom.xml
  • Install Checkstyle plugin File - Settings - Plugins - CheckStyle-IDEA
  • Configure Checkstyle plugin File - Settings - Other settings - Checkstyle
    • Add configuration (+ symbol)
    • Description: JDP Checkstyle
    • Use a local Checkstyle file - browse to project root checkstyle.xml
    • Set JDP Checkstyle configuration active and check Scan test classes option
    • Click OK
  • You can run Checkstyle checks by activating the Checkstyle view with View - Tool windows - Checkstyle and clicking Check project
  • Setup code formatter File - Settings - Editor - Code style - Java - Manage - Import - Checkstyle configuration and browse to checkstyle.xml at project root
Clone this wiki locally