Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Project Object Model


Any Maven project must have a pom.xml file. POM is the Maven project descriptor, just like the web.xml file in your Java EE web application or the build.xml file in your Ant project. The following code lists out all the key elements in a Maven pom.xml file. As we proceed with the book, we will discuss how to use each element in the most effective manner:

<project>
  <parent>...</parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>...</groupId>
  <artifactId>...</artifactId>
  <version>...</version>
  <packaging>...</packaging>
   
   <name>...</name>
  <description>...</description>
  <url>...</url>   
  <inceptionYear>...</inceptionYear>
  <licenses>...</licenses>
  <organization>...</organization>
  <developers>...</developers>
  <contributors>...</contributors>


  <dependencies>...&lt...