From: Lucas Kanashiro <lucas.kanashiro@collabora.com>
Date: Wed, 27 Feb 2019 15:40:19 -0300
Subject: Disable ruby-maven
Forwarded: not-needed

---
 Rakefile | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/Rakefile b/Rakefile
index 41874c8..0d56047 100644
--- a/Rakefile
+++ b/Rakefile
@@ -13,14 +13,21 @@ end
 if RUBY_PLATFORM =~ /java/
   require 'rake/javaextensiontask'
   Rake::JavaExtensionTask.new("psych") do |ext|
-    require 'maven/ruby/maven'
+    require 'fileutils'
+    #require 'maven/ruby/maven'
     # force load of versions to overwrite constants with values from repo.
-    load './lib/psych/versions.rb'
+    #load './lib/psych/versions.rb'
     # uses Mavenfile to write classpath into pkg/classpath
     # and tell maven via system properties the snakeyaml version
     # this is basically the same as running from the commandline:
     # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
-    Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
+    #Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
+    # ruby-maven is currently disabled since is not working as expected with the Debian maven repo and current
+    # versions of maven itself and polyglot-maven.
+    # ruby-maven is packaged but not uploaded to the archive yet for this reason, for more information:
+    # https://bugs.debian.org/789877
+    FileUtils.mkdir_p 'pkg'
+    IO.write('pkg/classpath', '/usr/share/maven-repo/org/yaml/snakeyaml/1.x/snakeyaml-1.x.jar')
     ext.source_version = '1.8'
     ext.target_version = '1.8'
     ext.classpath = File.read('pkg/classpath')
