0
当我做mvn clean install
时,它将运行一个默认的活动maven配置文件和主POM。Maven配置文件依赖于另一个配置文件
当我做mvn clean install -P anotherProfile
它正在执行默认的活动maven profile + anotherProfile。
但是,如果默认配置文件失败,我不希望另一个配置文件运行,我该怎么做?
如:
mvn clean install - default active profile
mvn clean install -P anotherProfile - default+anotherProfile
第二线工作正常,但我不希望它运行anotherprofile
如果默认配置文件失败。
您是在Windows/Linux/Mac OS X上? –
http://stackoverflow.com/users/40064/wim-deblauwe:windows –