aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 16:16:42 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:17:04 +0200
commit457efe296e87805879e2ccbef34b71f169c1e2ea (patch)
tree39817bbfa5fb1a3f69245c4b8e2de9cf317d5acd /gnu
parent279ec0c005fc85b5d3eac8974d8b2f730474aa55 (diff)
downloadguix-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.scm28
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)))))