mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: Add maven-enforcer-plugin.
* gnu/packages/maven.scm (maven-enforcer-plugin): New variable.
This commit is contained in:
parent
94261e7ce2
commit
e244157bee
1 changed files with 29 additions and 0 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Reference in a new issue