Skip to content

Commit 679ddff

Browse files
committed
Add .mvn alongside gemspec_pom.rb
Maven was fixed in apache/maven#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.
1 parent 2e295f5 commit 679ddff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/jars/.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>io.takari.polyglot</groupId>
5+
<artifactId>polyglot-ruby</artifactId>
6+
<version>0.1.18</version>
7+
</extension>
8+
</extensions>

0 commit comments

Comments
 (0)