Skip to content

Commit

Permalink
Maven CLI: better verbose + added debug for upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek committed Dec 11, 2024
1 parent 98a9361 commit a43a97c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ public Integer updateProject(TargetQuarkusVersionGroup targetQuarkusVersion, Rew
args.add(ToolsUtils.getPluginKey(props) + ":" + ToolsUtils.getMavenPluginVersion(props) + ":update");
args.add("-e");
args.add("-N");
if (output.isVerbose()) {
args.add("-X");
}
if (targetQuarkusVersion.platformVersion != null) {
args.add("-DplatformVersion=" + targetQuarkusVersion.platformVersion);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ public static FetchResult fetchRecipes(MessageWriter log, MavenArtifactResolver
buildTool,
propRewritePluginVersion));

log.debug(String.format(
"Detected dependencies:\n %s ",
recipeDirectoryNames.entrySet().stream()
.map(e -> String.format("%s (%s -> %s)", e.getKey(), e.getValue()[0], e.getValue()[1]))
.sorted().collect(Collectors.joining("\n "))));
log.debug(String.format(
"Detected recipe(s):\n %s",
recipes.keySet().stream().sorted().collect(Collectors.joining("\n "))));

} catch (BootstrapMavenException e) {
throw new RuntimeException("Failed to resolve artifact: " + gav, e);
} catch (IOException e) {
Expand Down

0 comments on commit a43a97c

Please sign in to comment.