jira-importer commented on issue #166: URL: https://github.com/apache/maven-source-plugin/issues/166#issuecomment-2959545734
**[Andreas Kohn](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ankon)** commented I hit the same issue, and instead of manually patching tried to get maven to use plexus-archiver 3.3: 1. Find all plugins that depend on plexus-archiver: ``` $ mvn dependency:resolve-plugins | grep -E '(Plugin Resolved|Plugin Dependency Resolved: plexus-archiver)' | sed 's,^\[INFO\],,' | perl -0777 -pe 's/\n\s+Plugin Dependency Resolved://igs' | grep plexus-archiver | sort | uniq Plugin Resolved: gwt-maven-plugin-2.7.0.jar plexus-archiver-2.6.3.jar Plugin Resolved: maven-assembly-plugin-2.6.jar plexus-archiver-3.0.1.jar Plugin Resolved: maven-dependency-plugin-2.10.jar plexus-archiver-2.9.jar Plugin Resolved: maven-jar-plugin-3.0.0.jar plexus-archiver-3.1.1.jar Plugin Resolved: maven-site-plugin-3.3.jar plexus-archiver-1.0.jar Plugin Resolved: maven-source-plugin-3.0.0.jar plexus-archiver-3.0.3.jar Plugin Resolved: maven-war-plugin-2.6.jar plexus-archiver-2.9.jar ``` 2. For of these plugins add/modify the pluginManagement information and add a dependency to org.codehaus.plexus:plexus-archiver:3.3 3. For maven-assembly-plugin and maven-war-plugin: additionally add a dependency to org.codehaus.plexus:plexus-io:2.7.1 to avoid ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.6:war (default-war) on project activity-engine: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.6:war failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-war-plugin:2.6:war: java.lang.NoSuchMethodError: org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection.isConcurrentAccessSupported()Z ``` 4. Enjoy working builds again! So, yes, please do update plexus-archiver :) -- 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]
