gnu: Add java-sonatype-aether-impl.

* gnu/packages/maven.scm (java-sonatype-aether-impl): New variable.
(java-plexus-component-metadata): Propagate inputs.
This commit is contained in:
Julien Lepiller 2020-06-27 15:36:52 +02:00
parent 8815719c96
commit 540f362843
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -54,7 +54,7 @@ (define-public java-plexus-component-metadata
(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 @@ (define-public java-sonatype-aether-util
(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")