How to exclude file on maven release:prepare and release:perform?

徘徊边缘 提交于 2019-12-07 07:39:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!