maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <>
Subject clarifications on ArtifactRepository#find(Artifact) and ArtifactRepository#findVersions(Artifact)
Date Tue, 07 Jan 2014 13:23:49 GMT
Hi all mates,

I am having some troubles about how the methods in subject should behave,
due to the not exhaustive javadoc: given the artifact


when invoking ArtifactRepository#find(Artifact) it always return an
artifact, even if it doesn';t exist in the target repo; given the artifact


when invoking ArtifactRepository#findVersions(Artifact) it always return an
empty list, even if there are versions deployed o the target repo.

Can you please explain me which is the right way to check if an artifact
exists on a repo?

Many thanks in advance and happy new year!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message