【发布时间】:2015-06-15 06:35:45
【问题描述】:
我有两个 Maven 配置文件
- 构建配置文件
- 测试配置文件
所以每当我这样做时
mvn clean install -P buildProfile
它应该首先隐式激活 testProfile,如果 testProfile 失败,它不应该继续 buildProfile 并将结果标记为失败。
我希望仅在运行 buildprofile 时激活 testProfile。
mvn clean install -P buildprofile --> testProfile(如果testProfile成功则继续buildProfile) + buildProfile
mvn clean install -P anotherProfile ---> anotherProfile
有没有办法做到这一点?
【问题讨论】: