aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maven.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-05-27 23:51:34 +0200
committerJulien Lepiller <julien@lepiller.eu>2018-06-09 23:25:16 +0200
commit3a5572ae76707a48781a800c980cbeb5e7ca31dc (patch)
treef8571111e0809c4e4e37fe3b1a39ede42ecacdf0 /gnu/packages/maven.scm
parent18110e45a694b26d37a4a67326225fc780bc9fa9 (diff)
downloadguix-3a5572ae76707a48781a800c980cbeb5e7ca31dc.tar
guix-3a5572ae76707a48781a800c980cbeb5e7ca31dc.tar.gz
gnu: Add maven-settings-builder.
* gnu/packages/maven.scm (maven-settings-builder): New variable.
Diffstat (limited to 'gnu/packages/maven.scm')
-rw-r--r--gnu/packages/maven.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index bb948e72c7..64ee672be9 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -292,3 +292,35 @@ setting, toolchains)")))
(description "Apache Maven is a software project management and comprehension
tool. This package contains strictly the model for Maven settings, that is
simply plain java objects.")))
+
+(define-public maven-settings-builder
+ (package
+ (inherit maven-artifact)
+ (name "maven-settings-builder")
+ (arguments
+ `(#:jar-name "maven-settings-builder.jar"
+ #:source-dir "maven-settings-builder/src/main/java"
+ #:jdk ,icedtea-8
+ #:test-dir "maven-settings-builder/src/test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'generate-components.xml
+ (lambda _
+ (mkdir-p "build/classes/META-INF/plexus")
+ (chmod "components.sh" #o755)
+ (invoke "./components.sh" "maven-settings-builder/src/main/java"
+ "build/classes/META-INF/plexus/components.xml")
+ #t)))))
+ (inputs
+ `(("java-plexus-utils" ,java-plexus-utils)
+ ("java-plexus-component-annotations" ,java-plexus-component-annotations)
+ ("java-plexus-interpolation" ,java-plexus-interpolation)
+ ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
+ ("maven-builder-support" ,maven-builder-support)
+ ("maven-settings" ,maven-settings)
+ ("java-commons-lang3" ,java-commons-lang3)))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (description "Apache Maven is a software project management and comprehension
+tool. This package contains the effective model builder, with profile activation,
+inheritance, interpolation, @dots{}")))