{"record":{"id":"81517a6144d4d071","repo":"apache/maven","slug":"this-operation-is-not-supported-in-standalone-mode","errorCode":null,"errorMessage":"This operation is not supported in standalone mode","messagePattern":"This operation is not supported in standalone mode","errorType":"exception","errorClass":"UnsupportedInStandaloneModeException","httpStatus":null,"severity":"error","filePath":"impl/maven-impl/src/main/java/org/apache/maven/impl/standalone/ApiRunner.java","lineNumber":250,"sourceCode":"\n        @Override\n        public Path getTopDirectory() {\n            return null;\n        }\n\n        @Override\n        public Path getRootDirectory() {\n            throw new IllegalStateException();\n        }\n\n        @Override\n        public List<Project> getProjects() {\n            return List.of();\n        }\n\n        @Override\n        public Map<String, Object> getPluginContext(Project project) {\n            throw new UnsupportedInStandaloneModeException();\n        }\n    }\n\n    @Provides\n    @SuppressWarnings(\"unused\")\n    static Lookup newLookup(Injector injector) {\n        return new Lookup() {\n            @Override\n            public <T> T lookup(Class<T> type) {\n                try {\n                    return injector.getInstance(type);\n                } catch (DIException e) {\n                    throw new MavenException(\"Unable to locate instance of type \" + type, e);\n                }\n            }\n\n            @Override\n            public <T> T lookup(Class<T> type, String name) {","sourceCodeStart":232,"sourceCodeEnd":268,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-impl/src/main/java/org/apache/maven/impl/standalone/ApiRunner.java#L232-L268","documentation":"Error \"This operation is not supported in standalone mode\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/standalone/ApiRunner.java:250 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"}