You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2023/02/20 12:19:00 UTC
[jira] [Created] (MNG-7704) New field in DefaultProjectBuilder breaks maven-polyglot extension
Christoph Läubrich created MNG-7704:
---------------------------------------
Summary: 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
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)