aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 15:36:52 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:15:52 +0200
commit540f36284353b7a3e23e4fa395c36dd2c26b478d (patch)
treee0e274a0a6e83f74b3ab5c32c6978ac079936861 /gnu
parent8815719c96156023e1f4d10868b11c0b6b36d4f9 (diff)
downloadguix-540f36284353b7a3e23e4fa395c36dd2c26b478d.tar
guix-540f36284353b7a3e23e4fa395c36dd2c26b478d.tar.gz
gnu: Add java-sonatype-aether-impl.
* gnu/packages/maven.scm (java-sonatype-aether-impl): New variable. (java-plexus-component-metadata): Propagate inputs.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maven.scm44
1 files changed, 43 insertions, 1 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 153671c387..2baf6e9881 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -54,7 +54,7 @@
(copy-recursively "src/main/resources"
"build/classes/")
#t)))))
- (inputs
+ (propagated-inputs
`(("java-plexus-container-default" ,java-plexus-container-default)
("java-plexu-component-annotations" ,java-plexus-component-annotations)
("java-plexus-utils" ,java-plexus-utils)
@@ -450,6 +450,48 @@ ease testing of the repository system.")))
(description "This package contains a collection of utility classes to
ease usage of the repository system.")))
+(define-public java-sonatype-aether-impl
+ (package
+ (inherit java-sonatype-aether-api)
+ (name "java-sonatype-aether-impl")
+ (arguments
+ `(#:jar-name "aether-impl.jar"
+ #:source-dir "aether-impl/src/main/java"
+ #:test-dir "aether-impl/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'fix-pom
+ (lambda _
+ (substitute* "aether-impl/pom.xml"
+ (("org.sonatype.sisu") "org.codehaus.plexus")
+ (("sisu-inject-plexus") "plexus-container-default"))
+ #t))
+ (add-after 'build 'generate-metadata
+ (lambda _
+ (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
+ "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
+ "--source" "src/main/java"
+ "--output" "build/classes/META-INF/plexus/components.xml"
+ "--classes" "build/classes"
+ "--descriptors" "build/classes/META-INF")
+ #t))
+ (add-after 'generate-metadata 'rebuild
+ (lambda _
+ (invoke "ant" "jar")
+ #t))
+ (replace 'install (install-from-pom "aether-impl/pom.xml")))))
+ (propagated-inputs
+ `(("java-sonatype-aether-api" ,java-sonatype-aether-api)
+ ("java-sonatype-aether-spi" ,java-sonatype-aether-spi)
+ ("java-sonatype-aether-util" ,java-sonatype-aether-util)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-container-default" ,java-plexus-container-default)
+ ("java-slf4j-api" ,java-slf4j-api)))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-plexus-component-metadata" ,java-plexus-component-metadata)
+ ("java-sonatype-aether-test-util" ,java-sonatype-aether-test-util)))))
+
(define-public maven-shared-utils
(package
(name "maven-shared-utils")