{"record":{"id":"9beb8650e9dc1efb","repo":"quarkusio/quarkus","slug":"unknown-jar-package-type-value","errorCode":null,"errorMessage":"Unknown JAR package type '${value}'","messagePattern":"Unknown JAR package type '(.+?)'","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java","lineNumber":422,"sourceCode":"\n            /**\n             * {@return the name of this output type}\n             */\n            @Override\n            public String toString() {\n                return names.get(0);\n            }\n\n            /**\n             * {@return the <code>JarType</code> for the given string}\n             *\n             * @param value the string to look up\n             * @throws IllegalArgumentException if the string does not correspond to a valid JAR type\n             */\n            public static JarType fromString(String value) {\n                JarType jarOutputType = byName.get(value);\n                if (jarOutputType == null) {\n                    throw new IllegalArgumentException(\"Unknown JAR package type '\" + value + \"'\");\n                }\n                return jarOutputType;\n            }\n        }\n    }\n\n    /**\n     * Configuration for the decompiler.\n     */\n    @ConfigGroup\n    interface DecompilerConfig {\n        /**\n         * Enable decompilation of generated and transformed bytecode into a filesystem.\n         */\n        @WithDefault(\"false\")\n        boolean enabled();\n\n        /**","sourceCodeStart":404,"sourceCodeEnd":440,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/core/deployment/src/main/java/io/quarkus/deployment/pkg/PackageConfig.java#L404-L440","documentation":"PackageConfig.JarType.fromString throws this IllegalArgumentException when a string does not correspond to any registered JAR package type. It converts configuration values (e.g. quarkus.package.jar.type) into the JarType enum-like constant, rejecting unknown names.","triggerScenarios":"Setting quarkus.package.jar.type (or programmatically calling JarType.fromString) with a misspelled or unsupported value such as 'fast-jar ' (trailing space), 'uberjar', 'legacy-jar' in a Quarkus version where that name changed, or arbitrary invalid text.","commonSituations":"Typo in application.properties; following an older tutorial whose jar type names no longer exist; copying config from a project using a different Quarkus version; case mismatch in the type name.","solutions":["Set quarkus.package.jar.type to a valid value such as fast-jar, legacy-jar, or uber-jar — matching the exact spelling for your Quarkus version.","Check the PackageConfig.JarType class in your Quarkus version for the accepted names.","Fix any typos, casing, or trailing whitespace in the configured value."],"exampleFix":"// before (application.properties)\nquarkus.package.jar.type=uberjar\n// after\nquarkus.package.jar.type=uber-jar","handlingStrategy":"validation","validationCode":"Set<String> valid = Set.of(\"fast-jar\", \"legacy-jar\", \"uber-jar\", \"mutable-jar\");\nString type = System.getProperty(\"quarkus.package.jar.type\", \"fast-jar\");\nif (!valid.contains(type)) throw new IllegalArgumentException(\"Unknown jar type: \" + type);","typeGuard":null,"tryCatchPattern":"try {\n    JarType t = JarType.fromString(value);\n} catch (IllegalArgumentException e) {\n    LOG.errorf(\"quarkus.package.jar.type='%s' is invalid; use one of: fast-jar, legacy-jar, uber-jar\", value);\n}","preventionTips":["Copy accepted values from the PackageConfig.JarType class of your exact Quarkus version.","Trim whitespace from configured values.","Check release notes when upgrading Quarkus for renamed packaging options."],"tags":["quarkus","configuration","packaging","illegal-argument"],"backgroundTag":"invalid-config-value","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}