문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top