[英]Maven install project automatically when pressing F11 on eclipse
I have a maven project in Eclipse. 我在Eclipse中有一个Maven项目。 Everytime when I need to do
maven install
, I have to right click on the project/POM and select maven install
. 每当我需要进行
maven install
,都必须右键单击项目/ POM,然后选择maven install
。 But when I press F11
, it shows me a list of Run As
possibilities, which again I need to select maven install
: 但是,当我按
F11
键时,它向我显示了“ Run As
可能性的列表,再次需要选择maven install
:
How can I make it automatically select maven install
as default whenever I press F11
or the run button
? 每当我按下
F11
或run button
时,如何使其自动将maven install
选择为默认maven install
?
Try these steps: 请尝试以下步骤:
Window
-> Preferences
. Window
-> Preferences
。 keys
in it as shown below: keys
,如下所示: install
on the text box available on the right side then select Run Maven Install
as shown below: install
,然后选择Run Maven Install
,如下所示: Binding
below. Binding
的标签。 Select the shortcut keys that you want to use for mvn install
as shown below: mvn install
的快捷键,如下所示: Here Ctrl+M
is the shortcut key that I used. 这里
Ctrl+M
是我使用的快捷键。 Don't forget to click on Apply and Close
button. 不要忘记单击“
Apply and Close
按钮。 It should work. 它应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.