gnu: java-commons-compress: Update to 1.21.
* gnu/packages/java.scm (java-commons-compress): Update to 1.21. (java-osgi-annotation, java-osgi-core): Create pom file and install from it. * gnu/packages/maven.scm (java-surefire-parent-pom): Fix pom fixing.
This commit is contained in:
parent
eaf4441b62
commit
622042110c
2 changed files with 23 additions and 25 deletions
|
@ -6828,40 +6828,29 @@ programs.")
|
||||||
(define-public java-commons-compress
|
(define-public java-commons-compress
|
||||||
(package
|
(package
|
||||||
(name "java-commons-compress")
|
(name "java-commons-compress")
|
||||||
(version "1.13")
|
(version "1.21")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://apache/commons/compress/source/"
|
(uri (string-append "mirror://apache/commons/compress/source/"
|
||||||
"commons-compress-" version "-src.tar.gz"))
|
"commons-compress-" version "-src.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1vjqvavrn0babffn1kciz6v52ibwq2vwhzlb95hazis3lgllnxc8"))))
|
"1rkpb6xcyly1wnbx4q6iq6p5hrr0h1d0ppb5r07psc75cbmizjry"))))
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:jar-name "commons-compress.jar"
|
`(#:jar-name "commons-compress.jar"
|
||||||
|
#:source-dir "src/main/java"
|
||||||
|
#:tests? #f; requires java-mockito-3
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'delete-bad-tests
|
|
||||||
(lambda _
|
|
||||||
(with-directory-excursion "src/test/java/org/apache/commons/compress/"
|
|
||||||
;; FIXME: These tests really should not fail. Maybe they are
|
|
||||||
;; indicative of problems with our Java packaging work.
|
|
||||||
|
|
||||||
;; This test fails with a null pointer exception.
|
|
||||||
(delete-file "archivers/sevenz/SevenZOutputFileTest.java")
|
|
||||||
;; This test fails to open test resources.
|
|
||||||
(delete-file "archivers/zip/ExplodeSupportTest.java")
|
|
||||||
|
|
||||||
;; FIXME: This test adds a dependency on powermock, which is hard to
|
|
||||||
;; package at this point.
|
|
||||||
;; https://github.com/powermock/powermock
|
|
||||||
(delete-file "archivers/sevenz/SevenZNativeHeapTest.java"))
|
|
||||||
#t))
|
|
||||||
(replace 'install (install-from-pom "pom.xml")))))
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list java-xz apache-commons-parent-pom-41))
|
(list java-asm-3
|
||||||
(native-inputs
|
java-brotli
|
||||||
(list java-junit java-mockito-1))
|
java-osgi-core
|
||||||
|
java-xz
|
||||||
|
java-zstd
|
||||||
|
apache-commons-parent-pom-52))
|
||||||
(home-page "https://commons.apache.org/proper/commons-compress/")
|
(home-page "https://commons.apache.org/proper/commons-compress/")
|
||||||
(synopsis "Java library for working with compressed files")
|
(synopsis "Java library for working with compressed files")
|
||||||
(description "The Apache Commons Compress library defines an API for
|
(description "The Apache Commons Compress library defines an API for
|
||||||
|
@ -6923,7 +6912,12 @@ Custom formats can be created using a fluent style API.")
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no tests
|
`(#:tests? #f ; no tests
|
||||||
#:jar-name "osgi-annotation.jar"))
|
#:jar-name "osgi-annotation.jar"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'install 'create-pom
|
||||||
|
(generate-pom.xml "pom.xml" "osgi" "osgi-annotation" ,version))
|
||||||
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
(home-page "https://www.osgi.org")
|
(home-page "https://www.osgi.org")
|
||||||
(synopsis "Annotation module of OSGi framework")
|
(synopsis "Annotation module of OSGi framework")
|
||||||
(description
|
(description
|
||||||
|
@ -6948,7 +6942,12 @@ components.")
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no tests
|
`(#:tests? #f ; no tests
|
||||||
#:jar-name "osgi-core.jar"))
|
#:jar-name "osgi-core.jar"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'install 'create-pom
|
||||||
|
(generate-pom.xml "pom.xml" "org.osgi" "org.osgi.core" ,version))
|
||||||
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
(inputs
|
(inputs
|
||||||
(list java-osgi-annotation))
|
(list java-osgi-annotation))
|
||||||
(home-page "https://www.osgi.org")
|
(home-page "https://www.osgi.org")
|
||||||
|
|
|
@ -3462,8 +3462,7 @@ internal to the SureFire Logger API. It is designed to have no dependency.")
|
||||||
(add-before 'install 'fix-pom-dependency-versions
|
(add-before 'install 'fix-pom-dependency-versions
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "pom.xml"
|
(substitute* "pom.xml"
|
||||||
(("1.11") ,(package-version java-commons-compress))
|
(("1.11") ,(package-version java-commons-codec)))
|
||||||
(("1.13") ,(package-version java-commons-codec)))
|
|
||||||
(substitute* "pom.xml"
|
(substitute* "pom.xml"
|
||||||
(("commonsLang3Version>.*")
|
(("commonsLang3Version>.*")
|
||||||
(string-append
|
(string-append
|
||||||
|
|
Reference in a new issue