When building a Maven artifact of type
ear packaging type is invoked.
maven-ear-plugin replaces the
maven-jar-plugin at this point, so it is as though you included it in your
generate-application-xml goal binds by default to the
ear goal binds by default to the
So at the end of the day by declaring a packaging type of
ear, you cause two goals—not one—to be run.