Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.9.0
-
None
-
None
Description
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:
private ModelCache createModelCache(RepositorySystemSession session) { if (modelCacheFactory == null) { return null; // or do whatever DefaultModelCache does here } return modelCacheFactory.createCache(session); }
Attachments
Issue Links
- duplicates
-
MNG-7693 NPE in createModelCache, modelCacheFactory is null
- Closed