Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7170

Allow to associate pomFile/${basedir} with DefaultProjectBuilder.build(ModelSource, ...)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.8.2
    • Component/s: Core
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                michael-o Michael Osipov
                Reporter:
                mickael.istria Mickael Istria
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: