diff options
author | Julien Lepiller <julien@lepiller.eu> | 2020-06-27 18:50:13 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2020-07-17 04:18:27 +0200 |
commit | e244157bee5d1eee9a51a65ad07a23c772a7e817 (patch) | |
tree | 9c657a7e231543c565f51ab7f47e649c33b819a8 /gnu | |
parent | 94261e7ce2c640a074e25a0c976bb5ac546ff429 (diff) | |
download | guix-e244157bee5d1eee9a51a65ad07a23c772a7e817.tar.gz |
gnu: Add maven-enforcer-plugin.
* gnu/packages/maven.scm (maven-enforcer-plugin): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/maven.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index 0eb5db3c13..560c94ebcd 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -2732,3 +2732,32 @@ Maven project dependencies.") ("maven-dependency-tree" ,maven-dependency-tree) ("maven-compat" ,maven-3.0-compat) ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom))))) + +(define-public maven-enforcer-plugin + (package + (inherit maven-enforcer-api) + (name "maven-enforcer-plugin") + (arguments + `(#:tests? #f + #:jar-name "maven-enforcer-plugin.jar" + #:source-dir "maven-enforcer-plugin/src/main/java" + #:phases + (modify-phases %standard-phases + (add-before 'build 'generate-plugin.xml + (generate-plugin.xml "maven-enforcer-plugin/pom.xml" + "enforcer" + "maven-enforcer-plugin/src/main/java/org/apache/maven/plugins/enforcer/" + (list + (list "DisplayInfoMojo.java") + (list "EnforceMojo.java")))) + (replace 'install + (install-from-pom "maven-enforcer-plugin/pom.xml"))))) + (propagated-inputs + `(("maven-artifact" ,maven-artifact) + ("maven-plugin-api" ,maven-plugin-api) + ("maven-core" ,maven-core) + ("java-plexus-utils" ,java-plexus-utils) + ("maven-enforcer-api" ,maven-enforcer-api) + ("maven-enforcer-rules" ,maven-enforcer-rules) + ("maven-plugin-annotations" ,maven-plugin-annotations) + ("maven-enforcer-parent-pom" ,maven-enforcer-parent-pom))))) |