{"record":{"id":"8665b95b8416ea50","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-ex-getin","errorCode":null,"errorMessage":"invalid value for <containerizingMode>: ${ex.getInvalidContainerizingMode()}","messagePattern":"invalid value for <containerizingMode>: (.+?)","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java","lineNumber":111,"sourceCode":"      GlobalConfig globalConfig = GlobalConfig.readConfig();\n      updateCheckFuture = MojoCommon.newUpdateChecker(projectProperties, globalConfig, getLog());\n\n      PluginConfigurationProcessor.createJibBuildRunnerForDockerDaemonImage(\n              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","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java#L93-L129","documentation":"Jib validates <containerizingMode> and throws InvalidContainerizingModeException for unrecognized values; BuildDockerMojo maps it to MojoExecutionException listing the invalid value. Only modes known to the plugin (e.g. 'exploded', 'packaged') are accepted.","triggerScenarios":"Setting <containerizingMode> in the jib-maven-plugin configuration (or the jib.containerizingMode system property) to a misspelled/unknown string, then running jib:dockerBuild.","commonSituations":"Typos like 'explode' or 'Exploded'; values copied from newer plugin docs while running an older plugin version that doesn't know the mode.","solutions":["Use exactly 'exploded' or 'packaged' for <containerizingMode>.","Check the exception message for the value Jib saw — a property may be overriding your XML.","Upgrade jib-maven-plugin if the desired mode is from newer documentation.","Remove the element to fall back to the default 'packaged' mode."],"exampleFix":"<!-- before -->\n<containerizingMode>Exploded</containerizingMode>\n<!-- after -->\n<containerizingMode>exploded</containerizingMode>","handlingStrategy":"validation","validationCode":"<containerizingMode>${jib.containerizingMode}</containerizingMode>\n<!-- CI pre-check: value must be 'exploded' or 'packaged' -->","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Restrict containerizingMode to 'exploded' or 'packaged' in profiles.","Beware properties overriding pom values with invalid strings.","Upgrade the plugin when adopting mode values from newer docs."],"tags":["maven","jib","invalid-enum","configuration"],"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"}