Release different configurations with Maven

后端 未结 4 1776
花落未央
花落未央 2020-12-07 05:27

I\'m currently migrating our build process to Maven from Ant. Our application is deployed to many different customers, each with a unique set of dependencies and and configu

4条回答
  •  一个人的身影
    2020-12-07 05:50

    I would take a look at your architecture and see if there is a way to split up your project into multiple projects. One would be the main code base. The other projects would depend on the JAR file produced by the main project and add in their own configuration, dependencies, etc to produce your final artifact.

    This would let you version customer specific code independently of each other as well as keeping common code in one place and separate from customer specific stuff.

提交回复
热议问题