aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2021-12-20 03:38:36 +0100
committerJulien Lepiller <julien@lepiller.eu>2022-02-05 20:16:23 +0100
commita208278229203ecc2a7cc0846822ea1830331535 (patch)
tree61bbe42734d1ac0e544b3b9e287c112ca36fe439 /gnu/packages/maven.scm
parent4775d17137dd1ed5bb7ab2fa0552c8619efa683b (diff)
downloadguix-a208278229203ecc2a7cc0846822ea1830331535.tar
guix-a208278229203ecc2a7cc0846822ea1830331535.tar.gz
gnu: maven-common-artifact-filters: Update to 3.2.0.
* gnu/packages/maven.scm (maven-common-artifact-filters): Update to 3.2.0. (maven-common-artifact-filters-3.1.0): New variable.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm40
1 files changed, 31 insertions, 9 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 423e859f8b..da1619b03b 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2682,7 +2682,7 @@ Maven project dependencies.")
(define-public maven-common-artifact-filters
(package
(name "maven-common-artifact-filters")
- (version "3.1.0")
+ (version "3.2.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://apache/maven/shared/"
@@ -2690,7 +2690,7 @@ Maven project dependencies.")
"-source-release.zip"))
(sha256
(base32
- "1cl1qk4r0gp62bjzfm7lml9raz1my2kd4yf0ci0lnfsn0h5qivnb"))))
+ "1mr92s4zz6gf028wiskjg8rd1znxzdnmskg42ac55ifg9v1p1884"))))
(build-system ant-build-system)
(arguments
`(#:jar-name "maven-common-artifact-filters.jar"
@@ -2698,14 +2698,12 @@ Maven project dependencies.")
#:tests? #f; require maven-plugin-testing-harness, which requires maven 3.2.
#:phases
(modify-phases %standard-phases
- (add-before 'build 'remove-sisu
+ (add-before 'build 'fix-aether
(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))
+ (("eclipse.aether") "sonatype.aether"))
+ (substitute* "src/main/java/org/apache/maven/shared/artifact/filter/collection/ArtifactTransitivityFilter.java"
+ (("eclipse") "sonatype"))))
(replace 'install
(install-from-pom "pom.xml")))))
(propagated-inputs
@@ -2715,6 +2713,7 @@ Maven project dependencies.")
maven-3.0-plugin-api
maven-shared-utils
maven-parent-pom-33
+ java-eclipse-sisu-plexus
java-sonatype-aether-api
java-sonatype-aether-util))
(inputs
@@ -2727,6 +2726,29 @@ Maven project dependencies.")
Maven project dependencies.")
(license license:asl2.0)))
+(define-public maven-common-artifact-filters-3.1.0
+ (package
+ (inherit 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"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments maven-common-artifact-filters)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'fix-aether)
+ (add-before 'build 'remove-sisu
+ (lambda _
+ (substitute* "pom.xml"
+ (("sisu-inject-plexus") "maven-plugin-api")
+ (("org.sonatype.sisu") "org.apache.maven"))))))))))
+
(define-public maven-enforcer-api
(package
(name "maven-enforcer-api")
@@ -2878,7 +2900,7 @@ Maven project dependencies.")
(list java-commons-codec
maven-3.0-artifact
maven-3.0-core
- maven-common-artifact-filters
+ maven-common-artifact-filters-3.1.0
java-plexus-component-annotations
java-plexus-utils
java-slf4j-api