[MNG-8298] 4.x nightly breaks maven-resources plugin (and possibly others)
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Stefan Oehme](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=oehme)** opened **[MNG-8298](https://issues.apache.org/jira/browse/MNG-8298?redirect=false)** and commented
The latest Maven 4.x nightlies no longer work with the latest nightlies of core Maven plugins like the maven-resources plugin. It looks like this was caused by this classloading change: https://github.com/apache/maven/pull/1336
Example stacktrace when using the latest maven-resources-plugin:
```java
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-2-SNAPSHOT:resources (default-resources) on project a: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-2-SNAPSHOT:resources failed: Unable to lookup Mojo: Error while initializing binding BindingToConstructor[@Named("org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-2-SNAPSHOT:resources") ResourcesMojoFactory][]: Error while initializing binding BindingToConstructor[@Named DefaultMavenResourcesFiltering][Dependency[key=BuildContext, optional=false], Dependency[key=MavenFileFilter, optional=false]]: Error while initializing binding BindingToConstructor[@Named DefaultMavenFileFilter][Dependency[key=BuildContext, optional=false]]: Failed to call method static org.sonatype.plexus.build.incremental.BuildContext org.apache.maven.plugins.resources.Providers.buildContext(): org/codehaus/plexus/logging/AbstractLogEnabled: org.codehaus.plexus.logging.AbstractLogEnabled -> [Help 1]
```
Is there a timeline for getting these plugins working again? We'd love to run our tests against the latest of everything to make sure our Maven extension works correctly when 4.0 is released.
---
**Affects:** 4.0.x-candidate
Contributor guide
Research direction
Reproduce the failure with the latest Maven 4.x nightly and the latest maven-resources-plugin nightly, then compare it with the classloading change in Maven pull request #1336. Done means the core plugin initializes and runs successfully against the nightly Maven build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100