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.

Bug 227283 - Allow creating Toolbar buttons for custom Maven runs
Summary: Allow creating Toolbar buttons for custom Maven runs
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 13:08 UTC by pekarna
Modified: 2013-04-24 02:13 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2013-03-11 13:08:51 UTC
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.
Comment 1 pekarna 2013-03-11 13:13:56 UTC
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
Comment 2 Milos Kleint 2013-03-11 13:21:40 UTC
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.
Comment 3 Milos Kleint 2013-04-22 16:36:02 UTC
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.
Comment 4 Quality Engineering 2013-04-24 02:13:42 UTC
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