{"record":{"id":"52223c50a46ee4d3","repo":"apache/maven","slug":"error-loading-properties-from-propertiesfile","errorCode":null,"errorMessage":"Error loading properties from ${propertiesFile}","messagePattern":"Error loading properties from (.+?)","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java","lineNumber":420,"sourceCode":"        } else if (systemProperties.getProperty(\"maven.conf\") != null) {\n            mavenConf = context.installationDirectory.resolve(systemProperties.getProperty(\"maven.conf\"));\n        } else if (systemProperties.getProperty(Constants.MAVEN_HOME) != null) {\n            mavenConf = context.installationDirectory\n                    .resolve(systemProperties.getProperty(Constants.MAVEN_HOME))\n                    .resolve(\"conf\");\n        } else {\n            mavenConf = context.installationDirectory.resolve(\"\");\n        }\n\n        UnaryOperator<String> callback = or(\n                context.extraInterpolationSource()::get,\n                context.systemPropertiesOverrides::get,\n                systemProperties::getProperty);\n        Path propertiesFile = mavenConf.resolve(\"maven-system.properties\");\n        try {\n            MavenPropertiesLoader.loadProperties(systemProperties, propertiesFile, callback, false);\n        } catch (IOException e) {\n            throw new IllegalStateException(\"Error loading properties from \" + propertiesFile, e);\n        }\n\n        Map<String, String> result = toMap(systemProperties);\n        result.putAll(context.systemPropertiesOverrides);\n        return result;\n    }\n\n    protected Map<String, String> populateUserProperties(LocalContext context) {\n        Properties userProperties = new Properties();\n        Map<String, String> paths = context.extraInterpolationSource();\n\n        // ----------------------------------------------------------------------\n        // Options that are set on the command line become system properties\n        // and therefore are set in the session properties. System properties\n        // are most dominant.\n        // ----------------------------------------------------------------------\n\n        Map<String, String> userSpecifiedProperties = context.options != null","sourceCodeStart":402,"sourceCodeEnd":438,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java#L402-L438","documentation":"Error \"Error loading properties from ${propertiesFile}\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java:420 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"}