gnodet commented on code in PR #13871:
URL: https://github.com/apache/maven/pull/13871#discussion_r4495602297
##########
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java:
##########
@@ -191,10 +191,24 @@ public CLIManager() {
.desc(
"Do not recurse into sub-projects. When used together
with -pl, do not recurse into sub-projects of selected aggregators")
.build());
+
+ // -U is now an alias for --update-all.
options.addOption(Option.builder(Character.toString(UPDATE_SNAPSHOTS))
+ .longOpt("update-all")
+ .desc("Forces updates of artifacts and metadata on remote
repositories")
+ .build());
+
+ // Keep the old option as a deprecated alias for backwards
compatibility.
+ options.addOption(Option.builder()
.longOpt("update-snapshots")
- .desc("Forces a check for missing releases and updated
snapshots on remote repositories")
+ .desc("<deprecated> Use -U,--update-all instead.")
+ .deprecated(DeprecatedAttributes.builder()
+ .setForRemoval(true)
+ .setSince("4.0.0")
Review Comment:
4.2.0
##########
compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java:
##########
@@ -463,4 +477,4 @@ public void displayHelp(PrintWriter pw) {
pw.flush();
}
-}
+}
Review Comment:
Do not remove last new line
--
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]