Update command for linking Maven repository on Windows

removes the repository directory if it exists, prevents failure if it does not

Closes #40543

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
This commit is contained in:
Peter Zaoral
2025-06-17 09:10:33 +02:00
committed by GitHub
parent 99e0a6a56c
commit c99815ba0e

View File

@@ -42,7 +42,7 @@ runs:
mkdir -p ..\..\..\.m2
mkdir -p D:\.m2\repository
cmd /c mklink /d $HOME\.m2\repository D:\.m2\repository
cmd /c mklink /d $PWD\..\..\..\.m2\repository D:\.m2\repository
cmd /c "rmdir /s /q $PWD\..\..\..\.m2\repository & mklink /d $PWD\..\..\..\.m2\repository D:\.m2\repository"
- id: restore-maven-repository
name: Maven cache