I'd like to build our project from the command line as a JAR without modifying the POM, which has the <packaging>war</packaging>
configuration.
Is there a way to do this?
I'd like to build our project from the command line as a JAR without modifying the POM, which has the <packaging>war</packaging>
configuration.
Is there a way to do this?
I was not able to explicitly build a jar while preventing the building of a war as well. But I realized I didn't have to. With this configuration of the maven-assembly-plugin, and the packaging set to WAR in my POM, a fat-jar and a war will always be created.
If this questions / answer seems confusing / not useful to searchers, feel free to delete it. Thanks to everyone who helped me get here.