This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The toolbar icons only allow standard Maven tasks like clean, clean install, install, test etc. It would be very useful if there was a possibility to add buttons with custom Maven command to be executed (and a custom icons). Currently, the only way is to misuse other buttons. E.g. I don't use Clean Project, so I redefined the Clean goal in Project -> Properties -> Actions to do Deploy for me. Doesn't really need an extra editor. Even something like "Custom Action 1", "Custom Action 2", "Custom Action 3" would help; Users could use these instead of such like Clean Project. Thanks for considering.
Note that this would also make using Maven profiles in NetBeans a lot easier. The dropdown menu selection isn't applied for builds. Also see Bug 226242
most likely a duplicate of another issue, not a defect though. (In reply to comment #1) > Note that this would also make using Maven profiles in NetBeans a lot easier. > The dropdown menu selection isn't applied for builds. I'm not following this part.
http://hg.netbeans.org/core-main/rev/3a2410f34fd2 adds up to 6 custom maven execution icons/actions that can be added to Build toolbar. Only the global actions edited in Tools/Options/Maven can be associated with these. Actually The button in the dialog creates the action and the toolbar representation on the fly. Removal also possible.
Integrated into 'main-golden', will be available in build *201304232301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3a2410f34fd2 User: Milos Kleint <mkleint@netbeans.org> Log: #227283 add toobar action for custom maven bindings