me
/
guix
Archived
1
0
Fork 0

gnu: maven-enforcer-parent-pom: Fix pom.

* gnu/packages/maven.scm (maven-enforcer-parent-pom): Fix dependency
versions in pom file.
master
Julien Lepiller 2021-06-01 00:44:25 +02:00
parent b6b9668949
commit 98d2ba1a5a
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 9 additions and 0 deletions

View File

@ -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