From a44ddf007d40f54b531cbb8d1797896332ea1fc9 Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Wed, 19 Jul 2023 16:16:37 -0400 Subject: [PATCH] remove space from maven config (#57) --- internal/plugin/autodetect/prepare_maven.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/autodetect/prepare_maven.go b/internal/plugin/autodetect/prepare_maven.go index 48f0ba33..81fb1550 100644 --- a/internal/plugin/autodetect/prepare_maven.go +++ b/internal/plugin/autodetect/prepare_maven.go @@ -16,7 +16,7 @@ func (*mavenPreparer) PrepareRepo(dir string) (string, error) { configPath := filepath.Join(dir, ".mvn") fileName := "maven.config" pathToCache := filepath.Join(dir, ".m2", "repository") - cmdToOverrideRepo := fmt.Sprintf(" -Dmaven.repo.local=%s ", pathToCache) + cmdToOverrideRepo := fmt.Sprintf("-Dmaven.repo.local=%s ", pathToCache) if _, err := os.Stat(filepath.Join(configPath, fileName)); errors.Is(err, os.ErrNotExist) { err := os.MkdirAll(configPath, os.ModePerm)