[
https://issues.apache.org/jira/browse/MNG-8644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17938049#comment-17938049
]
Guillaume Nodet commented on MNG-8644:
--------------------------------------
Note that in Maven 3.x, a MavenProject can be loaded from any pom in the
repository.
This is imho not a good idea, and Maven 4.x API uses Project for the project
you will actually build (as explained in the Project's javadoc), and just Model
in other cases. So there's a small difference between both, and that may be
the reason why the check is done in the getters.
> DefaultProject should check for non null values earlier
> -------------------------------------------------------
>
> Key: MNG-8644
> URL: https://issues.apache.org/jira/browse/MNG-8644
> Project: Maven
> Issue Type: Bug
> Reporter: Elliotte Rusty Harold
> Priority: Minor
>
> That is, in constructor rather than in getter
--
This message was sent by Atlassian Jira
(v8.20.10#820010)