This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 5672fbd9cf Remove old symbolic link in ITmng8400 test
5672fbd9cf is described below

commit 5672fbd9cf34f791cd1ff543633274cc293bce50
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Sun Mar 23 11:55:49 2025 +0100

    Remove old symbolic link in ITmng8400 test
    
    when we execute ITs without cleaning a project test will fail
---
 .../java/org/apache/maven/it/MavenITmng8400CanonicalMavenHomeTest.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8400CanonicalMavenHomeTest.java
 
b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8400CanonicalMavenHomeTest.java
index e4ed30946a..cb12cfa509 100644
--- 
a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8400CanonicalMavenHomeTest.java
+++ 
b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng8400CanonicalMavenHomeTest.java
@@ -50,6 +50,7 @@ void testIt() throws Exception {
         Path linkedMavenHome = tempDir.resolve("linked-maven-home");
 
         Path oldMavenHome = Paths.get(System.getProperty("maven.home"));
+        Files.deleteIfExists(linkedMavenHome);
         Files.createSymbolicLink(linkedMavenHome, oldMavenHome);
         System.setProperty("maven.home", linkedMavenHome.toString());
 

Reply via email to