[
https://issues.apache.org/jira/browse/MNG-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
c updated MNG-6583:
-------------------
Attachment: (was: RelativelyInsane.7z)
> Relative path for parent pom on Windows fails depending on case of drive
> letter
> -------------------------------------------------------------------------------
>
> Key: MNG-6583
> URL: https://issues.apache.org/jira/browse/MNG-6583
> Project: Maven
> Issue Type: Bug
> Components: POM
> Affects Versions: 3.5.0, 3.5.2, 3.5.3, 3.5.4, 3.6.0
> Environment: Windows 7 Enterprise
> Reporter: c
> Assignee: Robert Scholte
> Priority: Major
>
> Hi! I've found an odd issue with Maven 3.5.0 and higher (including current:
> 3.6.0)
> This issue does not appear in Maven 3.3.9 or older.
> Works: 3.3.3, 3.3.9
> Fails: 3.5.0, 3.5.2, 3.5.3, 3.5.4, 3.6.0
> It seems to be related to whether the cmd current path either starts with a
> upper case (works) or lower case (doesn't work) driver letter.
> With an upper case drive letter, relative paths to the parent pom resolve
> correctly.
> With a lower case driver letter, relative paths to the parent pom do not
> resolve correctly.
> For example, this cmd works:
> {{@ECHO OFF}}
> {{SET M2_HOME=C:\Portable\Tools\apache-maven-3.6.0}}
> {{SET PATH=%M2_HOME%\bin;%PATH%}}
> {{cd ..}}
> {{cd *+C+*:\Temp\RelativelyInsane}}
> {{call mvn clean}}
> {{call mvn -vesion}}
> {{pause}}
> And this cmd fails, the only difference is the drive letter in the second
> 'cd'.
> {{@ECHO OFF}}
> {{SET M2_HOME=C:\Portable\Tools\apache-maven-3.6.0}}
> {{SET PATH=%M2_HOME%\bin;%PATH%}}
> {{cd ..}}
> {{cd *+c+*:\Temp\RelativelyInsane}}
> {{call mvn clean}}
> {{call mvn -vesion}}
> {{pause}}
> I have attached a full minimal example in [^RelativelyInsane.7z]
> Extract it to C:\Temp, change the paths to your maven install, and run the
> cmd's
>
> Log of failed run:
> {{[INFO] Scanning for projects...}}
> {{[ERROR] [ERROR] Some problems were encountered while processing the POMs:}}
> {{[FATAL] Non-resolvable parent POM for reltest.mine:ArtiA:[unknown-version]:
> Could not find artifact reltest.mine:parenty:pom:0.0.1-SNAPSHOT and
> 'parent.relativePath' points at wrong local POM @ line 4, column 13 @}}
> {{[ERROR] The build could not read 1 project -> [Help 1]}}
> {{[ERROR]}}
> {{[ERROR] The project reltest.mine:ArtiA:[unknown-version]
> (C:\Temp\RelativelyInsane\ArtiA\pom.xml) has 1 error}}
> {{[ERROR] Non-resolvable parent POM for
> reltest.mine:ArtiA:[unknown-version]: Could not find artifact
> reltest.mine:parenty:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at
> wrong local POM @ line 4, column 13 -> [Help 2]}}
> {{[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}}
> {{[ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException}}
> {{Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
> 2018-10-24T20:41:47+02:00)}}
> {{Maven home: C:\Portable\Tools\apache-maven-3.6.0\bin\..}}
> {{Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: C:\Program
> Files (x86)\Java\jdk1.8.0_192\jre}}
> {{Default locale: en_US, platform encoding: Cp1252}}
> {{OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"}}
> {{Press any key to continue . . .}}
>
> Log of succesfull run:
> {{[INFO] Scanning for projects...}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] Reactor Build Order:}}
> {{[INFO]}}
> {{[INFO] parenty
> [pom]}}
> {{[INFO] ArtiA
> [pom]}}
> {{[INFO] rooty
> [pom]}}
> {{[INFO]}}
> {{[INFO] ------------------------< reltest.mine:parenty
> >------------------------}}
> {{[INFO] Building parenty 0.0.1-SNAPSHOT
> [1/3]}}
> {{[INFO] --------------------------------[ pom
> ]---------------------------------}}
> {{[INFO]}}
> {{[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parenty ---}}
> {{[INFO]}}
> {{[INFO] -------------------------< reltest.mine:ArtiA
> >-------------------------}}
> {{[INFO] Building ArtiA 0.0.1-SNAPSHOT
> [2/3]}}
> {{[INFO] --------------------------------[ pom
> ]---------------------------------}}
> {{[INFO]}}
> {{[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ArtiA ---}}
> {{[INFO]}}
> {{[INFO] -------------------------< reltest.mine:rooty
> >-------------------------}}
> {{[INFO] Building rooty 0.0.1-SNAPSHOT
> [3/3]}}
> {{[INFO] --------------------------------[ pom
> ]---------------------------------}}
> {{[INFO]}}
> {{[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rooty ---}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] Reactor Summary for rooty 0.0.1-SNAPSHOT:}}
> {{[INFO]}}
> {{[INFO] parenty ............................................ SUCCESS [
> 0.141 s]}}
> {{[INFO] ArtiA .............................................. SUCCESS [
> 0.011 s]}}
> {{[INFO] rooty .............................................. SUCCESS [
> 0.009 s]}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] BUILD SUCCESS}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{[INFO] Total time: 0.534 s}}
> {{[INFO] Finished at: 2019-01-31T11:32:00+01:00}}
> {{[INFO]
> ------------------------------------------------------------------------}}
> {{Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
> 2018-10-24T20:41:47+02:00)}}
> {{Maven home: C:\Portable\Tools\apache-maven-3.6.0\bin\..}}
> {{Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: C:\Program
> Files (x86)\Java\jdk1.8.0_192\jre}}
> {{Default locale: en_US, platform encoding: Cp1252}}
> {{OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"}}
> {{Press any key to continue . . .}}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)