{"record":{"id":"cec02376fb33de38","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-invalidco","errorCode":null,"errorMessage":"invalid value for <containerizingMode>: <invalidContainerizingMode>","messagePattern":"invalid value for <containerizingMode>: <invalidContainerizingMode>","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java","lineNumber":120,"sourceCode":"              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\\\": \"\n              + ex.getInvalidFilesModificationTime(),\n          ex);\n\n    } catch (InvalidCreationTimeException ex) {\n      throw new MojoExecutionException(","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java#L102-L138","documentation":"The jib-maven-plugin dockerBuild goal rejects the <containerizingMode> configuration value because it is not one of the accepted modes (e.g. 'exploded' or 'packaged'). PluginConfigurationProcessor throws InvalidContainerizingModeException during configuration parsing, and BuildDockerMojo.execute() wraps it in a MojoExecutionException with the offending value echoed back. The build fails before any image is built.","triggerScenarios":"Running 'mvn jib:dockerBuild' (or another jib goal) with <containerizingMode>invalidContainerizingMode</containerizingMode> in the pom's <configuration> block, or passing -Djib.containerizingMode=invalidContainerizingMode on the command line with a value not in {packaged, exploded}.","commonSituations":"Typo in the mode name (e.g. 'explode', 'packaged ' with a trailing space); copying a value from an old blog post; upgrading Jib and forgetting the only two valid values; setting the property via a parent pom or CI env var with a wrong string.","solutions":["Set <containerizingMode> to exactly 'packaged' or 'exploded' in the pom or -Djib.containerizingMode=... on the command line.","Check for typos, whitespace, or case differences in the configured value (the message echoes the exact invalid string).","Remove the <containerizingMode> element entirely to fall back to the default ('exploded' for jar projects).","Run 'mvn help:describe -Dplugin=com.google.cloud.tools:jib-maven-plugin' or check Jib docs to confirm valid values for your plugin version."],"exampleFix":"// before (pom.xml)\n<containerizingMode>invalidContainerizingMode</containerizingMode>\n// after\n<containerizingMode>exploded</containerizingMode>","handlingStrategy":"validation","validationCode":"String mode = System.getProperty(\"jib.containerizingMode\", pomContainerizingMode);\nif (mode != null && !mode.equals(\"packaged\") && !mode.equals(\"exploded\")) {\n  throw new IllegalArgumentException(\"containerizingMode must be 'packaged' or 'exploded', got: \" + mode);\n}","typeGuard":"boolean isValidContainerizingMode(String m) { return m == null || m.equals(\"packaged\") || m.equals(\"exploded\"); }","tryCatchPattern":null,"preventionTips":["Only use the documented values: packaged or exploded.","Keep the value in the pom rather than free-form CI variables where typos creep in.","Add a CI config check that greps the pom for suspicious containerizingMode values."],"tags":["maven","jib","configuration","containerizing-mode"],"backgroundTag":"invalid-enum-value","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}