apache / apache/maven-plugin-tools
[MPLUGIN-502] NPE in EnhancedPluginDescriptorBuilder with Maven 4.x
- Dominant language
- Java
- Stars
- 64
- Forks
- 71
- Avg merge
- 12h 24m
- Merged PRs (30d)
- 32
Description
**[Slawomir Jaranowski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slawekjaranowski)** opened **[MPLUGIN-502](https://issues.apache.org/jira/browse/MPLUGIN-502?redirect=false)** and commented
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
---
**Affects:** 3.10.2, 3.11.0
**Issue Links:**
- [MPLUGIN-507](https://issues.apache.org/jira/browse/MPLUGIN-507) NPE during plugin run in Creadur RAT to generate mojo descriptor - only Maven 4.x-related
(_**"is duplicated by"**_)
- [MNG-8714](https://issues.apache.org/jira/browse/MNG-8714) maven-site-plugin with Maven master fails
- [MDEP-948](https://issues.apache.org/jira/browse/MDEP-948) building site with Maven 4 throws NPE saying "this.configuration" is null
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.