Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…izer-tool into update-scm-url
  • Loading branch information
nagu165 committed Jan 3, 2025
2 parents 468a962 + 60eede4 commit 3535ff2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ public class MavenInvoker {
request.addArg("--version");
request.setOutputHandler(version::set);
invoker.execute(request);
return new ComparableVersion(version.get());
String versionValue = version.get();
if (versionValue == null) {
LOG.error("Failed to check for maven version. Make sure Maven and Java are installed correctly.");
return null;
}
return new ComparableVersion(versionValue);
} catch (MavenInvocationException e) {
LOG.error("Failed to check for maven version", e);
return null;
Expand Down

0 comments on commit 3535ff2

Please sign in to comment.