gnu: maven-compat: Install resources.

* gnu/packages/maven.scm (maven-compat)[arguments]: Add copy-resources
phase.
This commit is contained in:
Julien Lepiller 2022-02-08 10:24:41 +01:00
parent ea23386e08
commit 38c0830e85
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -2000,6 +2000,10 @@ (define (modello-single-mode file version mode)
(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")