aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-03-17 16:25:45 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-06-16 13:17:52 +0200
commit8f5caf936623e32158f2996da8c2cb2017048415 (patch)
tree4c08af3fee62851af5f88fa6907744078c905278 /gnu/packages/maven.scm
parentab621bf142d2803e4a6b8c79df715d204e0bfb47 (diff)
downloadguix-8f5caf936623e32158f2996da8c2cb2017048415.tar
guix-8f5caf936623e32158f2996da8c2cb2017048415.tar.gz
gnu: Add maven-plugin-api.
* gnu/packages/maven.scm (maven-plugin-api): New variable.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm53
1 files changed, 53 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 473847c044..65903b9c12 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -562,3 +562,56 @@ so really just plain objects.")))
("java-guava" ,java-guava)
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
("java-javax-inject" ,java-javax-inject)))))
+
+(define-public maven-plugin-api
+ (package
+ (inherit maven-artifact)
+ (name "maven-plugin-api")
+ (arguments
+ `(#:jar-name "maven-plugin-api.jar"
+ #:source-dir "maven-plugin-api/src/main/java"
+ #:jdk ,icedtea-8
+ #:test-dir "maven-plugin-api/src/test"
+ #: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-plugin-api/src/main/java" version
+ "false" "true"))
+ (let ((file "maven-plugin-api/src/main/mdo/lifecycle.mdo"))
+ (modello-single-mode file "1.0.0" "java")
+ (modello-single-mode file "1.0.0" "xpp3-reader")
+ (modello-single-mode file "1.0.0" "xpp3-writer"))
+ #t)))))
+ (inputs
+ `(("maven-artifact" ,maven-artifact)
+ ("maven-model" ,maven-model)
+ ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("guice" ,java-guice)
+ ("java-cglib" ,java-cglib)
+ ("java-asm" ,java-asm)
+ ("sisu-inject" ,java-eclipse-sisu-inject)
+ ("javax-inject" ,java-javax-inject)
+ ("utils" ,java-plexus-utils)))
+ (native-inputs
+ `(("modello" ,java-modello-core)
+ ;; for modello:
+ ("classworlds" ,java-plexus-classworlds)
+ ("guava" ,java-guava)
+ ("xbean" ,java-geronimo-xbean-reflect)
+ ("build-api" ,java-sisu-build-api)
+ ;; modello plugins:
+ ("java" ,java-modello-plugins-java)
+ ("xml" ,java-modello-plugins-xml)
+ ("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 strictly the API for plugins -- composed of goals
+implemented by Mojos -- development.
+
+A plugin is described in a @file{META-INF/maven/plugin.xml} plugin descriptor,
+generally generated from plugin sources using maven-plugin-plugin.")))