Description
In LemMinX-Maven Language Server for pom.xml files, we're building models from "working copy" (unsaved) pom files. We do so by invoking
DefaultProjectBuilder.build( ModelSource modelSource, ProjectBuildingRequest request )
One pitfall is that this cascades to pomFile being null for the Model, and as a result
${basedir}
is not resolved.
One could expect that the
ModelSource2.getLocationURI()
could be used to derive the pomFile when possible. LemMinX-Maven happens to properly set this.
Attachments
Issue Links
- causes
-
MNG-7215 [Regression] Maven Site Plugin cannot resolve parent site descriptor without locale
- Closed
-
MNG-7216 Revert MNG-7170
- Closed
-
MNG-7218 [Regression] o.a.m.model.Build.getSourceDirectory() incorrectly returns absolute dir on 3.8.2
- Closed
- is fixed by
-
MNG-5669 same pom.xml is read multiple times
- Closed
- links to