{"record":{"id":"8c8d493c0b4ef58b","repo":"GoogleContainerTools/jib","slug":"container-approot-is-not-an-absolute-unix-style-8c8d49","errorCode":null,"errorMessage":"<container><appRoot> is not an absolute Unix-style path: <invalidPathValue>","messagePattern":"<container><appRoot> is not an absolute Unix-style path: <invalidPathValue>","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java","lineNumber":115,"sourceCode":"              new MavenRawConfiguration(this),\n              new MavenSettingsServerCredentials(\n                  getSession().getSettings(), getSettingsDecrypter()),\n              projectProperties,\n              globalConfig,\n              new MavenHelpfulSuggestions(HELPFUL_SUGGESTIONS_PREFIX))\n          .runBuild();\n\n    } catch (InvalidAppRootException ex) {\n      throw new MojoExecutionException(\n          \"<container><appRoot> is not an absolute Unix-style path: \" + ex.getInvalidPathValue(),\n          ex);\n\n    } catch (InvalidContainerizingModeException ex) {\n      throw new MojoExecutionException(\n          \"invalid value for <containerizingMode>: \" + ex.getInvalidContainerizingMode(), ex);\n\n    } catch (InvalidWorkingDirectoryException ex) {\n      throw new MojoExecutionException(\n          \"<container><workingDirectory> is not an absolute Unix-style path: \"\n              + ex.getInvalidPathValue(),\n          ex);\n    } catch (InvalidPlatformException ex) {\n      throw new MojoExecutionException(\n          \"<from><platforms> contains a platform configuration that is missing required values or has invalid values: \"\n              + ex.getMessage()\n              + \": \"\n              + ex.getInvalidPlatform(),\n          ex);\n    } catch (InvalidContainerVolumeException ex) {\n      throw new MojoExecutionException(\n          \"<container><volumes> is not an absolute Unix-style path: \" + ex.getInvalidVolume(), ex);\n\n    } catch (InvalidFilesModificationTimeException ex) {\n      throw new MojoExecutionException(\n          \"<container><filesModificationTime> should be an ISO 8601 date-time (see \"\n              + \"DateTimeFormatter.ISO_DATE_TIME) or special keyword \\\"EPOCH_PLUS_SECOND\\\": \"","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java#L97-L133","documentation":"This is the <container><workingDirectory> analogue of the appRoot check: InvalidWorkingDirectoryException carries the invalid value and BuildDockerMojo rethrows it as MojoExecutionException. The working directory must be an absolute Unix-style path so it is valid inside the Linux container.","triggerScenarios":"Setting <container><workingDirectory> to a relative path, a Windows path, or a value without a leading slash, then running jib:dockerBuild.","commonSituations":"Windows developers entering 'C:\\workdir' or 'workdir'; templated values resolving empty; confusion between host paths and in-container paths.","solutions":["Set <workingDirectory> to an absolute Unix path starting with '/', e.g. /app/workdir.","Remove the element if a custom working directory is not required.","Ensure any property feeding it resolves to a non-empty absolute path.","Use forward slashes even on Windows hosts."],"exampleFix":"<!-- before -->\n<container><workingDirectory>workdir</workingDirectory></container>\n<!-- after -->\n<container><workingDirectory>/workdir</workingDirectory></container>","handlingStrategy":"validation","validationCode":"<workingDirectory>${jib.workdir}</workingDirectory>\n<!-- CI pre-check: value must match ^/.+ -->","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Start workingDirectory with '/' and use forward slashes.","Do not confuse host paths with in-container paths.","Guard templated properties against empty values.","Omit the element if the default is acceptable."],"tags":["maven","jib","configuration","path-validation"],"backgroundTag":"invalid-argument-format","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}