Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-502

NPE in EnhancedPluginDescriptorBuilder with Maven 4.x

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.10.2, 3.11.0
    • None
    • None
    • None

    Description

      With Maven 4.x (4.0.0-alpha-10) we have:

      Caused by: java.lang.NullPointerException: Cannot invoke "org.codehaus.plexus.configuration.PlexusConfiguration.getChild(String)" because "this.configuration" is null
          at org.apache.maven.plugins.plugin.descriptor.EnhancedPluginDescriptorBuilder.build(EnhancedPluginDescriptorBuilder.java:75)
          at org.apache.maven.plugin.descriptor.PluginDescriptorBuilder.build(PluginDescriptorBuilder.java:63)
          at org.apache.maven.plugin.plugin.report.PluginReport.extractPluginDescriptor(PluginReport.java:163)
          at org.apache.maven.plugin.plugin.report.PluginReport.executeReport(PluginReport.java:148)
          at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:289)
      

      Also ITs in maven-plugin-report-plugin fails with Maven 4.x

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            sjaranowski Slawomir Jaranowski

            Dates

              Created:
              Updated:

              Slack

                Issue deployment