jump to navigation

Maven <classifier> tag February 16, 2008

Posted by Mayank in maven.
Tags: , , , ,
trackback

Maven has a <classifier> tag which helps in locating artifacts in the repo with a further level of granularity.

Hence, if you were using testng 5.7 for jdk1.5 your pom would look like this:

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.7</version>
<classifier>jdk15</classifier>
<scope>test</scope>
</dependency>

This will get the artifact testng-5.7-jdk15.jar from the repo.

Enjoyyy!!!

Comments»

No comments yet — be the first.