You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mickael Istria (JIRA)" <ji...@apache.org> on 2019/07/24 16:31:00 UTC
[jira] [Commented] (MNG-6723) MavenProject.getParentFile() not set
when using ProjectBuilder.build(List, ...)
[ https://issues.apache.org/jira/browse/MNG-6723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16891980#comment-16891980 ]
Mickael Istria commented on MNG-6723:
-------------------------------------
I've created https://github.com/apache/maven/pull/273 with a reproducer. I'll try to enrich the pull request with a fix soon.
> 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
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)