You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths #8406
This one was found when using the newly modified run-its.sh with the Maven Wrapper.
When Maven source base resides on a symlinked path StringSearchModelInterpolatorTest fails. A reduced test setup is:
$HOME/var points to /var/<username>. Call is ~/apache-maven-3.7.0-SNAPSHOT/bin/mvn -f ~/var/Projekte/maven clean verify. The test fails with:
[INFO] Running org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest
[ERROR] Tests run: 34, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.09 s <<< FAILURE! - in org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest
[ERROR] testInterpolateObjectWithPomFile(org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest) Time elapsed: 0.01 s <<< FAILURE!
java.lang.AssertionError:
Expected: is "/net/home/osipovmi/var/Projekte/maven/maven-model-builder"
but: was "/var/osipovmi/Projekte/maven/maven-model-builder"
at org.apache.maven.model.interpolation.StringSearchModelInterpolatorTest.testInterpolateObjectWithPomFile(StringSearchModelInterpolatorTest.java:362)
The bug is in the test which canonicalizes the buildDir, but not user.dir.
Activity
jira-importer commentedon Jun 11, 2020
Michael Osipov commented
Fixed with ef8c95eb397651e10f677763dfcd9c8cea7c27b0.
jira-importer commentedon Jun 26, 2021
Michael Osipov commented
Fixed with a9f337fd63963b2017c7b057234f9a9e3e78be46 for
maven-3.8.xbranch.