gnu: java-plexus-component-metadata: Fix package.

* gnu/packages/java.scm (java-plexus-component-metadat): Apply fix for
  newer jdom.
This commit is contained in:
Julien Lepiller 2022-06-04 15:41:41 +02:00
parent 0a58c7c1c0
commit 48a191c15d
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -4537,6 +4537,14 @@ (define-public java-plexus-component-metadata-1.7
(copy-recursively "src/main/resources"
"build/classes/")
#t))
(add-before 'build 'fix-jdom
(lambda _
;; The newer version of jdom now sets multiple features by default
;; that are not supported.
;; Skip these features
(substitute* "src/main/java/org/codehaus/plexus/metadata/merge/MXParser.java"
(("throw new XmlPullParserException\\(\"unsupporte feature \"\\+name\\);")
"// skip"))))
(add-before 'check 'fix-test-location
(lambda _
(substitute* '("src/test/java/org/codehaus/plexus/metadata/DefaultComponentDescriptorWriterTest.java"