Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7704

New field in DefaultProjectBuilder breaks maven-polyglot extension

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.9.0
    • None
    • Core
    • 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

          Activity

            People

              Unassigned Unassigned
              laeubi Christoph Läubrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: