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

The package-specific lifecycle

Each type of packaging has its own set of default goals. The default goals for JAR packaging is different from WAR packaging. Maven provides a lifecycle for the following built-in packaging types:

  • JAR
  • WAR
  • EAR
  • POM
  • EJB
  • Maven plugins

The lifecycle and goal binding for WAR packaging is described here. For other packaging lifecycle and goal binding, please refer to http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings.

Phases

plugin:goals

process-resources

resources:resources

compile

compiler:compile

process-test-resources

resources:testResources

test-compile

compiler:testCompile

test

surefire:test

package

war:war

install

install:install ...

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