简体   繁体   中英

Remove files on mvn release:prepare

I have some files that I only need for local development, and do not want to be packaged up in a release.

How can I add an automatic step to the POM so that it removes files when I do a mvn release:prepare ?

If the files for local development are in a self contained module then you can pass an -N flag.

Source - http://maven.apache.org/maven-release/maven-release-plugin/faq.html

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

If you are using version 2.1 or higher.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM