aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 17:25:52 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:18:04 +0200
commitc3951015d79ce7410fbd66d889acc88be9192d32 (patch)
tree52e57f0eebded80b47e284561bc37d30d7b5757f /gnu/packages/maven.scm
parentee1bed9d64fe923c2733d368e353dc9a6789b600 (diff)
downloadguix-c3951015d79ce7410fbd66d889acc88be9192d32.tar
guix-c3951015d79ce7410fbd66d889acc88be9192d32.tar.gz
gnu: Add maven-enforcer-api.
* gnu/packages/maven.scm (maven-enforcer-api): New variable. * gnu/packages/patches/maven-enforcer-api-fix-old-dependencies.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm50
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index bca499d87d..fb0cb9eac4 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2655,3 +2655,53 @@ Maven project dependencies.")
(description "This package provides a tree-based API for resolution of
Maven project dependencies.")
(license license:asl2.0)))
+
+(define-public maven-enforcer-api
+ (package
+ (name "maven-enforcer-api")
+ (version "3.0.0-M3")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/maven/enforcer/"
+ "enforcer-" version "-source-release.zip"))
+ (sha256
+ (base32
+ "014cwj0dqa69nnlzcin8pk9wsjmmg71vsbcpb16cibcjpm6h9wjg"))
+ (patches
+ (search-patches "maven-enforcer-api-fix-old-dependencies.patch"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "maven-enforcer-api.jar"
+ #:source-dir "enforcer-api/src/main/java"
+ #:tests? #f; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (install-from-pom "enforcer-api/pom.xml")))))
+ (propagated-inputs
+ `(("maven-plugin-api" ,maven-plugin-api)
+ ("java-plexus-container-default" ,java-plexus-container-default)
+ ("java-jsr305" ,java-jsr305)
+ ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom)))
+ (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)))
+
+(define maven-enforcer-parent-pom
+ (package
+ (inherit maven-enforcer-api)
+ (name "maven-enforcer-parent-pom")
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (replace 'install
+ (install-pom-file "pom.xml")))))
+ (propagated-inputs
+ `(("maven-parent-pom" ,maven-parent-pom-30)))))