maven-dependency-plugin icon indicating copy to clipboard operation
maven-dependency-plugin copied to clipboard

[MDEP-948] building site with Maven 4 throws NPE saying "this.configuration" is null

Open jira-importer opened this issue 1 year ago • 2 comments

Matthias Bünger opened MDEP-948 and commented

To work on a PR for a documentation issue I noticed that build the master branch including site and site's reports via

mvn clean verify site -P reporting

results in a NPE

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.1:site (default-site) on project maven-dependency-plugin: Error generating maven-plugin-report-plugin:3.12.0:report report: Cannot invoke "org.codehaus.plexus.configuration.PlexusConfiguration.getChild(String)" because "this.configuration" is null -> [Help 1]

a full log with error flag attached


Affects: 3.8.0

Attachments:

Issue Links:

  • MPLUGIN-502 NPE in EnhancedPluginDescriptorBuilder with Maven 4.x

  • MSITE-1011 plugin broken when run with Maven 4

jira-importer avatar Jun 26 '24 14:06 jira-importer

Hervé Boutemy commented

oh, this is a site generation issue with Maven 4: AFAIK, there are many issues between Maven 4 and maven-site-plugin (and how site plugin runs reports from report plugins) see for example https://maven.apache.org/ref/4.0.0-beta-3/ = site published with Maven 4

jira-importer avatar Jun 29 '24 17:06 jira-importer

Slawomir Jaranowski commented

There is an issue in plugin-tools MPLUGIN-502 with Maven 4 integration.

jira-importer avatar Jun 29 '24 17:06 jira-importer

clsoing since it doesn't seem to be an issue in the dependency plugin

elharo avatar Sep 14 '25 11:09 elharo