How to get Maven to run war:exploded but not war:war

后端 未结 5 1698
长情又很酷
长情又很酷 2020-12-04 16:30

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

5条回答
  •  时光说笑
    2020-12-04 16:56

    According builtin lifecycle bindings for war packaging in package phase war:war mojo is called.

    You can call previous 'prepare-package' phase - all actions will be performed and after that call mojo war:exploded

    mvn prepare-package war:exploded
    

    The results will be the same as yours but no war created.

提交回复
热议问题