summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 19:22:15 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:18:31 +0200
commitea806229c7f66bdb389e52e81dddfba72be31abe (patch)
treec69f7bade153790c0f2582d024c160c050277cbb /gnu
parente244157bee5d1eee9a51a65ad07a23c772a7e817 (diff)
gnu: Add maven-artifact-transfer.
* gnu/packages/maven.scm (maven-artifact-transfer): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maven.scm56
1 files changed, 56 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 560c94ebcdc..9940558ead1 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2761,3 +2761,59 @@ Maven project dependencies.")
2761 ("maven-enforcer-rules" ,maven-enforcer-rules) 2761 ("maven-enforcer-rules" ,maven-enforcer-rules)
2762 ("maven-plugin-annotations" ,maven-plugin-annotations) 2762 ("maven-plugin-annotations" ,maven-plugin-annotations)
2763 ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom))))) 2763 ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom)))))
2764
2765(define-public maven-artifact-transfer
2766 (package
2767 (name "maven-artifact-transfer")
2768 (version "0.12.0")
2769 (source (origin
2770 (method url-fetch)
2771 (uri (string-append "mirror://apache/maven/shared/"
2772 "maven-artifact-transfer-" version
2773 "-source-release.zip"))
2774 (sha256
2775 (base32
2776 "0mkdjr3wnvaxqaq68sy7h4mqlq3xgwwp5s2anj5vbxfy4bsc1ivj"))))
2777 (build-system ant-build-system)
2778 (arguments
2779 `(#:tests? #f; require mockito 2
2780 #:jar-name "maven-artifact-transfer.jar"
2781 #:source-dir "src/main/java"
2782 #:phases
2783 (modify-phases %standard-phases
2784 (add-after 'build 'generate-metadata
2785 (lambda _
2786 (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
2787 "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
2788 "--source" "src/main/java"
2789 "--output" "build/classes/META-INF/plexus/components.xml"
2790 "--classes" "build/classes"
2791 "--descriptors" "build/classes/META-INF")
2792 #t))
2793 (add-after 'generate-metadata 'rebuild
2794 (lambda _
2795 (invoke "ant" "jar")
2796 #t))
2797 (replace 'install
2798 (install-from-pom "pom.xml")))))
2799 (propagated-inputs
2800 `(("java-commons-codec" ,java-commons-codec)
2801 ("maven-artifact" ,maven-3.0-artifact)
2802 ("maven-core" ,maven-3.0-core)
2803 ("maven-common-artifact-filters" ,maven-common-artifact-filters)
2804 ("java-plexus-component-annotations" ,java-plexus-component-annotations)
2805 ("java-plexus-utils" ,java-plexus-utils)
2806 ("java-slf4j-api" ,java-slf4j-api)
2807 ("java-plexus-classworlds" ,java-plexus-classworlds)
2808 ("java-sonatype-aether-api" ,java-sonatype-aether-api)
2809 ("java-eclipse-aether-api" ,java-eclipse-aether-api)
2810 ("java-eclipse-aether-util" ,java-eclipse-aether-util)
2811 ("java-eclipse-aether-impl" ,java-eclipse-aether-impl)))
2812 (native-inputs
2813 `(("unzip" ,unzip)
2814 ("java-plexus-component-metadata" ,java-plexus-component-metadata)))
2815 (home-page "https://maven.apache.org/shared/maven-artifact-transfer")
2816 (synopsis "API to install, deploy and resolve artifacts in Maven")
2817 (description "This package contains an API to install, deploy and resolve
2818artifacts in Maven 3.")
2819 (license license:asl2.0)))