-2

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.

  • 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 Answers2

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 :-

enter image description here

Gaurav Dhiman
  • 953
  • 6
  • 11
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