Skip to content

[MNG-8298] 4.x nightly breaks maven-resources plugin (and possibly others) #10527

@jira-importer

Description

@jira-importer

Stefan Oehme opened MNG-8298 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: #1336

Example stacktrace when using the latest maven-resources-plugin:

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions