Question

When I click "Debug test file" in NetBeans on certain class, it is run against the binaries compiled from the last build.

I'd like NetBeans to recompile, but I can't find how to achieve that.

Also, it seems that sometimes the recompile happens - i.e. Maven is invoked. Must mostly I get runs with obsolete binaries.

How can I force NetBeans to recompile before running a (single) test?

Was it helpful?

Solution

Disabling Compile on Save feature in project properties should do. Then Maven build is executed all the time. Please note that in upcoming 7.4, Maven builds are always executed but with Compile on Save turned on, the phase execution is skipped.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top