Skip to content

Commit

Permalink
remove space from maven config (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-harness authored Jul 19, 2023
1 parent 5a9aa61 commit a44ddf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/autodetect/prepare_maven.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a44ddf0

Please sign in to comment.