aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 17:23:24 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:18:00 +0200
commitee1bed9d64fe923c2733d368e353dc9a6789b600 (patch)
tree065b7049d30728874893925c868c4b27cd19eda5 /gnu/packages
parent24bdd1504eba3f10b144c53738bdbde5f678b9b9 (diff)
downloadguix-ee1bed9d64fe923c2733d368e353dc9a6789b600.tar
guix-ee1bed9d64fe923c2733d368e353dc9a6789b600.tar.gz
gnu: Add maven-common-artifact-filters.
* gnu/packages/maven.scm (maven-common-artifact-filters): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/maven.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index e59e7aea8b..bca499d87d 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2606,3 +2606,52 @@ Maven project dependencies.")
(description "This package provides a tree-based API for resolution of
Maven project dependencies.")
(license license:asl2.0)))
+
+(define-public maven-common-artifact-filters
+ (package
+ (name "maven-common-artifact-filters")
+ (version "3.1.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/maven/shared/"
+ "maven-common-artifact-filters-" version
+ "-source-release.zip"))
+ (sha256
+ (base32
+ "1cl1qk4r0gp62bjzfm7lml9raz1my2kd4yf0ci0lnfsn0h5qivnb"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "maven-common-artifact-filters.jar"
+ #:source-dir "src/main/java"
+ #:tests? #f; require maven-plugin-testing-harness, which requires maven 3.2.
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'remove-sisu
+ (lambda _
+ ;; Replace sisu with an existing dependency, to prevent a failure
+ ;; when rewritting dependency versions
+ (substitute* "pom.xml"
+ (("sisu-inject-plexus") "maven-plugin-api")
+ (("org.sonatype.sisu") "org.apache.maven"))
+ #t))
+ (replace 'install
+ (install-from-pom "pom.xml")))))
+ (propagated-inputs
+ `(("maven-artifact" ,maven-3.0-artifact)
+ ("maven-model" ,maven-3.0-model)
+ ("maven-core" ,maven-3.0-core)
+ ("maven-plugin-api" ,maven-3.0-plugin-api)
+ ("maven-shared-utils" ,maven-shared-utils)
+ ("maven-parent-pom" ,maven-parent-pom-33)
+ ("java-sonatype-aether-api" ,java-sonatype-aether-api)
+ ("java-sonatype-aether-util" ,java-sonatype-aether-util)))
+ (inputs
+ `(("maven-resolver-api" ,maven-resolver-api)
+ ("maven-resolver-util" ,maven-resolver-util)))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (home-page "https://maven.apache.org/shared/maven-dependency-tree")
+ (synopsis "Tree-based API for resolution of Maven project dependencies")
+ (description "This package provides a tree-based API for resolution of
+Maven project dependencies.")
+ (license license:asl2.0)))