gnu: java-plexus-archiver: Update to 4.2.2.
* gnu/packages/java.scm (java-plexus-archiver): Update to 4.2.2. (java-plexus-container-default, java-commons-compress) (java-geronimo-xbean-reflect): Install from pom file. (java-guava): Install from pom [source]: Use git source instead of generated source jar. * gnu/packages/java-compression.scm (java-xz, java-iq80-snappy): Install from pom.
This commit is contained in:
parent
ae91309642
commit
02ed96dccf
2 changed files with 162 additions and 46 deletions
|
|
@ -207,7 +207,6 @@ compressor/decompressor.")
|
||||||
`(#:jar-name "iq80-snappy.jar"
|
`(#:jar-name "iq80-snappy.jar"
|
||||||
#:source-dir "src/main/java"
|
#:source-dir "src/main/java"
|
||||||
#:test-dir "src/test"
|
#:test-dir "src/test"
|
||||||
#:jdk ,icedtea-8
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
|
|
@ -228,7 +227,8 @@ compressor/decompressor.")
|
||||||
;; We don't have hadoop
|
;; We don't have hadoop
|
||||||
(delete-file "src/main/java/org/iq80/snappy/HadoopSnappyCodec.java")
|
(delete-file "src/main/java/org/iq80/snappy/HadoopSnappyCodec.java")
|
||||||
(delete-file "src/test/java/org/iq80/snappy/TestHadoopSnappyCodec.java")
|
(delete-file "src/test/java/org/iq80/snappy/TestHadoopSnappyCodec.java")
|
||||||
#t)))))
|
#t))
|
||||||
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
(home-page "https://github.com/dain/snappy")
|
(home-page "https://github.com/dain/snappy")
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("guava" ,java-guava)
|
`(("guava" ,java-guava)
|
||||||
|
|
@ -303,14 +303,21 @@ It can be used as a replacement for the Apache @code{CBZip2InputStream} /
|
||||||
;; the package is not contained in a subdirectory
|
;; the package is not contained in a subdirectory
|
||||||
(chdir "..")
|
(chdir "..")
|
||||||
#t))
|
#t))
|
||||||
(replace 'install
|
(add-before 'install 'generate-pom
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
;; Do we want to install *Demo.jar?
|
(copy-file "maven/pom_template.xml" "pom.xml")
|
||||||
(install-file "build/jar/xz.jar"
|
(substitute* "pom.xml"
|
||||||
(string-append
|
(("@VERSION@") ,version)
|
||||||
(assoc-ref outputs "out")
|
(("@TITLE@") "XZ data compression")
|
||||||
"/share/java/xz.jar"))
|
(("@HOMEPAGE@") "http://tukaani.org/xz/java.html"))
|
||||||
#t)))))
|
#t))
|
||||||
|
(add-before 'install 'rename-jar
|
||||||
|
(lambda _
|
||||||
|
(rename-file "build/jar/xz.jar"
|
||||||
|
(string-append "build/jar/xz-" ,version ".jar"))
|
||||||
|
#t))
|
||||||
|
(replace 'install
|
||||||
|
(install-from-pom "pom.xml")))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("unzip" ,unzip)))
|
`(("unzip" ,unzip)))
|
||||||
(home-page "https://tukaani.org")
|
(home-page "https://tukaani.org")
|
||||||
|
|
|
||||||
|
|
@ -3976,22 +3976,31 @@ components.")
|
||||||
`(#:jar-name "container-default.jar"
|
`(#:jar-name "container-default.jar"
|
||||||
#:source-dir "plexus-container-default/src/main/java"
|
#:source-dir "plexus-container-default/src/main/java"
|
||||||
#:test-dir "plexus-container-default/src/test"
|
#:test-dir "plexus-container-default/src/test"
|
||||||
#:jdk ,icedtea-8
|
|
||||||
#:tests? #f; requires plexus-archiver, which depends on this package
|
#:tests? #f; requires plexus-archiver, which depends on this package
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'fix-google-collections
|
||||||
|
(lambda _
|
||||||
|
;; Google collections are now replaced with guava
|
||||||
|
(substitute* "plexus-container-default/pom.xml"
|
||||||
|
(("google-collections") "guava")
|
||||||
|
(("com.google.collections") "com.google.guava"))
|
||||||
|
#t))
|
||||||
(add-before 'build 'copy-resources
|
(add-before 'build 'copy-resources
|
||||||
(lambda _
|
(lambda _
|
||||||
(copy-recursively
|
(copy-recursively
|
||||||
"plexus-container-default/src/main/resources/"
|
"plexus-container-default/src/main/resources/"
|
||||||
"build/classes")
|
"build/classes")
|
||||||
#t)))))
|
#t))
|
||||||
(inputs
|
(replace 'install
|
||||||
`(("worldclass" ,java-plexus-classworlds)
|
(install-from-pom "plexus-container-default/pom.xml")))))
|
||||||
("xbean" ,java-geronimo-xbean-reflect)
|
(propagated-inputs
|
||||||
("utils" ,java-plexus-utils)
|
`(("java-plexus-worldclass" ,java-plexus-classworlds)
|
||||||
("junit" ,java-junit)
|
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
|
||||||
("guava" ,java-guava)))
|
("java-plexus-utils" ,java-plexus-utils)
|
||||||
|
("java-junit" ,java-junit)
|
||||||
|
("java-guava" ,java-guava)
|
||||||
|
("java-plexus-containers-parent-pom" ,java-plexus-containers-parent-pom)))
|
||||||
(home-page "https://github.com/codehaus-plexus/plexus-containers")
|
(home-page "https://github.com/codehaus-plexus/plexus-containers")
|
||||||
(synopsis "Inversion-of-control container")
|
(synopsis "Inversion-of-control container")
|
||||||
(description "Plexus-default-container is Plexus' inversion-of-control
|
(description "Plexus-default-container is Plexus' inversion-of-control
|
||||||
|
|
@ -3999,6 +4008,21 @@ components.")
|
||||||
implementation.")
|
implementation.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define java-plexus-containers-parent-pom
|
||||||
|
(package
|
||||||
|
(inherit java-plexus-container-default-bootstrap)
|
||||||
|
(name "java-plexus-containers-parent-pom")
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(install-pom-file "pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("plexus-parent-pom" ,plexus-parent-pom-4.0)))))
|
||||||
|
|
||||||
(define-public java-plexus-io
|
(define-public java-plexus-io
|
||||||
(package
|
(package
|
||||||
(name "java-plexus-io")
|
(name "java-plexus-io")
|
||||||
|
|
@ -4050,19 +4074,18 @@ reusing it in maven.")
|
||||||
(define-public java-plexus-archiver
|
(define-public java-plexus-archiver
|
||||||
(package
|
(package
|
||||||
(name "java-plexus-archiver")
|
(name "java-plexus-archiver")
|
||||||
(version "4.1.0")
|
(version "4.2.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/codehaus-plexus/plexus-archiver"
|
(uri (string-append "https://github.com/codehaus-plexus/plexus-archiver"
|
||||||
"/archive/plexus-archiver-" version ".tar.gz"))
|
"/archive/plexus-archiver-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0ry6i92gli0mvdmfih2vgs0lkf9yvx18h2ajxim66yg6yipnp0hg"))))
|
"144n971r3lfrx3l12nf2scm80x4xdvgbkk4bjpa4vcvvdrll6qys"))))
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:jar-name "plexus-archiver.jar"
|
`(#:jar-name "plexus-archiver.jar"
|
||||||
#:source-dir "src/main/java"
|
#:source-dir "src/main/java"
|
||||||
#:jdk ,icedtea-8
|
|
||||||
#:test-dir "src/test"
|
#:test-dir "src/test"
|
||||||
#:test-exclude (list "**/Abstract*.java" "**/Base*.java")
|
#:test-exclude (list "**/Abstract*.java" "**/Base*.java")
|
||||||
#:phases
|
#:phases
|
||||||
|
|
@ -4080,19 +4103,22 @@ reusing it in maven.")
|
||||||
#t))
|
#t))
|
||||||
(add-before 'build 'copy-resources
|
(add-before 'build 'copy-resources
|
||||||
(lambda _
|
(lambda _
|
||||||
(mkdir-p "build/classes/META-INF/plexus")
|
(mkdir-p "build/classes")
|
||||||
(copy-file "src/main/resources/META-INF/plexus/components.xml"
|
(copy-recursively "src/main/resources" "build/classes")
|
||||||
"build/classes/META-INF/plexus/components.xml")
|
(mkdir-p "build/test-classes")
|
||||||
#t)))))
|
(copy-recursively "src/test/resources" "build/test-classes")
|
||||||
|
#t))
|
||||||
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-plexus-utils" ,java-plexus-utils-3.3.0)
|
||||||
|
("java-plexus-io" ,java-plexus-io)
|
||||||
|
("java-iq80-snappy" ,java-iq80-snappy)
|
||||||
|
("java-commons-compress" ,java-commons-compress)
|
||||||
|
("plexus-parent-pom" ,plexus-parent-pom-6.1)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("utils" ,java-plexus-utils)
|
`(("java-jsr305" ,java-jsr305)
|
||||||
("commons-io" ,java-commons-io)
|
("java-plexus-container-default"
|
||||||
("snappy" ,java-iq80-snappy)
|
,java-plexus-container-default-bootstrap)))
|
||||||
("io" ,java-plexus-io)
|
|
||||||
("compress" ,java-commons-compress)
|
|
||||||
("container-default" ,java-plexus-container-default-bootstrap)
|
|
||||||
("snappy" ,java-snappy)
|
|
||||||
("java-jsr305" ,java-jsr305)))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("java-hamcrest-core" ,java-hamcrest-core)
|
`(("java-hamcrest-core" ,java-hamcrest-core)
|
||||||
("junit" ,java-junit)
|
("junit" ,java-junit)
|
||||||
|
|
@ -5715,22 +5741,23 @@ It provides packages in the @code{javax.annotations} namespace.")
|
||||||
;; This is the last release of Guava that can be built with Java 7.
|
;; This is the last release of Guava that can be built with Java 7.
|
||||||
(version "20.0")
|
(version "20.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/google/guava/"
|
(uri (git-reference
|
||||||
"releases/download/v" version
|
(url "https://github.com/google/guava/")
|
||||||
"/guava-" version "-sources.jar"))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1gawrs5gi6j5hcfxdgpnfli75vb9pfi4sn09pnc8xacr669yajwr"))))
|
"00h5cawdjic1vind3yivzh1f58flvm1yfmhsyqwyvmbvj1vakysp"))))
|
||||||
(build-system ant-build-system)
|
(build-system ant-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no tests included
|
`(#:tests? #f ; no tests included
|
||||||
#:jar-name "guava.jar"
|
#:jar-name "guava.jar"
|
||||||
|
#:source-dir "guava/src"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'trim-sources
|
(add-after 'unpack 'trim-sources
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "src/com/google/common"
|
(with-directory-excursion "guava/src/com/google/common"
|
||||||
;; Remove annotations to avoid extra dependencies:
|
;; Remove annotations to avoid extra dependencies:
|
||||||
;; * "j2objc" annotations are used when converting Java to
|
;; * "j2objc" annotations are used when converting Java to
|
||||||
;; Objective C;
|
;; Objective C;
|
||||||
|
|
@ -5749,9 +5776,12 @@ It provides packages in the @code{javax.annotations} namespace.")
|
||||||
(("@ForOverride") "")
|
(("@ForOverride") "")
|
||||||
(("@J2ObjCIncompatible") "")
|
(("@J2ObjCIncompatible") "")
|
||||||
(("@IgnoreJRERequirement") "")))
|
(("@IgnoreJRERequirement") "")))
|
||||||
#t)))))
|
#t))
|
||||||
|
(replace 'install (install-from-pom "guava/pom.xml")))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("java-jsr305" ,java-jsr305)))
|
`(("java-jsr305" ,java-jsr305)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-guava-parent-pom" ,java-guava-parent-pom)))
|
||||||
(home-page "https://github.com/google/guava")
|
(home-page "https://github.com/google/guava")
|
||||||
(synopsis "Google core libraries for Java")
|
(synopsis "Google core libraries for Java")
|
||||||
(description "Guava is a set of core libraries that includes new
|
(description "Guava is a set of core libraries that includes new
|
||||||
|
|
@ -5761,6 +5791,21 @@ concurrency, I/O, hashing, primitives, reflection, string processing, and much
|
||||||
more!")
|
more!")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define java-guava-parent-pom
|
||||||
|
(package
|
||||||
|
(inherit java-guava)
|
||||||
|
(name "java-guava-parent-pom")
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(install-pom-file "pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-sonatype-oss-parent-pom" ,java-sonatype-oss-parent-pom-7)))))
|
||||||
|
|
||||||
;; The java-commons-logging package provides adapters to many different
|
;; The java-commons-logging package provides adapters to many different
|
||||||
;; logging frameworks. To avoid an excessive dependency graph we try to build
|
;; logging frameworks. To avoid an excessive dependency graph we try to build
|
||||||
;; it with only a minimal set of adapters.
|
;; it with only a minimal set of adapters.
|
||||||
|
|
@ -6084,12 +6129,14 @@ programs.")
|
||||||
;; package at this point.
|
;; package at this point.
|
||||||
;; https://github.com/powermock/powermock
|
;; https://github.com/powermock/powermock
|
||||||
(delete-file "archivers/sevenz/SevenZNativeHeapTest.java"))
|
(delete-file "archivers/sevenz/SevenZNativeHeapTest.java"))
|
||||||
#t)))))
|
#t))
|
||||||
(inputs
|
(replace 'install (install-from-pom "pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-xz" ,java-xz)
|
||||||
|
("apache-commons-parent-pom" ,apache-commons-parent-pom-41)))
|
||||||
|
(native-inputs
|
||||||
`(("java-junit" ,java-junit)
|
`(("java-junit" ,java-junit)
|
||||||
("java-hamcrest-core" ,java-hamcrest-core)
|
("java-mockito" ,java-mockito-1)))
|
||||||
("java-mockito" ,java-mockito-1)
|
|
||||||
("java-xz" ,java-xz)))
|
|
||||||
(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
|
||||||
|
|
@ -10274,13 +10321,16 @@ outputting XML data from Java code.")
|
||||||
;; org.apache.xbean.asm6 is actually repackaged java-asm
|
;; org.apache.xbean.asm6 is actually repackaged java-asm
|
||||||
(substitute* (string-append dir "XbeanAsmParameterNameLoader.java")
|
(substitute* (string-append dir "XbeanAsmParameterNameLoader.java")
|
||||||
(("org.apache.xbean.asm5") "org.objectweb.asm"))
|
(("org.apache.xbean.asm5") "org.objectweb.asm"))
|
||||||
#t))))))
|
#t)))
|
||||||
|
(replace 'install (install-from-pom "xbean-reflect/pom.xml")))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("asm" ,java-asm)
|
`(("asm" ,java-asm)
|
||||||
("log4j" ,java-log4j-api)
|
("log4j" ,java-log4j-api)
|
||||||
("log4j-1.2" ,java-log4j-1.2-api)
|
("log4j-1.2" ,java-log4j-1.2-api)
|
||||||
("log4j-core" ,java-log4j-core)
|
("log4j-core" ,java-log4j-core)
|
||||||
("logging" ,java-commons-logging-minimal)))
|
("logging" ,java-commons-logging-minimal)))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-geronimo-parent-pom" ,java-geronimo-parent-pom)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("junit" ,java-junit)))
|
`(("junit" ,java-junit)))
|
||||||
(home-page "https://geronimo.apache.org/maven/xbean/3.6/xbean-reflect/")
|
(home-page "https://geronimo.apache.org/maven/xbean/3.6/xbean-reflect/")
|
||||||
|
|
@ -10289,6 +10339,65 @@ outputting XML data from Java code.")
|
||||||
and graphs of objects for dependency injection frameworks")
|
and graphs of objects for dependency injection frameworks")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define java-geronimo-genesis-2.1
|
||||||
|
(package
|
||||||
|
(name "java-geronimo-genesis")
|
||||||
|
(version "2.1")
|
||||||
|
(source (origin
|
||||||
|
(method svn-fetch)
|
||||||
|
(uri (svn-reference
|
||||||
|
(url (string-append "https://svn.apache.org/repos/asf/"
|
||||||
|
"geronimo/genesis/tags/genesis-"
|
||||||
|
version))
|
||||||
|
(revision 1807396)))
|
||||||
|
(file-name (string-append name "-" version "-source"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"119yn795jvnjf52si84q192s8wag1k013iabg78b7wnadssnnh31"))))
|
||||||
|
(build-system ant-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(install-pom-file "pom.xml"))
|
||||||
|
(add-after 'install 'install-enforcer-rules
|
||||||
|
(install-pom-file "genesis-enforcer-rules/pom.xml"))
|
||||||
|
(add-after 'install 'install-flava
|
||||||
|
(install-pom-file "genesis-default-flava/pom.xml"))
|
||||||
|
(add-after 'install 'install-packaging
|
||||||
|
(install-pom-file "genesis-packaging/pom.xml"))
|
||||||
|
(add-after 'install-flava 'install-flava-java4
|
||||||
|
(install-pom-file "genesis-default-flava/genesis-java1.4-flava/pom.xml"))
|
||||||
|
(add-after 'install-flava 'install-flava-java5
|
||||||
|
(install-pom-file "genesis-default-flava/genesis-java5-flava/pom.xml"))
|
||||||
|
(add-after 'install-flava 'install-flava-java6
|
||||||
|
(install-pom-file "genesis-default-flava/genesis-java6-flava/pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("apache-parent-pom" ,apache-parent-pom-13)))
|
||||||
|
(home-page "https://geronimo.apache.org")
|
||||||
|
(synopsis "Collection of maven POM files for the Geronimo project")
|
||||||
|
(description "Apache Geronimo is a server runtime. This package contains
|
||||||
|
only pom files used by other components in the Geronimo project.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define java-geronimo-parent-pom
|
||||||
|
(package
|
||||||
|
(inherit java-geronimo-xbean-reflect)
|
||||||
|
(name "java-geronimo-parent-pom")
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'build)
|
||||||
|
(replace 'install
|
||||||
|
(install-pom-file "pom.xml")))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("java-geronimo-genesis" ,java-geronimo-genesis-2.1)))))
|
||||||
|
|
||||||
(define-public java-geronimo-xbean-bundleutils
|
(define-public java-geronimo-xbean-bundleutils
|
||||||
(package
|
(package
|
||||||
(inherit java-geronimo-xbean-reflect)
|
(inherit java-geronimo-xbean-reflect)
|
||||||
|
|
|
||||||
Reference in a new issue