{"record":{"id":"6de265587e3fef17","repo":"apache/maven","slug":"the-option-is-deprecated","errorCode":null,"errorMessage":"The option -{} is deprecated","messagePattern":"The option -(.+?) is deprecated","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java","lineNumber":622,"sourceCode":"                    sb.append(\",--\").append(option.getLongOpt());\n                }\n                sb.append(\" is deprecated \");\n                if (option.getDeprecated().isForRemoval()) {\n                    sb.append(\"and will be removed in a future version\");\n                }\n                if (option.getDeprecated().getSince() != null) {\n                    sb.append(\"since Maven \").append(option.getDeprecated().getSince());\n                }\n                boolean error = false;\n                if (option.getDeprecated().getDescription() != null) {\n                    sb.append(\": \").append(option.getDeprecated().getDescription());\n                    error = option.getDeprecated().getDescription().startsWith(\"UNSUPPORTED:\");\n                }\n                if (error) {\n                    slf4jLogger.error(sb.toString());\n                    fail = true;\n                } else {\n                    slf4jLogger.warn(sb.toString());\n                }\n            }\n        }\n        if (fail) {\n            throw new ExitException(1);\n        }\n    }\n\n    private void version(CliRequest cliRequest) {\n        if (cliRequest.verbose || cliRequest.commandLine.hasOption(CLIManager.SHOW_VERSION)) {\n            System.out.println(CLIReportingUtils.showVersion());\n        }\n    }\n\n    private void commands(CliRequest cliRequest) {\n        if (cliRequest.showErrors) {\n            slf4jLogger.info(\"Error stacktraces are turned on.\");\n        }","sourceCodeStart":604,"sourceCodeEnd":640,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L604-L640","documentation":"Error \"The option -{} is deprecated\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java:622 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}