Book Image

Maven for Eclipse

By : Sanjay Shah
Book Image

Maven for Eclipse

By: Sanjay Shah

Overview of this book

<p>Starting with an exploration of the Maven architecture and its installation, you will then learn how to install m2eclipse, which provides Maven integration with Eclipse. Furthermore, the book guides you through the stages of project creation, including building, testing, and executing the projects.</p> <p>You will learn to customize your projects by demonstrating different core concepts of the Maven project structure. Nevertheless, you will also become familiar with the build lifecycles that generate the required artifacts. Moreover, it will also guide you through the process of handling multimodule projects and working with them effectively.</p> <p>By the end of this book, you will have a good understanding of m2eclipse and will be able to use it efficiently with ease.</p>
Table of Contents (14 chapters)
Maven for Eclipse
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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

deploy

deploy:deploy