[ https://issues.apache.org/jira/browse/MNG-8056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Glowa updated MNG-8056: ------------------------------ Attachment: parametertest.zip > Parameter '-f' & '-s' fails with absolute paths on Cygwin > --------------------------------------------------------- > > Key: MNG-8056 > URL: https://issues.apache.org/jira/browse/MNG-8056 > Project: Maven > Issue Type: Bug > Components: Core > Affects Versions: 3.9.6 > Environment: - Windows 10 / 11 > - Cygwin 3.5.0-1.x86_64 > - Maven 3.9.6 > Reporter: Oliver Glowa > Priority: Major > Labels: cygwin > Attachments: parametertest.zip > > > Hello, > I'm using shell-script's running on github actions. For testing purpose I > test the scripts locally on windows with cygwin. When working with absolute > paths the parameter '-f', '-s' are failing on cygwin. > Similar problem like MNG-7621, but I don't see a chance to solve this as easy > in the shell script, too. How do you will identify the path(s) from the > commandline an replace it with a proper version. > h2. Tested with > * Windows 10 / 11 > * Cygwin 3.5.0-1.x86_64 > * Maven 3.9.6 > # Create folder /cygdrive/c/temp/parametertest > # copy attached "pom.xml", "settings.xml" into created folder. > # switch to /cygdrive/c/temp > h2. Log for "-f" with relative path > > {code:java} > postm@ollily08 /cygdrive/c/temp > $ mvn -f ./parametertest/pom.xml validate > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) > Maven home: C:\Programme-2\apache-maven\apache-maven > Java version: 19.0.2, vendor: Eclipse Adoptium, runtime: > C:\Programme-3\AdoptOpenJDK\jdk-19.0.2+7 > Default locale: de_DE, platform encoding: UTF-8 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > [INFO] Scanning for projects... > [INFO] > [INFO] ------------------< com.glowanet.test:parametertest > >------------------- > [INFO] Building parametertest 1.0-SNAPSHOT > [INFO] from pom.xml > [INFO] --------------------------------[ jar > ]--------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.181 s > [INFO] Finished at: 2024-02-18T11:12:29+01:00 > [INFO] > ------------------------------------------------------------------------ > {code} > h2. Log for "-f" with absolute path > > {code:java} > postm@ollily08 /cygdrive/c/temp > $ mvn -f /cygdrive/c/temp/parametertest/pom.xml validate > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) > Maven home: C:\Programme-2\apache-maven\apache-maven > Java version: 19.0.2, vendor: Eclipse Adoptium, runtime: > C:\Programme-3\AdoptOpenJDK\jdk-19.0.2+7 > Default locale: de_DE, platform encoding: UTF-8 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > [INFO] Scanning for projects... > [ERROR] [ERROR] Some problems were encountered while processing the POMs: > [FATAL] Non-readable POM C:\cygdrive\c\temp\parametertest\pom.xml: > C:\cygdrive\c\temp\parametertest\pom.xml (Das System kann den angegebenen > Pfad nicht finden) @ > @ > [ERROR] The build could not read 1 project -> [Help 1] > [ERROR] > [ERROR] The project (C:\cygdrive\c\temp\parametertest\pom.xml) has 1 error > [ERROR] Non-readable POM C:\cygdrive\c\temp\parametertest\pom.xml: > C:\cygdrive\c\temp\parametertest\pom.xml (Das System kann den angegebenen > Pfad nicht finden) > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException > {code} > > switch to /cygdrive/c/temp/parametertest > h2. Log for "-s" with relative path > {code:java} > postm@ollily08 /cygdrive/c/temp/parametertest > $ mvn -s .m2/settings.xml validate > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) > Maven home: C:\Programme-2\apache-maven\apache-maven > Java version: 19.0.2, vendor: Eclipse Adoptium, runtime: > C:\Programme-3\AdoptOpenJDK\jdk-19.0.2+7 > Default locale: de_DE, platform encoding: UTF-8 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > [INFO] Scanning for projects... > [INFO] > [INFO] ------------------< com.glowanet.test:parametertest > >------------------- > [INFO] Building parametertest 1.0-SNAPSHOT > [INFO] from pom.xml > [INFO] --------------------------------[ jar > ]--------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 0.228 s > [INFO] Finished at: 2024-02-18T11:15:56+01:00 > [INFO] > ------------------------------------------------------------------------ > {code} > h2. Log for "-s" with absolute path > {code:java} > postm@ollily08 /cygdrive/c/temp/parametertest > $ mvn -s /cygdrive/c/temp/parametertest/.m2/settings.xml validate > Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) > Maven home: C:\Programme-2\apache-maven\apache-maven > Java version: 19.0.2, vendor: Eclipse Adoptium, runtime: > C:\Programme-3\AdoptOpenJDK\jdk-19.0.2+7 > Default locale: de_DE, platform encoding: UTF-8 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > [ERROR] Error executing Maven. > [ERROR] The specified user settings file does not exist: > C:\cygdrive\c\temp\parametertest\.m2\settings.xml > {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)