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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.1
    • 3.8.2
    • Core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: