aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2017-11-06 20:02:22 +0100
committerJulien Lepiller <julien@lepiller.eu>2017-11-18 11:30:25 +0100
commita0837294abfeec63d42ff48985004d0c79c4c930 (patch)
treebbb5985c2c80b3f7b9c882070d7b96e30bc063fb
parentb51df3ca6fbaf2d17d2514c7d19ac3bc29457f01 (diff)
downloadpatches-a0837294abfeec63d42ff48985004d0c79c4c930.tar
patches-a0837294abfeec63d42ff48985004d0c79c4c930.tar.gz
gnu: Add java-plexus-container-default.
* gnu/packages/java.scm (java-plexus-container-default): New variable.
-rw-r--r--gnu/packages/java.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index e7d0e34ab1..1ef4e1b9ed 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2497,6 +2497,49 @@ reusing it in maven.")
archives (jar).")
(license license:asl2.0)))
+(define-public java-plexus-container-default
+ (package
+ (inherit java-plexus-container-default-bootstrap)
+ (name "java-plexus-container-default")
+ (arguments
+ `(#:jar-name "container-default.jar"
+ #:source-dir "plexus-container-default/src/main/java"
+ #:test-dir "plexus-container-default/src/test"
+ #:test-exclude (list ;"**/*Test.java"
+ "**/Abstract*.java"
+ ;; Requires plexus-hierarchy
+ "**/PlexusHierarchyTest.java"
+ ;; Failures
+ "**/ComponentRealmCompositionTest.java"
+ "**/PlexusContainerTest.java")
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'copy-resources
+ (lambda _
+ (copy-recursively
+ "plexus-container-default/src/main/resources/"
+ "build/classes")
+ #t))
+ (add-before 'check 'fix-paths
+ (lambda _
+ (let ((dir "plexus-container-default/src/test/java/org/codehaus"))
+ (substitute*
+ (string-append
+ dir "/plexus/component/composition/"
+ "ComponentRealmCompositionTest.java")
+ (("src/test") "plexus-container-default/src/test"))
+ #t))))))
+ (inputs
+ `(("worldclass" ,java-plexus-classworlds)
+ ("xbean" ,java-geronimo-xbean-reflect)
+ ("utils" ,java-plexus-utils)
+ ("junit" ,java-junit)
+ ("guava" ,java-guava)))
+ (native-inputs
+ `(("archiver" ,java-plexus-archiver)
+ ("hamcrest" ,java-hamcrest-core)))))
+
(define-public java-asm
(package
(name "java-asm")