[
https://issues.apache.org/jira/browse/MSHARED-627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884911#comment-15884911
]
Robert Scholte commented on MSHARED-627:
----------------------------------------
You should never ask an Artifact with a version*range*, but always with one
explicit version, see also
http://maven.apache.org/shared/maven-artifact-transfer/comparison.html
However, if you say: I want to know all versions for a specific GA, then using
the artifact makes sense.
In this case we are looking for a MetadataResolver, returning
[Metadata|http://maven.apache.org/ref/3.3.9/maven-repository-metadata/]
> Enhance the ArtifactResolver with a method to resolve versions of an Artifact
> -----------------------------------------------------------------------------
>
> Key: MSHARED-627
> URL: https://issues.apache.org/jira/browse/MSHARED-627
> Project: Maven Shared Components
> Issue Type: Improvement
> Components: maven-artifact-transfer
> Affects Versions: maven-artifact-transfer-0.9.0
> Reporter: Karl Heinz Marbaise
> Assignee: Karl Heinz Marbaise
> Priority: Minor
> Fix For: maven-artifact-transfer-1.0.0
>
>
> The maven-artifact-transfer should be enhanced having a method to resolve
> versions of artifacts like this:
> {code:java}
> public interface ArtifactResolver {
> ..
> List<String> resolveArtifactVersions( ProjectBuildingRequest buildingRequest,
> Artifact mavenArtifact )
> throws ArtifactResolverException;
> ..
> }
> {code}
> I have a [working implementation|https://svn.apache.org/r1784464] but I'm not
> sure if it should return a list of versions as plain String ?
> This will help to use maven-artifact-transfer also in other plugin for
> example in versions-maven-plugin.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)