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:
hello-projectand select Run As. Click on Run Configurations and the Run Configurations window will appear.