Maven creates both war and jar packages.

+ maven-jar-plugin