diff options
author | Julien Lepiller <julien@lepiller.eu> | 2020-06-28 00:01:32 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2020-07-17 04:21:15 +0200 |
commit | 7c02294bc2a535dfe5d1573683234e00d4594ce1 (patch) | |
tree | af36a512193c12f9b6baa461da41c367a7b0c0a8 | |
parent | b777e194376ec5ace990789e92251f89983da3e6 (diff) | |
download | guix-7c02294bc2a535dfe5d1573683234e00d4594ce1.tar.gz |
gnu: Add maven-surefire-plugin.
* gnu/packages/maven.scm (maven-surefire-plugin): New variable.
-rw-r--r-- | gnu/packages/maven.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index bfb5a51807..5c95a50648 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -3583,3 +3583,34 @@ JVM, using JUnit 4.0 or later."))) (synopsis "API used in Surefire and Failsafe MOJO") (description "This package contains an API used in SureFire and Failsafe MOJO."))) + +(define-public maven-surefire-plugin + (package + (inherit java-surefire-logger-api) + (name "maven-surefire-plugin") + (arguments + `(#:jar-name "maven-surefire-plugin.jar" + #:source-dir "maven-surefire-plugin/src/main/java" + #:tests? #f; test depends on maven-plugin-test-harness + #:phases + (modify-phases %standard-phases + (add-before 'build 'generate-plugin.xml + (generate-plugin.xml "maven-surefire-plugin/pom.xml" + "surefire" + "." + (list + (list + "maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java" + "maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java")))) + (replace 'install + (install-from-pom "maven-surefire-plugin/pom.xml"))))) + (propagated-inputs + `(("maven-surefire-common" ,maven-surefire-common) + ("maven-core" ,maven-core))) + (native-inputs + `(("maven-plugin-annotations" ,maven-plugin-annotations) + ("unzip" ,unzip))) + (synopsis "SureFire Maven plugin that runs tests.") + (description "The Surefire Plugin is used during the test phase of the +build lifecycle to execute the unit tests of an application. It generates +reports in two different file formats, plain text and xml."))) |