Skip to content

[Question] Determine artifact available versions? #1213

Answered by laeubi
BoykoAlex asked this question in Q&A
Discussion options

You must be logged in to vote

There is a demo using the resolver here:

https://github.com/apache/maven-resolver/blob/master/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/FindAvailableVersions.java

You can find an example in m2eclipse here:

public MavenTargetDependency update(MavenTargetDependency source, IProgressMonitor monitor) throws CoreException {
Artifact artifact = new DefaultArtifact(source.getGroupId() + ":" + source.getArtifactId() + ":(0,]");
IMaven maven = MavenPlugin.getMaven();
RepositorySystem repoSystem = M…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BoykoAlex
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants