Reputation: 1
I have a maven project in Eclipse. Everytime when I need to do maven install
, I have to right click on the project/POM and select maven install
. But when I press F11
, it shows me a list of Run As
possibilities, which again I need to select maven install
:
How can I make it automatically select maven install
as default whenever I press F11
or the run button
?
Upvotes: 1
Views: 233
Reputation: 5341
Try these steps:
Window
-> Preferences
.keys
in it as shown below:install
on the text box available on the right side then select Run Maven Install
as shown below:Binding
below. Select the shortcut keys that you want to use for mvn install
as shown below:Here Ctrl+M
is the shortcut key that I used. Don't forget to click on Apply and Close
button. It should work.
Upvotes: 3