【发布时间】:2012-03-11 00:15:54
【问题描述】:
我想为不同的 maven 配置文件提供不同的 spring 配置文件。 Filtering 接近我想要的,但它只更改一个文件中的属性。我想要的是根据配置文件包含/排除和重命名文件。例如,我有文件 profile1-config.xml 和 profile2-config.xml。对于 profile1 构建,profile1-config.xml 被重命名为 config.xml,并且 profile2-config.xml 被排除在构建之外。对于 profile2 构建,profile2-config.xml 被重命名为 config.xml,并且 profile1-config.xml 被排除在构建之外。 这在maven中可行吗?
【问题讨论】:
标签: maven