How to exclude file on maven release:prepare and r

2019-05-04 17:26发布

问题:

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