Issue
I have maven java project in eclipse. I right click project, choose "Build project" and I want "mvn package" get invoked automatically. Is it possible?
Solution
Rightclick on your pom.xml and choose "Run as" -> "Maven build.."
and put in Goals:package
.
If you now select "run" (CTRL + F11) it will run automatically if you select these run configuration.
And as Chris said, m2e is required.
Answered By - xoned