Skip to content

12. IDE instructions

Ilkka Seppälä edited this page Apr 16, 2016 · 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
  • Configure Checkstyle plugin Window - Preferences - Checkstyle - New - External Configuration File -> Name it and point to checkstyle.xml -> Set as default
  • Right click java-design-patterns project in Project Explorer and choose Checkstyle - Create formatter profile
  • Activate formatter profile Window - Preferences - Java - Code style - Formatter - Active profile -> choose the one you just created -> Apply

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