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

MavenProject.getParentFile() not set when using ProjectBuilder.build(List<File>, ...)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.1
    • 3.6.2
    • Core
    • None

    Description

      This is the root cause for https://bugs.eclipse.org/bugs/show_bug.cgi?id=548652 and was found while analyzing this m2e bug.
      Using Maven 3.6.1,
      If I have 2 files: 1 parent pom and 1 child pom (referencing parent).
      I invoke `ProjectBuilder.build(child)` and the resulting MavenProject gives me a correct value for `MavenProject.getParentFile()`.
      I invoke `ProjectBuilder.build(List.of(parent, child), ....)` and invoking `MavenProject.getParentFile()` on the child MavenProject returns `null` (which `child.getParent().getFile()` returns the right value.

      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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m