How to enable Java assertions in jetty-maven-plugin? -
how enable assertions in jetty-maven-plugin? default disabled.
set environment variable maven_opts
-ea
. jetty default runs within maven process , affected setting.
there interesting library called force assertions hooks java 1.6 compilation process. during compilation assert cond : detail;
transparently compiled if (!cond) throw new assertion(detail);
blocks, means assertions work no matter jvm parameters are. worth check.
Comments
Post a Comment