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!!!

Advertisements

Comments»

No comments yet — be the first.

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

%d bloggers like this: