gnu: maven-core: Fill properties.

* gnu/packages/maven.scm (maven-core-bootstrap)[arguments]: Add a
fill-properties phase.
This commit is contained in:
Julien Lepiller 2018-06-23 12:16:55 +02:00
parent 7504f3c3d3
commit e27c43d94e
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 12 additions and 0 deletions

View File

@ -1080,6 +1080,18 @@ generally generated from plugin sources using maven-plugin-plugin.")))
(mkdir-p "build/classes/")
(copy-recursively "src/main/resources" "build/classes")
#t))
(add-after 'copy-resources 'fill-properties
(lambda _
;; This file controls the output of some mvn subcommands, such as
;; mvn -version.
(substitute* "build/classes/org/apache/maven/messages/build.properties"
(("\\$\\{buildNumber\\}") "guix_build")
(("\\$\\{timestamp\\}") "0")
(("\\$\\{project.version\\}") ,(package-version maven-artifact))
(("\\$\\{distributionId\\}") "apache-maven")
(("\\$\\{distributionShortName\\}") "Maven")
(("\\$\\{distributionName\\}") "Apache Maven"))
#t))
(add-before 'build 'generate-sisu-named
(lambda _
(mkdir-p "build/classes/META-INF/sisu")