I have a Maven pom that uses war. But actually, I don\'t want build the war-file, I just want all the dependent jars collect
war
The solution is quite simple. You need to override the default execution of the war plugin to disable it and add your own execution (for exploded):
org.apache.maven.plugins maven-war-plugin default-war none war-exploded package exploded