Ok so I test it and it works now. Thank you! I'm so stupid I didn't check
that I was importing the legacy one and not the maven api one!!!
By the way, in maven 3 it seems that this interface is deprecated. How do
you plan to provide this kind of service in the future?
Many thanks,
Romain.
Hi all,
I'm developing a maven plugin and I want to discover the last version of a
specific artifact. I had a look to the maven-vesions-plugin. But I don't
know why when I try to get a (deprecated) ArtifacteMetadataSource as follow:
@Component
private ArtifactMetadataSource
You're probably missing a dependency.
Jeff
On Wed, Oct 30, 2013 at 2:24 PM, Romain Gilles romain.gil...@gmail.comwrote:
Hi all,
I'm developing a maven plugin and I want to discover the last version of a
specific artifact. I had a look to the maven-vesions-plugin. But I don't
know why when
Looking at the *MetadataSource components in the Maven source they're only
bound under:
org.apache.maven.artifact.metadata.ArtifactMetadataSource
and not:
org.apache.maven.repository.legacy.metadata.ArtifactMetadataSource
For example in MavenMetadataSource.java: