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

sseifert pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-feature-launcher-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e3bd11  SLING-12942 Fix building path URL to local maven repo on 
windows (#22)
4e3bd11 is described below

commit 4e3bd11959978dce007c8aedf41820885b614e04
Author: Stefan Seifert <[email protected]>
AuthorDate: Tue Sep 16 17:07:51 2025 +0200

    SLING-12942 Fix building path URL to local maven repo on windows (#22)
---
 src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java 
b/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java
index 1871d5d..7c8dba5 100644
--- a/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java
+++ b/src/main/java/org/apache/sling/maven/feature/launcher/StartMojo.java
@@ -260,7 +260,7 @@ public class StartMojo extends AbstractMojo {
                     // configuration file $HOME/.m2/settings.xml but cannot 
find out if the Maven process was invoked
                     // with a maven.repo.local argument
                     repositoryUrls = new ArrayList<>();
-                    repositoryUrls.add("file://" + 
localRepository.getBasedir());
+                    repositoryUrls.add(new 
File(localRepository.getBasedir()).toURI().toString());
                     repositoryUrls.add("https://repo1.maven.org/maven2";);
                     
repositoryUrls.add("https://repository.apache.org/content/group/snapshots";);
                 }

Reply via email to