diff options
author | Julien Lepiller <julien@lepiller.eu> | 2020-06-27 16:16:42 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2020-07-17 04:17:04 +0200 |
commit | 457efe296e87805879e2ccbef34b71f169c1e2ea (patch) | |
tree | 39817bbfa5fb1a3f69245c4b8e2de9cf317d5acd /gnu | |
parent | 279ec0c005fc85b5d3eac8974d8b2f730474aa55 (diff) | |
download | guix-457efe296e87805879e2ccbef34b71f169c1e2ea.tar.gz guix-457efe296e87805879e2ccbef34b71f169c1e2ea.zip |
gnu: Add maven-3.0-plugin-api.
* gnu/packages/maven.scm (maven-3.0-plugin-api): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/maven.scm | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ reporting or the build process."))) ("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))))) |