简体   繁体   中英

How can i clean Maven plugin bindings?

I want to clear all plugin bindings from default Maven lifecycle. And manually set, only plugins i need. Is it possible?

The <packaging> element in the POM determines the Build Lifecycle .

Check the Default Lifecycle Bindings - Packaging pom section of that page - pom packaging binds only install and deploy plugins by default.

Start with pom packaging and add whatever plugins you need.

Don't forget to use something like build-helper:attach-artifact from Build Helper Maven Plugin to attach the build artifact(s), only the POM will be installed/deployed otherwise.

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