aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-06-23 12:16:55 +0200
committerJulien Lepiller <julien@lepiller.eu>2018-06-23 12:17:42 +0200
commite27c43d94e23daf6b114b03688a51c924890a286 (patch)
tree53986392ab03968ae5887ccb1084a3d84056286f
parent7504f3c3d3a2fbd0f901757a9bd3175e424c11ca (diff)
downloadpatches-e27c43d94e23daf6b114b03688a51c924890a286.tar
patches-e27c43d94e23daf6b114b03688a51c924890a286.tar.gz
gnu: maven-core: Fill properties.
* gnu/packages/maven.scm (maven-core-bootstrap)[arguments]: Add a fill-properties phase.
-rw-r--r--gnu/packages/maven.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 3b24fd7e80..f63fcee6b2 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -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")