{"record":{"id":"5c18b9b2bae3f1bd","repo":"kestra-io/kestra","slug":"failed-to-resolve-dependency","errorCode":null,"errorMessage":"Failed to resolve dependency: '{}'","messagePattern":"Failed to resolve dependency: '(.+?)'","errorType":"exception","errorClass":"KestraRuntimeException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/io/kestra/core/plugins/MavenPluginDownloader.java","lineNumber":228,"sourceCode":"            final String highestVersion = version.getHighestVersion().toString();\n            ArtifactRequest artifactRequest = new ArtifactRequest(\n                new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), \"jar\", highestVersion),\n                repositories,\n                null\n            );\n            ArtifactResult result = system.resolveArtifact(session, artifactRequest);\n            return new PluginArtifact(\n                result.getArtifact().getGroupId(),\n                result.getArtifact().getArtifactId(),\n                result.getArtifact().getExtension(),\n                result.getArtifact().getClassifier(),\n                // Use the version from ArtifactRequest and not the one from the ArtifactResult.\n                // Otherwise, SNAPSHOT version will result in a timestamped version string.\n                highestVersion.endsWith(\"-SNAPSHOT\") ? highestVersion : result.getArtifact().getVersion(),\n                result.getArtifact().getPath().toUri()\n            );\n        } catch (VersionRangeResolutionException | ArtifactResolutionException e) {\n            throw new KestraRuntimeException(\"Failed to resolve dependency: '\" + dependency + \"'\", e);\n        }\n    }\n\n    /**\n     * {@inheritDoc}\n     */\n    @PreDestroy\n    @Override\n    public void close() throws IOException {\n        try {\n            system.shutdown();\n        } catch (MultiRuntimeException e) {\n            log.warn(\"Error while shutting down Maven repository\", e);\n        }\n    }\n}\n","sourceCodeStart":210,"sourceCodeEnd":245,"githubUrl":"https://github.com/kestra-io/kestra/blob/823fada9274c4f9c251ea0a516460a4f7d958032/core/src/main/java/io/kestra/core/plugins/MavenPluginDownloader.java#L210-L245","documentation":"Error \"Failed to resolve dependency: '{}'\" thrown in kestra-io/kestra.","triggerScenarios":"Thrown at core/src/main/java/io/kestra/core/plugins/MavenPluginDownloader.java:228 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the dependency coordinates (groupId:artifactId:version) are correct and exist in the configured Maven repository.","Check network connectivity and repository credentials so the plugin artifact can be downloaded."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"823fada9274c4f9c251ea0a516460a4f7d958032","analyzedAt":"2026-08-14T06:15:17.947Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}