Declare dependency in section even if dependency not used everywhere?

后端 未结 6 553
醉酒成梦
醉酒成梦 2021-01-31 10:23

We\'re using maven 2.1.0. I have multiple modules that are completely separate, but still have many common dependencies. Like log4J, but some modules don\'t need it. I am wond

6条回答
  •  野性不改
    2021-01-31 11:15

    In a multi-module project I place any common dependencies in the element of the parent pom.xml. I'm not sure if this would be best practice if the modules were not related to the same project though.

提交回复
热议问题