I am using Eclipse Neon for my java project, every time I do any changes to java code, it won't reflect after I save the file (for ex: a simple syso statement). I have to do maven clean and maven install my project then restarts the boot.
Asked
Active
Viewed 1,006 times
-2
-
Eclipse Neon is 11 releases behind. Do not waste time by using outdated software. Please tell the command line used to run it (in the run configuration there is a button _Show Command Line_ to get the command line). – howlger Oct 20 '20 at 06:20
2 Answers
1
Add devtools dependency to your project in pom.xml (if spring boot project) :-
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
And enable Build Automatically in eclipse :-

Gaurav Dhiman
- 953
- 6
- 11
-
build automatically is enabled already, thing is any code doesnot reflect unless i maven clean install and i tired to add above change in pom.xml it gives me this error – Rahul Sharma Oct 20 '20 at 04:18
-
Application run failed Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:205) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE] – – Rahul Sharma Oct 20 '20 at 04:18
-
-
org.springframework.boot spring-boot-starter-data-rest 2.2.5.RELEASE org.springframework.boot spring-boot-starter-quartz pom org.springframework.boot spring-boot-devtools 1.5.3.RELEASE -
-
-
-
-
-
-
In devtools dependency giver version -
2.2.5.RELEASE instead of 1.5.3.RELEASE – Gaurav Dhiman Oct 20 '20 at 04:54 -
hi gaurav, there was some dependencies issues which was not showing while project clean and install, by making new workspace and updating project resolve that. thanks for your help. – Rahul Sharma Oct 23 '20 at 04:25
0
Ensure that Build Automatically option in Project->Build Automatically
, is enabled.
Also try to update the project using Mvn > update project

Alien
- 15,141
- 6
- 37
- 57
-
build automatically is enabled already, thing is any code doesnot reflect unless i maven clean install and i tired to add above change in pom.xml it gives me this error: – Rahul Sharma Oct 20 '20 at 04:04