I've started this week to use Maven for some projects I'm working on and I use Eclipse with the m2e plugin. I've been having a look at it but I can't find a way to compile and package (as far as I can see I can do clean, generate-sources, test and install). How can this be achieved with m2e?
Building and Running the Maven Project in Eclipse To run the maven project, select it and go to “Run As > Java Application”. In the next window, select the main class to execute. In this case, select the App class and click on the Ok button. You will see the “Hello World” output in the Console window.
M2Eclipse provides tight integration for Apache Maven into the Eclipse IDE with the following features: Rich editor for pom. xml files. Launching Maven builds from within Eclipse. Dependency management for Eclipse build path based on Maven's pom.
m2e stands for maven to eclipse plugin.
You have to create own Run Configuration of type Maven Build. These four are some kind of predefined builds, but you can create really customized own stuff.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With