The main part correctly answered Thorbjorn Ravn Andersen.
This answer attempts to shed light on the remaining question: how can a class file with errors get into the bank?
Each assembly (mvn & javac or eclipse) signals in its specific way when it gets into a compilation error and refuses to create a Jar file (or at least warn you). The most likely reason for silently receiving class files with errors in the bank is the simultaneous operation of Maven and Eclipse.
If you have Eclipse open when you run the mvn build, you must disable Project > Automatically create until mvn completes.
Stephan Herrmann May 02 '15 at 19:57 2015-05-02 19:57
source share