Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to run mvn clean install every time. Changes made in Eclipse are not reflected

I need to run mvn clean install every time. Changes made in Eclipse are not reflected.

Build automatically is enabled and Eclipse is Neon.3

If I made some changes in Junit, to make that get reflected I need to manually do mvn clean install outside Eclipse and then run the Junit from Eclipse. It's like the class files are not getting generated from Eclipse.

Because of this I can't even run a standalone Java class and run it through Eclipse, it will show "Error: Could not find or load main class Test".

Any advice?

like image 918
abyin007 Avatar asked Sep 17 '25 21:09

abyin007


1 Answers

In eclipse, right click on the project and do a Maven Update.

Eclipse snapshot

like image 120
mhlaskar1991 Avatar answered Sep 19 '25 09:09

mhlaskar1991