Keyboard shortcut to run maven goals in Intellij IDEA?
Is there a way to开发者_高级运维 run a maven goal using keyboard shortcut in Intellij IDEA?
Settings | Keymap | Maven Goals (or right click on the Maven goal in the IDEA Maven Projects panel and select Assign Shortcut...)
You can associate a Maven
goal with a keyboard shortcut and execute commonly-used goals with a single key-stroke. In a Maven project, its goals appear under the Maven goals node in the
Keymap
dialog.
To associate a keyboard shortcut with a Maven goal :
- In the
Maven Projects tool window
, right-click the desired goal. - On the context menu, choose Assign Shortcut.
Keymap
dialog appears. - Configure keymap, as described in the section
Configuring Keyboard Shortcuts
.
Pretty old question but still of interest (at least for me):
So, for IntelliJ 2017 go to Preferences | Keymap then assign your shortcut to Plug-ins | Maven Integration | Execute Maven Goal
精彩评论