all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 30417@debbugs.gnu.org
Subject: [bug#30417] [PATCH 11/11] gnu: Add java-plexus-sec-dispatcher.
Date: Sun, 11 Feb 2018 00:04:38 +0100	[thread overview]
Message-ID: <20180210230438.26794-11-julien@lepiller.eu> (raw)
In-Reply-To: <20180210234811.40ddec07@lepiller.eu>

* gnu/packages/java.scm (java-plexus-sec-dispatcher): New variable.
---
 gnu/packages/java.scm | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 758665df9..bd3fc7e70 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -2757,6 +2757,94 @@ compilers.")
     (description "This package contains the Javac Compiler support for Plexus
 Compiler component.")))
 
+(define-public java-plexus-sec-dispatcher
+  (package
+    (name "java-plexus-sec-dispatcher")
+    (version "1.4") ;; Newest release listed at the Maven Central Repository.
+    (source (origin
+              ;; This project doesn't tag releases or publish tarballs, so we take
+              ;; the "prepare release plexus-sec-dispatcher-1.4" git commit.
+              (method url-fetch)
+              (uri (string-append "https://github.com/sonatype/plexus-sec-dispatcher/"
+                                  "archive/7db8f88048.tar.gz"))
+              (sha256
+               (base32
+                "1smfrk4n7xbrsxpxcp2j4i0j8q86j73w0w6xg7qz83dp6dagdjgp"))
+              (file-name (string-append name "-" version ".tar.gz"))))
+    (arguments
+     `(#:jar-name "plexus-sec-dispatcher.jar"
+       #:source-dir "src/main/java"
+       #:jdk ,icedtea-8
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'build 'generate-models
+           (lambda* (#:key inputs #:allow-other-keys)
+             (define (modello-single-mode file version mode)
+               (zero? (system* "java"
+                               "org.codehaus.modello.ModelloCli"
+                               file mode "src/main/java" version
+                               "false" "true")))
+             (let ((file "src/main/mdo/settings-security.mdo"))
+               (and
+               (modello-single-mode file "1.0.0" "java")
+               (modello-single-mode file "1.0.0" "xpp3-reader")
+               (modello-single-mode file "1.0.0" "xpp3-writer")))))
+         (add-before 'build 'generate-components.xml
+           (lambda _
+             (mkdir-p "build/classes/META-INF/plexus")
+             (with-output-to-file "build/classes/META-INF/plexus/components.xml"
+               (lambda _
+                 (display
+                   "<component-set>\n
+  <components>\n
+    <component>\n
+      <role>org.sonatype.plexus.components.sec.dispatcher.SecDispatcher</role>\n
+      <role-hint>default</role-hint>\n
+      <implementation>org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher</implementation>\n
+      <description></description>\n
+      <requirements>\n
+        <requirement>\n
+          <role>org.sonatype.plexus.components.cipher.PlexusCipher</role>\n
+          <field-name>_cipher</field-name>\n
+        </requirement>\n
+        <requirement>\n
+          <role>org.sonatype.plexus.components.sec.dispatcher.PasswordDecryptor</role>\n
+          <field-name>_decryptors</field-name>\n
+        </requirement>\n
+      </requirements>\n
+      <configuration>\n
+        <_configuration-file>~/.settings-security.xml</_configuration-file>\n
+      </configuration>\n
+    </component>\n
+  </components>\n
+</component-set>\n")))))
+         (add-before 'check 'fix-paths
+           (lambda _
+             (copy-recursively "src/test/resources" "target"))))))
+    (inputs
+     `(("java-plexus-cipher" ,java-plexus-cipher)))
+    (native-inputs
+     `(("java-modello-core" ,java-modello-core)
+       ;; for modello:
+       ("java-plexus-container-default" ,java-plexus-container-default)
+       ("java-plexus-classworlds" ,java-plexus-classworlds)
+       ("java-plexus-utils" ,java-plexus-utils)
+       ("java-guava" ,java-guava)
+       ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
+       ("java-sisu-build-api" ,java-sisu-build-api)
+       ;; modello plugins:
+       ("java-modellop-plugins-java" ,java-modello-plugins-java)
+       ("java-modellop-plugins-xml" ,java-modello-plugins-xml)
+       ("java-modellop-plugins-xpp3" ,java-modello-plugins-xpp3)
+       ;; for tests
+       ("java-junit" ,java-junit)))
+    (build-system ant-build-system)
+    (home-page "http://spice.sonatype.org/plexus-sec-dispatcher/")
+    (synopsis "Plexus Security Dispatcher Component")
+    (description "This package is the Plexus Security Dispatcher Component.
+This component descrypts a string passed to it")
+    (license license:asl2.0)))
+
 (define-public java-sisu-build-api
   (package
     (name "java-sisu-build-api")
-- 
2.16.1

  parent reply	other threads:[~2018-02-10 23:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-10 22:48 [bug#30417] [PATCH] java-plexus and java-modello Julien Lepiller
2018-02-10 23:04 ` [bug#30417] [PATCH 01/11] gnu: Add java-plexus-component-annotations Julien Lepiller
2018-02-11 23:36   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 02/11] gnu: Add java-plexus-cipher Julien Lepiller
2018-02-11 23:42   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 03/11] gnu: Add java-plexus-compiler-api Julien Lepiller
2018-02-11 23:47   ` Björn Höfling
2018-02-14 19:18     ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 04/11] gnu: Add java-plexus-compiler-javac Julien Lepiller
2018-02-14 19:23   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 05/11] gnu: Add java-sisu-build-api Julien Lepiller
2018-02-14 19:53   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 06/11] gnu: Add java-modello-core Julien Lepiller
2018-02-14 20:22   ` Björn Höfling
2018-02-14 21:56     ` Julien Lepiller
2018-02-16 19:16       ` Björn Höfling
2018-02-17 15:06         ` Marius Bakke
2018-02-24 21:11           ` Julien Lepiller
2018-02-24 21:20             ` Marius Bakke
2018-02-10 23:04 ` [bug#30417] [PATCH 07/11] gnu: Add java-modello-plugins-java Julien Lepiller
2018-02-14 20:34   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 08/11] gnu: Add java-modello-plugins-xml Julien Lepiller
2018-02-14 20:37   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 09/11] gnu: Add java-modello-test Julien Lepiller
2018-02-14 20:39   ` Björn Höfling
2018-02-10 23:04 ` [bug#30417] [PATCH 10/11] gnu: Add java-modello-plugins-xpp3 Julien Lepiller
2018-02-14 20:43   ` Björn Höfling
2018-02-10 23:04 ` Julien Lepiller [this message]
2018-02-14 20:59   ` [bug#30417] [PATCH 11/11] gnu: Add java-plexus-sec-dispatcher Björn Höfling
2018-02-14 21:02     ` Björn Höfling
2018-02-25 11:08 ` bug#30417: [PATCH] java-plexus and java-modello Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180210230438.26794-11-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=30417@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.