Skip to content

[MNG-6937] StringSearchModelInterpolatorTest fails on symlinked paths #8406

@jira-importer

Description

@jira-importer

Michael Osipov opened MNG-6937 and commented

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.


Affects: 3.6.3

Remote Links:

Backported to: 4.0.0-alpha-2, 3.8.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions