mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
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:
parent
8815719c96
commit
540f362843
1 changed files with 43 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue