How to set exclude list in command line for maven release plugin?

file, maven, plugins, release

Solution

Correct syntax for excluding files from local modifications check is,

mvn release:prepare -DcheckModificationExcludeList=one.txt,two.txt

Make sure that you pass the argument using -D

For files in sub directories, I believe you simply need to give the file name and the path can be skipped.

Problem

I try to use option: ``` checkModificationExcludeList ``` but I don't know correct syntax: ``` mvn -U release:prepare checkModificationExcludeList myfile.txt ``` doesn't work.

Original source