summary refs log tree commit diff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2021-06-01 00:44:25 +0200
committerJulien Lepiller <julien@lepiller.eu>2021-06-22 13:10:45 +0200
commit98d2ba1a5ad517d9de184cee2fd6b9df11978d07 (patch)
tree66ed006ab533898915b7bba6452facadfc035455 /gnu/packages/maven.scm
parentb6b9668949ec73b45141d9002802f55c5604a3bd (diff)
downloadguix-98d2ba1a5ad517d9de184cee2fd6b9df11978d07.tar.gz
gnu: maven-enforcer-parent-pom: Fix pom.
* gnu/packages/maven.scm (maven-enforcer-parent-pom): Fix dependency
versions in pom file.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 9d65e9b56d..f7cb168f47 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2713,6 +2713,15 @@ Maven project dependencies.")
        (modify-phases %standard-phases
          (delete 'configure)
          (delete 'build)
+         (add-before 'install 'fix-pom-versions
+           (lambda _
+             (substitute* "pom.xml"
+               (("3.8.1") ,(package-version java-commons-lang3))
+               (("1.4.1") ,(package-version maven-resolver-util))
+               (("1.12") ,(package-version java-commons-codec))
+               (("<version>2.2</version>")
+                ,(string-append "<version>" (package-version maven-dependency-tree)
+                                "</version>")))))
          (replace 'install
            (install-pom-file "pom.xml")))))
     (propagated-inputs