GoogleCloudPlatform / cloud-opensource-java

Tools for detecting and avoiding linkage errors in GCP open source projects
Apache License 2.0
155 stars 73 forks source link

enforce-linkage-checker not compatible anymore with recent maven-enforcer-plugin #2378

Open rfscholte opened 2 weeks ago

rfscholte commented 2 weeks ago

The plugin fails with the following message: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce (enforce-linkage-checker) on XXX: Execution enforce-linkage-checker of goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce failed: A required class was missing while executing org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce: org/apache/maven/plugins/enforcer/AbstractNonCacheableEnforcerRule

rfscholte commented 1 week ago

@suztomo @zhumin8 are you maintaining this project and do you want a PR with a fix. The critical change was made between https://github.com/apache/maven-enforcer/compare/enforcer-3.1.0...enforcer-3.2.0 So the question is as well: which enforcer version should this rule support at least?

suztomo commented 1 week ago

Let me look into this.

rfscholte commented 6 days ago

You can have a look at https://github.com/GoogleCloudPlatform/cloud-opensource-java/compare/master...rfscholte:cloud-opensource-java:2378_update_enforcer_api although it is a bit bigger than just this fix.