mvn

Basic

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

...

<modelVersion>4.0.0</modelVersion>

<groupId>com.xxx</groupId>
<artifactId>package-name</artifactId>
<packaging>war</packaging>
<version>2.0.0</version>
<name>Name</name>
<description>This is a description</description>

...

</project>

Dependencies

Dependencies goes to `~\.m2\repository`

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>

...

<xyz.version>10.0.1</xyz.version>

...

</properties>

...

<dependencies>
<!-- This is comment -->
<dependency>
<groupId>com.xxx.www</groupId>
<artifactId>package-name-1</artifactId>
<version>${xyz.version}</version>
</dependency>
<dependency>
<groupId>com.xxx.www</groupId>
<artifactId>package-name-2</artifactId>
<version>${xyz.version}</version>
<scope>test</scope>
</dependency>

...

</project>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s