[
https://issues.apache.org/jira/browse/MNG-6723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16892698#comment-16892698
]
Michael Osipov commented on MNG-6723:
-------------------------------------
Passes for me on:
{noformat}
Apache Maven 3.6.2-SNAPSHOT (55080cb66f66b7cbac1aaa3cbbc339eb46bc7481;
2019-07-25T14:33:32+02:00)
Maven home: /net/home/osipovmi/apache-maven-3.6.2-SNAPSHOT
Java version: 1.8.0_212, vendor: Oracle Corporation, runtime:
/usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.0-stable", arch: "amd64", family: "unix"
{noformat}
> MavenProject.getParentFile() not set when using
> ProjectBuilder.build(List<File>, ...)
> -------------------------------------------------------------------------------------
>
> Key: MNG-6723
> URL: https://issues.apache.org/jira/browse/MNG-6723
> Project: Maven
> Issue Type: Bug
> Components: core
> Affects Versions: 3.6.1
> Reporter: Mickael Istria
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 3.6.x-candidate
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)