The most common build activity I do in Eclipse (other than allowing auto-build to do its thing) is to perform a \"Maven Build...\" with parameters of clean and package. Thi
It looks like there's a couple of ways to do this - none directly in Eclipse:
I've rediscovered key bindings in Eclipse. It's not exactly what I want, but it works well enough, I suppose. I simply bind F7 to Maven's test hook. It's not the same as "mvn clean package
" but it'll do until I find a better solution.
Here's how I did it:
Now, when you press F7, eclipse will run "mvn test
".
For whatever reason, and I'm sure it's a perfectly good one, the m2eclipse plugin authors didn't provide a "Run Maven package" hook. Sigh.
If you create a Maven Run Configuration and put a number as the first character in the name, then you can use Shift-Alt-X Ctrl-M N, where N is the number you gave as first character in the name. For your case, do the following.