I have some existing code that started returning an absolute directory from org.apache.maven.model.Build.getSourceDirectory() in 3.8.2 (vs 3.8.1). This is an unexpected breaking change in behavior and contradicts the javadoc which says: "The path given is relative to the project descriptor."
I am building the model from a pom.xml on disk. I am setting "project.basedir" property to "." and loading the FileModelSource "./pom.xml".
When I build the model and get the Build.getSourceDirectory() it returned "src/main/java" on 3.8.1 and prior versions.
In 3.8.2 it now returns "/Users/me/code/mvn-dir-resolution/./src/main/java".
I created a reproducible runnable case here:
I suspect this is related to the change in
MNG-7170, but don't know for certain.