[ 
https://issues.apache.org/jira/browse/MNG-7704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691277#comment-17691277
 ] 

Michael Osipov commented on MNG-7704:
-------------------------------------

In 4.0 as well?

> New field in DefaultProjectBuilder breaks maven-polyglot extension
> ------------------------------------------------------------------
>
>                 Key: MNG-7704
>                 URL: https://issues.apache.org/jira/browse/MNG-7704
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.9.0
>            Reporter: Christoph Läubrich
>            Priority: Major
>
> There was a new method introduced:
> org.apache.maven.project.DefaultProjectBuilder.getModelCache()
> this breaks the https://github.com/takari/polyglot-maven extension that fails 
> with a NPE if running on maven 3.9.0
> Also this probably should be fixed there, this can be mitigated in maven by 
> doing the following:
> {code:java}
> private ModelCache createModelCache(RepositorySystemSession session) {
>     if (modelCacheFactory == null) {
>         
>         return null; // or do whatever DefaultModelCache does here
>     }
>     return modelCacheFactory.createCache(session);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to