From a18f0a7fd1a073c6a755370c377fe13a24815d51 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 27 Jun 2020 14:02:44 +0200 Subject: gnu: Add java-sonatype-aether-api. * gnu/packages/maven.scm (java-sonatype-aether-api): New variable. --- gnu/packages/maven.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index 00c644c432..757b522d60 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -364,6 +364,40 @@ (define-public maven-resolver-transport-wagon (description "This package contains a transport implementation based on Maven Wagon, for use in Maven."))) +;; aether is the parent project that was forked into maven-resolver. It used +;; to be used with older versions of Maven, and is still required for some +;; plugins and their dependencies. This version is required for the plugins, +;; even though there are newer versions of this project. +(define-public java-sonatype-aether-api + (package + (name "java-sonatype-aether-api") + (version "1.7") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sonatype/sonatype-aether") + (commit (string-append "aether-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wn9fv91n40bvlwbzy0dmh0xqibxl2mpzpnbibhqss3c0zlr1ccq")))) + (build-system ant-build-system) + (arguments + `(#:jar-name "aether-api.jar" + #:source-dir "aether-api/src/main/java" + #:test-dir "aether-api/src/test" + #:phases + (modify-phases %standard-phases + (add-before 'install 'install-parent (install-pom-file "pom.xml")) + (replace 'install (install-from-pom "aether-api/pom.xml"))))) + (propagated-inputs + `(("java-sonatype-forge-parent-pom" ,java-sonatype-forge-parent-pom-6))) + (native-inputs `(("java-junit" ,java-junit))) + (home-page "https://github.com/sonatype/sonatype-aether") + (synopsis "Maven repository system API") + (description "This package contains the API for the maven repository system.") + (license license:asl2.0))) + (define-public maven-shared-utils (package (name "maven-shared-utils") -- cgit v1.2.3