O'Reilly logo

Maven for Eclipse by Sanjay Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building and packaging projects

Building and packaging Maven projects needs execution of required phases, which we discussed in the preceding sections. Let's build and package hello-project from Chapter 3, Creating and Importing Projects, which we generated using archetypes. In the Default Lifecycle section, the phase package executes the following phases in order: compile, test, and package phases. Now, we will see how to invoke the package phase from m2eclipse. The following steps will ascertain this:

  1. Right-click on hello-project and select Run As. Click on Run Configurations and the Run Configurations window will appear.
  2. Right-click on Maven Build and choose New as shown in the following screenshot:
  3. Once the launch configurations window appears, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required