-
Is there a way with m2e core/maven runtime to obtain all versions of an artifact (either I thought I'd go with org.apache.maven.project.MavenProject, get its list of I found Anything you could recommend or give some pointers? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is a demo using the resolver here: You can find an example in m2eclipse here: |
Beta Was this translation helpful? Give feedback.
-
Thanks very much! Precisely what i was looking for! |
Beta Was this translation helpful? Give feedback.
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:
m2e-core/org.eclipse.m2e.pde.target/src/org/eclipse/m2e/pde/target/MavenTargetLocation.java
Lines 417 to 444 in 19a4aba