mkristian / jar-dependencies

manage jar dependencies for ruby gems
MIT License
34 stars 19 forks source link

Relocate maven extensions #81

Open headius opened 4 months ago

headius commented 4 months ago

Maven was fixed in https://github.com/apache/maven/pull/94 to only search the target pom's directory structure for .mvn when passing -f to indicate a specific pom file. Unfortunately that breaks logic in ruby-maven intended to temporarily copy the .mvn/extensions.xml file to the current directory to enable Polyglot Ruby poms. This in turn breaks jar-dependencies when running with newer ruby-maven-libs at the root of the filesystem, for reasons described in https://github.com/jruby/jruby/issues/7059:

https://github.com/jruby/jruby/issues/7059#issuecomment-2190953877

This is a possible workaround, by putting the extension config in the same dir as the files we want to treat as Polyglot Ruby pom scripts. It does not fix the underlying problem with ruby-maven.