问题
I am using maven to release/tag my projects, and I am using some propery files and want mvn:prepare to exclude those under release. I tried using the following command:
mvn release:prepare -DpreparationGoals="clean install"
-DcheckModificationExcludeList=props.properties
But it still gives me the following error:
[INFO] Cannot prepare the release because you have local modifications :
[props.properties:unknown]
So the question is: how can ACTUALLY make maven mvn:release skip checking for certian local modifications? Thanks for your time.
回答1:
This feature was implemented in version 2.1
来源:https://stackoverflow.com/questions/10833584/how-to-exclude-file-on-maven-releaseprepare-and-releaseperform