Must run "maven package" to update unit tests

I recently turned on dependency management in maven2 for a web project in which I had a simple test class.

Before adding maven2 control, whenever I update the test, this change will look instantly.

However, now I need to run "mvn clean package" before minor changes can be made.

I see that "Maven Builder: AUTO_BUILD" is launched whenever I save the class, but the update is simply not caught until I run the mvn target.

I also cannot configure "Maven Builder" when I right-click on a project and go to "Properties"> "Constructors".

Any help on this would be greatly appreciated.

Thanks Gearoid.

+1
source share
1 answer

Strange - I right-clicked on my project and went to Properties> Maven> LifeCycle Mapping.

I added a “package” to the display, and everything started working correctly.

Interestingly, I came back and deleted the “package”, and everything worked fine.

+1
source

All Articles