giulong commented on PR #436: URL: https://github.com/apache/maven-wrapper/pull/436#issuecomment-5074583182
> You most probably want this instead https://github.com/apache/maven-wrapper/pull/437 I was thinking about something like this (currently a draft): ```java String resolveVersionRange(String version) { try { Artifact artifact = new DefaultArtifact("org.apache.maven:apache-maven:" + version); VersionRangeRequest versionRangeRequest = new VersionRangeRequest(); versionRangeRequest.setArtifact(artifact); versionRangeRequest.setRepositories(session.getCurrentProject().getRemotePluginRepositories()); return repositorySystem .resolveVersionRange(repositorySystemSession, versionRangeRequest) .getHighestVersion() .toString(); } catch (VersionRangeResolutionException e) { return version; } } ``` Maybe I'm missing something, I'll check your suggestion in the next days -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
