maven-war-plugin config corrected.
Separate Maven profile to build war (with REST endpoint).