How to make "mvn compile" and "mvn package" with m2e in Eclipse?

This week, I started using Maven for some of the projects I'm working on, and I'm using Eclipse with the m2e plugin. I looked at it, but I can’t find a way to compile and package it (as far as I can see, I can do clean, generate-sources, test and install). How can this be achieved with m2e?

+7
source share
2 answers
  • Right click on your project
  • Run as
  • Maven build ...
  • Complete your desired goals.
  • Hit Run
+15
source

You need to create your own startup configuration like Maven Build. These four are some predefined builds, but you can create truly customized custom materials.

+1
source

All Articles