开发者

Building a single package containing multi-env setup with Maven

we are asked to build package that contains configurations 开发者_运维百科for ALL environments, the resulting package should like:

/bin

/lib

/config/prd/instance1

/config/prd/instance2

/config/uat/instance1

All config files are filtered and we can apply filters with resources plugin to build for 1 environment by specifying different profiles.

How can we extend the package to include other environments?


First, just FYI: package is part of the build lifecycle. See here. You can't really extend IT per se, however, you can add in additional plugins that run during that cycle.

Take a look at the assembly plugin. I believe that with it you should be able to provide a custom assembly descriptor to suit your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜