angel_30
angel_30

Reputation: 1

Maven install project automatically when pressing F11 on eclipse

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:

enter image description here

How can I make it automatically select maven install as default whenever I press F11 or the run button?

Upvotes: 1

Views: 233

Answers (1)

Nitin Bisht
Nitin Bisht

Reputation: 5341

Try these steps:

  1. Go to Window -> Preferences.
  2. In the left top corner there is a text field type keys in it as shown below:

enter image description here

  1. Then type install on the text box available on the right side then select Run Maven Install as shown below:

enter image description here

  1. Then there is a lable with Binding below. Select the shortcut keys that you want to use for mvn install as shown below:

enter image description here

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

Related Questions