8000 [MNG-8734] Make Maven 3.9.10 ignore --raw-streams option (#2361) · apache/maven@88c77b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 88c77b6

Browse files
authored
[MNG-8734] Make Maven 3.9.10 ignore --raw-streams option (#2361)
Just add it to CLIManager and make Maven 3 ignore it instead to belly up on it. Also, help output should make it clear this is no-op option. --- https://issues.apache.org/jira/browse/MNG-8734
1 parent ca55739 commit 88c77b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ public class CLIManager {
109109

110110
public static final String IGNORE_TRANSITIVE_REPOSITORIES = "itr";
111111

112+
private static final String RAW_STREAMS = "raw-streams";
113+
112114
protected Options options;
113115

114116
@SuppressWarnings({"checkstyle:linelength", "checkstyle:MethodLength"})
@@ -292,6 +294,12 @@ public CLIManager() {
292294
.desc("UNSUPPORTED: Use of this option will make Maven invocation fail.")
293295
.build());
294296

297+
// Adding this to make Maven3 silently ignore these otherwise Maven4 options
298+
options.addOption(Option.builder()
299+
.longOpt(RAW_STREAMS)
300+
.desc("Ignored (Maven4 option)")
301+
.build());
302+
295303
options.addOption(Option.builder()
296304
.longOpt(COLOR)
297305
.hasArg()

0 commit comments

Comments
 (0)
0