Release different configurations with Maven

后端 未结 4 1778
花落未央
花落未央 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 06:08

    Have you taken a look at the Maven Assembly plugin?

    This plugin allows you to customize how your distribution is assembled - i.e. what format (.tar.gz, .zip, etc), directory structure, etc. I think you should be able to bind several instances of the plugin to the package phase to assemble multiple variations of your output (i.e. the packaging for customer 1, customer2, etc, separately).

    The deploy plugin should then automatically handle deploying each of your assembled packages in the target directory to the repository.

提交回复
热议问题