[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: gnu: maven-compat: Install resources.
From: |
guix-commits |
Subject: |
02/04: gnu: maven-compat: Install resources. |
Date: |
Mon, 28 Feb 2022 04:57:18 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 38c0830e858a50ef1b7a41166a283758268be856
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Tue Feb 8 10:24:41 2022 +0100
gnu: maven-compat: Install resources.
* gnu/packages/maven.scm (maven-compat)[arguments]: Add copy-resources
phase.
---
gnu/packages/maven.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 10f18dc7ac..02eaad410c 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2000,6 +2000,10 @@ logging support.")))
(modello-single-mode file "1.0.0" "xpp3-reader")
(modello-single-mode file "1.0.0" "xpp3-writer"))
#t))
+ (add-before 'build 'copy-resources
+ (lambda _
+ (mkdir-p "build/classes/")
+ (copy-recursively "src/main/resources" "build/classes")))
(add-after 'build 'generate-metadata
(lambda _
(invoke "java" "-cp" (string-append (getenv "CLASSPATH")
":build/classes")