Gogi
Gogi

Reputation: 1695

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

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.

Upvotes: 4

Views: 2821

Answers (1)

Gogi
Gogi

Reputation: 1695

This feature was implemented in version 2.1

Upvotes: 3

Related Questions