{"record":{"id":"e805869933b314a7","repo":"quarkusio/quarkus","slug":"failed-to-collect-dependencies-of-deployment-artif","errorCode":null,"errorMessage":"Failed to collect dependencies of deployment artifact ${deploymentCoords}","messagePattern":"Failed to collect dependencies of deployment artifact (.+?)","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java","lineNumber":1184,"sourceCode":"        try (BufferedReader reader = Files.newBufferedReader(extDescr)) {\n            props.load(reader);\n        }\n        return props;\n    }\n\n    private static ArtifactKey toKey(org.eclipse.aether.artifact.Artifact a) {\n        return DependencyUtils.getKey(a);\n    }\n\n    private CollectResult collectDeploymentDeps() throws MojoExecutionException {\n        if (collectedDeploymentDeps == null) {\n            final ArtifactCoords deploymentCoords = getDeploymentCoords();\n            try {\n                collectedDeploymentDeps = repoSystem.collectDependencies(repoSession,\n                        newCollectRequest(new DefaultArtifact(deploymentCoords.getGroupId(), deploymentCoords.getArtifactId(),\n                                deploymentCoords.getClassifier(), deploymentCoords.getType(), deploymentCoords.getVersion())));\n            } catch (Exception e) {\n                throw new MojoExecutionException(\"Failed to collect dependencies of deployment artifact \" + deploymentCoords,\n                        e);\n            }\n        }\n        return collectedDeploymentDeps;\n    }\n\n    private ArtifactCoords getDeploymentCoords() {\n        return deploymentCoords == null ? deploymentCoords = ArtifactCoords.fromString(deployment) : deploymentCoords;\n    }\n\n    private CollectRequest newCollectRuntimeDepsRequest() throws MojoExecutionException {\n        return newCollectRequest(new DefaultArtifact(project.getArtifact().getGroupId(),\n                project.getArtifact().getArtifactId(),\n                project.getArtifact().getClassifier(),\n                project.getArtifact().getArtifactHandler().getExtension(),\n                project.getArtifact().getVersion()));\n    }\n","sourceCodeStart":1166,"sourceCodeEnd":1202,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java#L1166-L1202","documentation":"The mojo collects the transitive dependency tree of the extension's deployment artifact via repoSystem.collectDependencies using the deployment artifact coords. Exceptions are wrapped as 'Failed to collect dependencies of deployment artifact <coords>'.","triggerScenarios":"Deployment artifact coordinates cannot be collected: the deployment artifact doesn't exist in any repository, its POM is invalid, or repository access fails when getCollectedDeploymentDeps() first runs.","commonSituations":"Deployment module not built/installed before the runtime module's descriptor goal; missing repo hosting the deployment artifact; invalid deployment pom; stale snapshot metadata.","solutions":["Run mvn install on the deployment module (or full reactor build) before the runtime descriptor goal","Verify the deployment artifact exists in the local/remote repositories at the printed coords","Run with -U to refresh snapshot metadata","Inspect the wrapped cause for invalid-pom or network errors and fix accordingly"],"exampleFix":"# before: deployment artifact not installed\nmvn package -pl my-ext\n# after\nmvn install -pl my-ext,my-ext-deployment","handlingStrategy":"validation","validationCode":"mvn dependency:get -Dartifact=my.org:my-ext-deployment:1.0.0","typeGuard":null,"tryCatchPattern":null,"preventionTips":["mvn install full reactor (runtime+deployment) before descriptor goal","Verify deployment coords in descriptor match published artifacts","Refresh snapshots with -U when stale"],"tags":["maven","dependency-collection","deployment-artifact"],"backgroundTag":"dependency-resolution-failed","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"}