How to make maven place all jars common to wars inside the same EAR to EAR root?

前端 未结 4 597
梦如初夏
梦如初夏 2020-12-12 18:18

We have a solution with numerous wars. Wars are similar in the sense they all use hibernate and spring. This means that we have a number of same jars inside each war. This i

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-12 19:08

    You can set the dependancies scope to "provided". This means they will be provided by some other module and will not be included in the final jar or war.

    Perhaps the assembly plugin can help you when packaging up the final EAR and place common jars there.

提交回复
热议问题