aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-05-27 23:40:38 +0200
committerJulien Lepiller <julien@lepiller.eu>2018-06-09 23:25:11 +0200
commitd55503a6ab5f4cf9af58a0f04c4f1a91f516174a (patch)
tree6a5a5883236cceacc6d5f98fcf3268513205bf9d /gnu/packages/maven.scm
parent458687d58677518a3fd3e441d2cd94d9f964990a (diff)
downloadpatches-d55503a6ab5f4cf9af58a0f04c4f1a91f516174a.tar
patches-d55503a6ab5f4cf9af58a0f04c4f1a91f516174a.tar.gz
gnu: Add maven-model.
* gnu/packages/maven.scm (maven-model): New variable.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm50
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index c414160b34..fc04656324 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -166,3 +166,53 @@ tool. This package contains the Maven Artifact classes, providing the
jar file is executable and provides a little tool to display how Maven parses
and compares versions:")
(license license:asl2.0)))
+
+(define-public maven-model
+ (package
+ (inherit maven-artifact)
+ (name "maven-model")
+ (arguments
+ `(#:jar-name "maven-model.jar"
+ #:source-dir "maven-model/src/main/java"
+ #:test-dir "maven-model/src/test"
+ #:jdk ,icedtea-8
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-models
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define (modello-single-mode file version mode)
+ (invoke "java" "org.codehaus.modello.ModelloCli"
+ file mode "maven-model/src/main/java" version
+ "false" "true"))
+ (let ((file "maven-model/src/main/mdo/maven.mdo"))
+ (modello-single-mode file "4.0.0" "java")
+ (modello-single-mode file "4.0.0" "xpp3-reader")
+ (modello-single-mode file "4.0.0" "xpp3-writer")
+ (modello-single-mode file "4.0.0" "xpp3-extended-reader"))
+ #t)))))
+ (inputs
+ `(("java-commons-lang3" ,java-commons-lang3)
+ ("java-plexus-utils" ,java-plexus-utils)))
+ (native-inputs
+ `(("java-modello-core" ,java-modello-core)
+ ;; for modello:
+ ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-guice" ,java-guice)
+ ("java-cglib" ,java-cglib)
+ ("java-asm" ,java-asm)
+ ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
+ ("java-javax-inject" ,java-javax-inject)
+ ("java-plexus-classworlds" ,java-plexus-classworlds)
+ ("java-guava" ,java-guava)
+ ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
+ ("java-sisu-build-api" ,java-sisu-build-api)
+ ;; modello plugins:
+ ("java-modello-plugins-java" ,java-modello-plugins-java)
+ ("java-modello-plugins-xml" ,java-modello-plugins-xml)
+ ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
+ ;; for tests
+ ("java-junit" ,java-junit)))
+ (description "Apache Maven is a software project management and comprehension
+tool. This package contains the model for Maven @dfn{POM} (Project Object Model),
+so really just plain Java objects.")))