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 153420

Summary: Allow mapping of keyboard shortcuts to maven goals
Product: projects Reporter: akochnev <akochnev>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: REOPENED ---    
Severity: blocker CC: anebuzelsky, calvin, chrizzly, fuege, lebedkov, markiewb, reinouts, terje7601
Priority: P3 Keywords: PLAN
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 178644    

Description akochnev 2008-11-18 20:25:05 UTC
It would be great if (similarly to ant based projects) one could map keyboard shortcuts to the execution of standard or
custom maven goals. Currently, only the standard actions (build, run, whatever) have shortcuts mapped to them. 

In my current setup, in the absense of the ability to copy over resources whenever I change the resource files from
main/resources, i want to be able to tap a button to execute a 'custom' maven goal that would copy out the resources to
the deployment directory. Currently, I have to right click on the project, Custom->FooGoal (total of three clicks) in
order to execute an action that I need to do quite often.
Comment 1 Jesse Glick 2008-11-19 00:16:57 UTC
Be careful; there are many unresolved issues with how Ant shortcuts work. Probably we should have a unified GUI, as we
did for the Stop and Rerun actions.
Comment 2 Milos Kleint 2008-12-03 19:06:35 UTC
*** Issue 154499 has been marked as a duplicate of this issue. ***
Comment 3 Milos Kleint 2009-08-20 09:42:13 UTC
*** Issue 170359 has been marked as a duplicate of this issue. ***
Comment 4 Antonin Nebuzelsky 2010-07-30 15:17:00 UTC
Reassigning to default owner.
Comment 5 Jesse Glick 2011-04-27 17:59:57 UTC
*** Bug 187242 has been marked as a duplicate of this bug. ***
Comment 6 _ gtzabari 2012-07-12 20:18:06 UTC
I am using http://code.google.com/p/maven-android-plugin/ to build Android under Netbeans. One major feature I'm missing is the ability to map F6 to the custom goal for deploying to device.

Jesse, could you elaborate on what you meant by a unified GUI? How would it help with our use-cases?
Comment 7 dusanmsk 2012-07-16 15:18:55 UTC
Will be great, clicking by mouse if you have many opened projects is not a best way.
Comment 8 _ gtzabari 2012-10-09 23:53:39 UTC
Milos,

Is this issue being considered for Netbeans 7.3?
Comment 9 Milos Kleint 2013-04-29 12:47:26 UTC
in 7.4 global custom actions can be associated with an action/toolbar icon. No association is made with keyboard shortcuts but one can do that manually after the toolbar action is created.

Only 6 custom maven actions can be added to toolbar.
Comment 10 Christian Lenz 2014-08-05 11:14:32 UTC
What I prefer is a shortcut to open a little dialog with a list of all goals or only the custom goals, with a search, if the list is to long. So we can find the right goal, select it and run it. For now, I have to select the project, do a right click, go to custom and execute the goal.

A little dialog would be handy, in my opinion.


Regards

Chris
Comment 11 Martin Balin 2016-07-07 08:38:20 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 12 _ gtzabari 2016-07-07 21:33:20 UTC
Still relevant in dev build 201607060002.

Also, to clarify, I am looking for keyboard shortcuts in order to repeat common operations. Providing a dialog wouldn't help in my case because it gets in the way of quick execution.