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 –