March 09
Prof. Ismael H. F. Santos                                                                               2
nPrinciples cont..
n3. Declarative execution- POM model.
npom.xml - *This pom will allow you to compile, test and generate basic documentation.
n
§
§<project>
§ <modelVersion>4.0.0</modelVersion>
§  <groupId>com.mycompany.app</groupId>
§  <artifactId>javaero</artifactId>
§  <packaging>jar</packaging>
§  <version>1.0-SNAPSHOT</version>
§  <name>Javaero</name>
§  <url>http://maven.apache.org</url>
§  <description></description>
§ <dependencies>
§     <dependency>
§       <groupId>junit</groupId>
§       <artifactId>junit</artifactId>
§       <version>3.8.1</version>
§       <scope>test</scope>
§     </dependency>
§  </dependencies>
§</project>
project-
Top level element
Of pom.xml
version-
Version of the generated
Artifact.
SNAPSHOT- project is
In a state of development
name-
Display name used for the
Project. Often used in generated
Documentation, during build process
Of the project, or projects that use it
As a dependency
modelVersion-
Version of the object
Model this POM is using
groupId-
Unique identifier of the
Organization that created
The project.
artifactId-
Unique base name of the
Primary artifact being
Generated by the object.
Ex. Javaero-1.0.jar
packaging-
Type of packaging to be
Used by this artifact.
Ex. JAR, WAR, or EAR
url-
This element indicates
Where the project’s site
Can be found.
description-
Basic description of the
Project.
Conceitos básicos