Daily Archives: March 11, 2015

Explanation for pom.xml

<project>

<modelVersion>4.0.0</modelVersion> <!–shows pom.xml structure complies with 4.0.0 version. Normally, it is 4.0.0>

<groupId>mvn.myapp.com</groupId>  <!–where the project locate> 
<artifactId>MavenTestApp</artifactId>  <!–project name>
<packaging>jar</packaging>  <!– the form of the compiled result, normally, it can be jar, war and ear.>
<version>1.0-SNAPSHOT</version>  <!– version of the project, SNAPSHOT means it is still under development>
<name>Maven Quick Start</name>   <!–name of the project>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>