From 8bee2f888db7c7347cd419fe61064398f7a93ee6 Mon Sep 17 00:00:00 2001
From: Stephane Nicoll <snicoll@pivotal.io>
Date: Tue, 9 Oct 2018 08:44:25 +0200
Subject: [PATCH] Polish "Add documentation for IntelliJ IDEA"

Closes gh-358
---
 readme.md | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/readme.md b/readme.md
index bc4111c..42ee737 100644
--- a/readme.md
+++ b/readme.md
@@ -48,12 +48,12 @@ The following items should be installed in your system:
 * git command line tool (https://help.github.com/articles/set-up-git)
 * Your prefered IDE 
   * Eclipse with the m2e plugin. Note: when m2e is available, there is an m2 icon in Help -> About dialog. If m2e is not there, just follow the install process here: http://www.eclipse.org/m2e/
-  * or [Spring Tools Suite](https://spring.io/tools) (STS)
-  * or IntelliJ IDEA
+  * [Spring Tools Suite](https://spring.io/tools) (STS)
+  * IntelliJ IDEA
 
 ### Steps:
 
-1) In the command line
+1) On the command line
 ```
 git clone https://github.com/spring-projects/spring-petclinic.git
 ```
@@ -62,13 +62,18 @@ git clone https://github.com/spring-projects/spring-petclinic.git
 File -> Import -> Maven -> Existing Maven project
 ```
 
-Then either build on the command line `./mvnw install` or using the Eclipse launcher (right click on project and `Run As -> Maven install`) to generate the css. Run the application main method by right clicking on it and choosing `Run As -> Java Application`.
+Then either build on the command line `./mvnw generate-resources` or using the Eclipse launcher (right click on project and `Run As -> Maven install`) to generate the css. Run the application main method by right clicking on it and choosing `Run As -> Java Application`.
 
-3) Or inside IntelliJ IDEA
+3) Inside IntelliJ IDEA
 
-On the main menu, select `File -> Open`. Select the Petclinic [pom.xml](pom.xml). Click on the `Open as Project` button.
-Then either build on the command line `./mvnw install` or right click on the `spring-petclinic` project then `Maven -> Generates sources and Update Folders` to generate the CSS.
-Run the application by right clicking on the `PetClinicApplication` main class and choosing `Run 'PetClinicApplication'`.
+In the main menu, choose `File -> Open` and select the Petclinic [pom.xml](pom.xml). Click on the `Open` button.
+
+CSS files are generated from the Maven build. You can either build them on the command line `./mvnw generate-resources`
+or right click on the `spring-petclinic` project then `Maven -> Generates sources and Update Folders`.
+
+A run configuration named `PetClinicApplication` should have been created for you if you're using a recent Ultimate
+version. Otherwise, run the application by right clicking on the `PetClinicApplication` main class and choosing
+`Run 'PetClinicApplication'`.
 
 4) Navigate to Petclinic
 
-- 
GitLab