From 457efe296e87805879e2ccbef34b71f169c1e2ea Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Sat, 27 Jun 2020 16:16:42 +0200 Subject: gnu: Add maven-3.0-plugin-api. * gnu/packages/maven.scm (maven-3.0-plugin-api): New variable. --- gnu/packages/maven.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index 42ae8a98d9..95a5779472 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -2201,3 +2201,31 @@ (define-public maven-3.0-model-builder ("maven-builder-support" #f) (_ input))) (package-propagated-inputs maven-model-builder))))))) + +(define-public maven-3.0-plugin-api + (package + (inherit maven-plugin-api) + (version (package-version maven-3.0-pom)) + (source (package-source maven-3.0-pom)) + (arguments + (substitute-keyword-arguments (package-arguments maven-plugin-api) + ((#:phases phases) + `(modify-phases ,phases + (add-before 'install 'fix-pom + (lambda _ + (substitute* "maven-plugin-api/pom.xml" + (("org.sonatype.sisu") "org.codehaus.plexus") + (("sisu-inject-plexus") "plexus-container-default")) + #t)))))) + (propagated-inputs + (map + (lambda (input) + (match (car input) + ("maven-pom" `("maven-pom" ,maven-3.0-pom)) + ("maven-artifact" `("maven-artifact" ,maven-3.0-artifact)) + ("maven-model" `("maven-model" ,maven-3.0-model)) + (_ input))) + (package-propagated-inputs maven-model-builder))) + (native-inputs + `(("java-plexus-container-default" ,java-plexus-container-default) + ,@(package-native-inputs maven-plugin-api))))) -- cgit v1.2.3