From bda9527325375009507643e12c1f44417b081608 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Thu, 20 Jun 2024 14:50:50 -0500 Subject: [PATCH] :bug: strip mvn:// prefix. This is a short-term workaround. (#98) Short-term workaround. The UI merged a PR to prefixes the Application.Binary with "mvn://". This PR is a fall-back until #97 can be merged which requires an analyzer patch to fix the builtin provider. Signed-off-by: Jeff Ortel --- cmd/mode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/mode.go b/cmd/mode.go index 3b7e670..64a9c97 100644 --- a/cmd/mode.go +++ b/cmd/mode.go @@ -115,7 +115,8 @@ func (r *Mode) getArtifact() (err error) { // mavenArtifact get maven artifact. func (r *Mode) mavenArtifact(application *api.Application, maven *repository.Maven) (err error) { - err = maven.FetchArtifact(application.Binary) + artifact := strings.TrimPrefix(application.Binary, "mvn://") + err = maven.FetchArtifact(artifact) if err != nil { return }