Skip to content

Commit

Permalink
Make compatible with maven 3.8.8 and 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
akuhtz committed Apr 18, 2023
1 parent 14638b2 commit 57e6474
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ private boolean retrieveBinaryBits(Artifact a) throws MojoExecutionException {

try {
ArtifactRequest request = new ArtifactRequest(a, repositories, null);
return repositorySystem.resolveArtifact(repositorySystemSession, request).getLocalArtifactResult().isAvailable();
return repositorySystem.resolveArtifact(repositorySystemSession, request).isResolved();
} catch (IllegalArgumentException e) {
throw new MojoExecutionException("Illegal Argument Exception", e);
} catch (ArtifactResolutionException e) {
Expand Down Expand Up @@ -699,7 +699,7 @@ private Artifact chooseBinaryBits() throws MojoExecutionException {
try {
ArtifactRequest request = new ArtifactRequest(artifact, repositories, null);

return repositorySystem.resolveArtifact(repositorySystemSession, request).getLocalArtifactResult().getRequest().getArtifact();
return repositorySystem.resolveArtifact(repositorySystemSession, request).getArtifact();
} catch (ArtifactResolutionException e) {
throw new MojoExecutionException(e);
}
Expand Down

0 comments on commit 57e6474

Please sign in to comment.