-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
- Download Eclipse from https://eclipse.org/downloads/ Choose
Eclipse IDE for Java Developers
orEclipse 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
- 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