gnodet commented on issue #451: URL: https://github.com/apache/maven-resources-plugin/issues/451#issuecomment-5824025258
Thank you for the report! This issue was specific to the combination of `maven-resources-plugin:4.0.0-beta-1` with Maven `4.0.0-rc-5` or earlier. The root cause was that `ThreadBuildContext` (from `org.sonatype.plexus:plexus-build-api:0.0.7`) has a static field of type `DefaultBuildContext`, which extends `org.codehaus.plexus.logging.AbstractLogEnabled`. At class-loading time this triggers a `NoClassDefFoundError` if `plexus-container-default` is not on the plugin classpath. Starting with Maven `4.0.0-rc-6`, `org.eclipse.sisu:org.eclipse.sisu.plexus` (which provides `AbstractLogEnabled`) is bundled in Maven's `lib/` directory and its packages are exported to plugin realms via `META-INF/maven/extension.xml` (`org.codehaus.plexus.*` + `exportedArtifact: org.eclipse.sisu:org.eclipse.sisu.plexus`). This makes `AbstractLogEnabled` visible to the plugin classloader, so the error no longer occurs. With `maven-resources-plugin:4.0.0-beta-2-SNAPSHOT` (current master) + Maven `4.0.0-rc-6` or `rc-7`, the issue is not reproducible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
