gnu: Add maven-builder-support.

* gnu/packages/maven.scm (maven-builder-support): New variable.
This commit is contained in:
Julien Lepiller 2018-05-27 23:44:21 +02:00
parent d55503a6ab
commit f084641a01
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 29 additions and 0 deletions

View File

@ -216,3 +216,32 @@ and compares versions:")
(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.")))
(define-public maven-builder-support
(package
(inherit maven-artifact)
(name "maven-builder-support")
(arguments
`(#:jar-name "maven-builder-support.jar"
#:source-dir "maven-builder-support/src/main/java"
#:jdk ,icedtea-8
#:test-dir "maven-builder-support/src/test"
#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-paths
(lambda _
(with-directory-excursion "maven-builder-support/src/test/java"
(substitute*
'("org/apache/maven/building/FileSourceTest.java"
"org/apache/maven/building/UrlSourceTest.java")
(("target/test-classes") "maven-builder-support/src/test/resources")))
#t)))))
(inputs
`(("java-plexus-utils" ,java-plexus-utils)
("java-commons-lang3" ,java-commons-lang3)))
(native-inputs
`(("java-junit" ,java-junit)
("java-hamcrest-core" ,java-hamcrest-core)))
(description "Apache Maven is a software project management and comprehension
tool. This package contains a support library for descriptor builders (model,
setting, toolchains)")))