Issue
Is there some way to add to the existing maven configurations in the "run configuration menu", available in "Run -> Run as" in Eclipse? I'd like to add my commonly used goals, like "integration-test", to the existing ones, like "maven build" etc.
I used the variable "${project_loc}" for base directory, but how can I place the new configuration in the maven run configuration menu? I don't see the option in the preferences or anywhere.
Solution
Short answer is you can't. Eclipse generally encouraging to not clutter context menus.
However when using m2eclipse you can use Run As... / Maven Build...
menu to create launch configurations for your Maven builds. After that you can use Run As... / Maven Build
(or Alt-Shift-X, M shortcut) to invoke previously created configurations, so if there is more then one been created you'll see a selection dialog.
Answered By - Eugene Kuleshov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.