summary refs log tree commit diff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2022-02-08 10:24:41 +0100
committerJulien Lepiller <julien@lepiller.eu>2022-02-28 10:56:01 +0100
commit38c0830e858a50ef1b7a41166a283758268be856 (patch)
tree696fa7c1f9fcb1a5e07b5c6e15031d66cb6029fc /gnu/packages/maven.scm
parentea23386e084a035e4bc23273fffc3d114b311789 (diff)
downloadguix-38c0830e858a50ef1b7a41166a283758268be856.tar.gz
gnu: maven-compat: Install resources.
* gnu/packages/maven.scm (maven-compat)[arguments]: Add copy-resources
phase.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm4
1 files changed, 4 insertions, 0 deletions
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")