Reputation: 81
I want to bind the mvn package command in eclipse. So I used the normal procedure to do this: Window->Preferences->General->Keys and then I filtered for Maven. The only commands that showed up were Run Maven Build, Run Maven Install, Run Maven Clean, etc. Run Maven package doesn't appear. It would really help to have a key binding for this command, thanks for your help.
Upvotes: 8
Views: 12821
Reputation: 17895
The approach I use in this case is to create run configurations for the goals I want (mvn package
in your case) and then use key bindings to access those run configs:
mvn package
Now, to execute mvn package
on your project, press:
shift-alt-X, M
enter
To execute mvn clean install -DskipTests
on your project, press:
shift-alt-X, M
down
down
enter
Upvotes: 9