Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I try to use option:

checkModificationExcludeList

but I don't know correct syntax:

mvn -U release:prepare checkModificationExcludeList myfile.txt

doesn't work.

like image 404
user710818 Avatar asked Dec 10 '22 00:12

user710818


1 Answers

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.

like image 141
Kalpak Gadre Avatar answered Feb 13 '23 03:02

Kalpak Gadre