From e244157bee5d1eee9a51a65ad07a23c772a7e817 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 27 Jun 2020 18:50:13 +0200 Subject: gnu: Add maven-enforcer-plugin. * gnu/packages/maven.scm (maven-enforcer-plugin): New variable. --- gnu/packages/maven.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/maven.scm') 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 @@ (define-public maven-enforcer-rules ("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))))) -- cgit v1.2.3