I haven't found a direct way to retrieve the ArtifactMetadataSource
instance to retrieve the list of available versions in the repository,
I have to explicitly look it up in the plexus container.

Did I miss something? if not it would be useful to expose the
ArtifactMetadataSource or add a getAvailableVersions method to the
embedder


   public List<ArtifactVersion> getAvailableVersions(Artifact
artifact, List<ArtifactRepository> remoteRepositories,
ArtifactRepository localRepository)
{

ArtifactMetadataSource artifactMetadataSource =
(ArtifactMetadataSource) mavenEmbedder.getPlexusContainer().lookup(
                       ArtifactMetadataSource.ROLE);

           return
artifactMetadataSource.retrieveAvailableVersions(artifact,
localRepository, remoteRepositories);
}

--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                            -- The Princess Bride

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to