guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

88/110: gnu: maven-plugin-annotations: Install from pom file.


From: guix-commits
Subject: 88/110: gnu: maven-plugin-annotations: Install from pom file.
Date: Thu, 16 Jul 2020 22:23:36 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit f738576086fbe474477c06fd6be8ac73f3148336
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Sat Jun 27 23:04:47 2020 +0200

    gnu: maven-plugin-annotations: Install from pom file.
    
    * gnu/packages/maven.scm (maven-plugin-annotations): Install from pom
    file.
---
 gnu/packages/maven.scm | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 9940558..126e077 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -661,9 +661,14 @@ replacement with improvements.")
     (arguments
      `(#:jar-name "maven-plugin-annotations.jar"
        #:source-dir "maven-plugin-annotations/src/main/java"
-       #:tests? #f))
-    (inputs
-     `(("maven-artifact" ,maven-artifact)))
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install
+           (install-from-pom "maven-plugin-annotations/pom.xml")))))
+    (propagated-inputs
+     `(("maven-artifact" ,maven-artifact)
+       ("maven-plugin-tools-parent-pom" ,maven-plugin-tools-parent-pom)))
     (native-inputs
      `(("unzip" ,unzip)))
     (home-page 
"https://maven.apache.org/plugin-tools/maven-plugin-annotations/";)
@@ -671,6 +676,20 @@ replacement with improvements.")
     (description "This package contains Java 5 annotations for use in Mojos.")
     (license license:asl2.0)))
 
+(define maven-plugin-tools-parent-pom
+  (package
+    (inherit maven-plugin-annotations)
+    (name "maven-plugin-tools-parent-pom")
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (delete 'build)
+         (replace 'install
+           (install-pom-file "pom.xml")))))
+    (propagated-inputs '())))
+
 (define-public maven-wagon-provider-api
   (package
     (name "maven-wagon-provider-api")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]