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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.6.2
    • Component/s: core
    • Labels:
      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

              • 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:

                  Time Tracking

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