Skip to content

Commit

Permalink
JCRVLT-774 Allow to overwrite resolvePackageInfo(Dependency) through
Browse files Browse the repository at this point in the history
subclasses
  • Loading branch information
kwin committed Aug 11, 2024
1 parent 897416c commit 2f6ca00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ protected AbstractDependencyResolver(@NotNull Collection<PackageInfo> packageInf
* @return the resolved package info or {@code null}
* @throws IOException
*/
private @Nullable PackageInfo resolvePackageInfo(@NotNull Dependency dependency) throws IOException {
protected @Nullable PackageInfo resolvePackageInfo(@NotNull Dependency dependency) throws IOException {
// resolving a version range is not supported with Maven API, but only with lower level Aether API (requires Maven 3.5 or newer)
// https://github.com/eclipse/aether-demo/blob/master/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/FindAvailableVersions.java
// therefore do an best effort resolve instead

final String groupId = dependency.getGroup();
final String artifactId = dependency.getName();
PackageInfo info = null;
Expand Down

0 comments on commit 2f6ca00

Please sign in to comment.