From 679ddff6a89b9fb4f4d19e8617a2dbb51e5c4f0d Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter Date: Wed, 26 Jun 2024 05:15:22 -0500 Subject: [PATCH] Add .mvn alongside gemspec_pom.rb 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 jruby/jruby#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. --- lib/jars/.mvn/extensions.xml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/jars/.mvn/extensions.xml diff --git a/lib/jars/.mvn/extensions.xml b/lib/jars/.mvn/extensions.xml new file mode 100644 index 0000000..40d8e87 --- /dev/null +++ b/lib/jars/.mvn/extensions.xml @@ -0,0 +1,8 @@ + + + + io.takari.polyglot + polyglot-ruby + 0.1.18 + +