質問

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