Skip to content

Commit 0cbfc20

Browse files
committed
updated README
1 parent 2d595e8 commit 0cbfc20

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.adoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ The method getId() is undefined for the type ProxyRouteLocator.ProxyRouteSpec
135135
The method getLocation() is undefined for the type ProxyRouteLocator.ProxyRouteSpec PreDecorationFilter.java /spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters/pre line 55 Java Problem
136136
----
137137

138+
==== Importing into Intellij
139+
Spring Cloud projects use annotation processing, particularly Lombok, which requires configuration
140+
or you will encounter compile problems. It also needs a specific version of maven and a profile
141+
enabled. Intellij 14.1+ requires some configuration to ensure these are setup properly.
142+
143+
1. Click Preferences, Plugins. *Ensure Lombok is installed*
144+
2. Click New, Project from Existing Sources, choose your spring-cloud-sleuth directory
145+
3. Choose Maven, and select Environment Settings. *Ensure you are using Maven 3.3.3*
146+
4. In the next screen, *Select the profile `spring`* click Next until Finish.
147+
5. Click Preferences, "Build, Execution, Deployment", Compiler, Annotation Processors. *Click Enable Annotation Processing*
148+
6. Click Build, Rebuild Project, and you are ready to go!
149+
138150
==== Importing into other IDEs
139151
Maven is well supported by most Java IDEs. Refer to you vendor documentation.
140152

@@ -162,7 +174,7 @@ added after the original pull request but before a merge.
162174
* Use the Spring Framework code format conventions. If you use Eclipse
163175
you can import formatter settings using the
164176
`eclipse-code-formatter.xml` file from the
165-
https://github.com/spring-cloud/build/tree/master/eclipse-coding-conventions.xml[Spring
177+
https://github.com/spring-cloud/spring-cloud-build/blob/master/spring-cloud-build/eclipse-code-formatter.xml[Spring
166178
Cloud Build] project. If using IntelliJ, you can use the
167179
http://plugins.jetbrains.com/plugin/6546[Eclipse Code Formatter
168180
Plugin] to import the same file.

0 commit comments

Comments
 (0)