maven deploy additional jar file

前端 未结 6 1013
花落未央
花落未央 2020-12-30 00:05

I have an artifact which is being built and deployed in a particular way (not as a jar file). In the course of deployment, a war file is built.

How can I configure t

6条回答
  •  心在旅途
    2020-12-30 00:18

    The "maven way" is to split out src/main/java into a separate module, and have the war file depend on that.

    If you're absolutely resistant to that approach, you may be able to use a profile to alter the contents of the packaging element. I'm not sure if that's possible though.

提交回复
热议问题