Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Listing all versions of artifact tagged with a classifier

I think the version range request uses only groupId and artifactId

Jeff


On Sat, Dec 21, 2013 at 1:25 AM, Bk Lau <bklau2006@xxxxxxxxx> wrote:
Hi :

I was trying to list all versions of an artifacts tagged with a classifier but it seems that the
VersionRangeRequest returns all the versions regardless whether it has a classifier of not:

Example: Supposed that I have these 2 artifacts:

com.abc:HelloWorld:war:1.0.0
com.abc:HelloWorld:war:Hot-Fix:1.0.0.1

If I specified the Artifact as

1. Artifact = new  DefaultArtifact("com.abc", "HelloWorld, "war", "[0)");
2. Artifact = new  DefaultArtifact("com.abc", "HelloWorld, "Hot-Fix", "war", "[0)");

Using VersionRangeRequest on #1, I got versions {1.0.0,1.0.0.1} as expected.
But on #2, it still gives me  the same result {1.0.0,1.0.0.1}.
I was expecting the result to be {1.0.0.1}.
Am I missing something here?.

Thanks,

BK

_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aether-users




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top