{"record":{"id":"d1c26d36d169bf22","repo":"apache/maven","slug":"bad-artifact-coordinates-expected-format-is-g","errorCode":null,"errorMessage":"Bad artifact coordinates {}, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>","messagePattern":"Bad artifact coordinates (.+?), expected format is <groupId>:<artifactId>\\[:<extension>\\[:<classifier>\\]\\]:<version>","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java","lineNumber":206,"sourceCode":"                            t = SENTINEL;\n                        }\n                        return new Relocation(global, s, t);\n                    })\n                    .collect(Collectors.toList());\n            LOGGER.info(\"Parsed {} user relocations\", relocationList.size());\n            return new Relocations(relocationList);\n        }\n    }\n\n    private static Artifact parseArtifact(String coords) {\n        Artifact s;\n        String[] parts = coords.split(\":\");\n        s = switch (parts.length) {\n            case 3 -> new DefaultArtifact(parts[0], parts[1], \"*\", \"*\", parts[2]);\n            case 4 -> new DefaultArtifact(parts[0], parts[1], \"*\", parts[2], parts[3]);\n            case 5 -> new DefaultArtifact(parts[0], parts[1], parts[2], parts[3], parts[4]);\n            default ->\n                throw new IllegalArgumentException(\"Bad artifact coordinates \" + coords\n                        + \", expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>\");\n        };\n        return s;\n    }\n}\n","sourceCodeStart":188,"sourceCodeEnd":212,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java#L188-L212","documentation":"Error \"Bad artifact coordinates {}, expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java:206 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"}