From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +A1gF5ZZwmF2JAAAgWs5BA (envelope-from ) for ; Tue, 21 Dec 2021 23:47:50 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wCYpE5ZZwmElSgAAB5/wlQ (envelope-from ) for ; Tue, 21 Dec 2021 22:47:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 7D0C818C6A for ; Tue, 21 Dec 2021 23:47:49 +0100 (CET) Received: from localhost ([::1]:42384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mznvA-0003j6-N7 for larch@yhetil.org; Tue, 21 Dec 2021 17:47:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzntX-0008QD-8V for guix-patches@gnu.org; Tue, 21 Dec 2021 17:46:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44521) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzntV-0001ee-UV for guix-patches@gnu.org; Tue, 21 Dec 2021 17:46:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzntV-00081F-Sr for guix-patches@gnu.org; Tue, 21 Dec 2021 17:46:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52723] [PATCH 10/26] gnu: java-plexus-sec-dispatcher: Update to 2.0. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Dec 2021 22:46:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52723 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52723@debbugs.gnu.org Received: via spool by 52723-submit@debbugs.gnu.org id=B52723.164012674830629 (code B ref 52723); Tue, 21 Dec 2021 22:46:05 +0000 Received: (at 52723) by debbugs.gnu.org; 21 Dec 2021 22:45:48 +0000 Received: from localhost ([127.0.0.1]:56030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzntE-0007xr-9I for submit@debbugs.gnu.org; Tue, 21 Dec 2021 17:45:48 -0500 Received: from lepiller.eu ([89.234.186.109]:52550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mznsq-0007us-9X for 52723@debbugs.gnu.org; Tue, 21 Dec 2021 17:45:24 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f8c67460 for <52723@debbugs.gnu.org>; Tue, 21 Dec 2021 22:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=L//lFVB99pErgkMnD2HUlNdLF YUNi4ydRpbtjv1D5Yg=; b=ZSiuQ3W4SxB4BtZh1gSy5f10g1edpeBDSQh8Rgjx4 yk6sOokSuUVXEJVWNC6C/m4xi0bNMoDGyHMo/N521pOcprxU0sZivCQH3nR9Zn84 M/em6mKQP2gcv6tVGfvfVNG9MwB8lir7JSEjD/Us4z5cv+vwdkaRYCbwR17YX/bT bp54hBNyiX1icvP3dqILNpg8XfonVkBPz5cOMePF6i0I6Ec4HVI9AKyGvbEAHMSw 7Fgt1piZfAhrPQpvBkC96rZz9A8wdTYoc0MgPB4ylXrYv8Dapri/PngUcNr0rLfg COsOESpIY1uXcbFZdaIKhpIuz2mGwbGCNBbAmajuxJ0bw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 6facf0f0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for <52723@debbugs.gnu.org>; Tue, 21 Dec 2021 22:45:22 +0000 (UTC) From: Julien Lepiller Date: Tue, 21 Dec 2021 23:44:54 +0100 Message-Id: X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211221234231.44299f63@tachikoma.lepiller.eu> References: <20211221234231.44299f63@tachikoma.lepiller.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640126869; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PF1My2z8FL99cbnDYXJ6ZuMIA7X6KaBEH/1SLqa/J58=; b=LwRa9wE9lwgZofnIrEwZH1jygVojKVLVwMjUqJma81eSfkwbeAI/ELl+rr1ZCbVtnvCDQW VH2P8yzPlOwCkCUBRgtGbte2XNo73PQyLDHzJz6ijkY48m9XGUcETWzMt3gJcQEkpWpfLx WRYUdZJmDTy/IuCJLIqaAGlAQ0Gm128bzdFE7+Hs9bPepF2sURTDgL+7PuxMaF/TR+NhzQ Wz/kQaLQ+WEhMpOuLvoiJH1mH3q56V9RwfKMkweLFBkDvW/Gdjka3cEHEtJO80mQOcuYXM wgJkJb58rl0fPpqGsnZvgtoJwj5t9IyGv2TMhkObstPMHCVg0EclSVyd4aY2yA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640126869; a=rsa-sha256; cv=none; b=B4HC7jl/Zz8u3BqXrUjrcVZAwSyLe6SKibDTk/kG1Gk38HdeSI8xKzP01zSO0ubGpoHVod g1CNRZEzFV4ntK7r/1ZiJ/LMTj26tfqyLlcozEqQlOzoCcgcF0jRRyyXTXwhbcCocXaV2Y 43aUYiHiV5PTPLZlfELa91D+KqJ5fIzn0py/SU2SHwNw9qc1D0KKnqj4FbnsnrqvbvNgS+ skuayJQZEmVJbuqBWsTD8dn6fJ4PZc76DIJ8Y6m51OXLsnkJKfSsmBNj1MauQxjS1rQyZL 6/2/tHY5/9bAmTKmrH3Jnw/gVEgDy9+4o9FSJWEhj/pJOkOkQvH32mV5eTOB6g== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=ZSiuQ3W4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.07 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=ZSiuQ3W4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7D0C818C6A X-Spam-Score: 1.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: BSRtZAQWpO8y * gnu/packages/java.scm (java-plexus-sec-dispatcher): Update to 2.0. (java-plexus-sec-dispatcher-1.4): New variable. --- gnu/packages/java.scm | 96 +++++++++++++++++++++++++++--------------- gnu/packages/maven.scm | 6 +-- 2 files changed, 64 insertions(+), 38 deletions(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index fd7dc76fe9..811ce1d4f8 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -5056,17 +5056,15 @@ (define-public java-plexus-digest (define-public java-plexus-sec-dispatcher (package (name "java-plexus-sec-dispatcher") - (version "1.4") ;; Newest release listed at the Maven Central Repository. + (version "2.0") (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 git-fetch) (uri (git-reference - (url "https://github.com/sonatype/plexus-sec-dispatcher/") - (commit "7db8f880486e192a1c5ea9544e01e756c3d49d0f"))) + (url "https://github.com/codehaus-plexus/plexus-sec-dispatcher") + (commit (string-append "plexus-sec-dispatcher-" version)))) (sha256 (base32 - "1ng4yliy4cqpjr4fxxjbpwyk1wkch5f8vblm1kvwf328s4gibszs")) + "0665zcyxkv2knydxgv2dn64zvy1dx9j9af12ds9s64qmzd1rk6pk")) (file-name (git-file-name name version)))) (arguments `(#:jar-name "plexus-sec-dispatcher.jar" @@ -5085,6 +5083,61 @@ (define-public java-plexus-sec-dispatcher (modello-single-mode file "1.0.0" "xpp3-reader") (modello-single-mode file "1.0.0" "xpp3-writer")) #t)) + (add-before 'build 'generate-javax.inject.Named + (lambda _ + (mkdir-p "build/classes/META-INF/sisu") + (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named" + (lambda _ + (display + "org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher\n"))) + #t)) + (add-before 'check 'fix-paths + (lambda _ + (copy-recursively "src/test/resources" "target") + #t)) + (replace 'install (install-from-pom "pom.xml"))))) + (propagated-inputs + (list java-plexus-utils java-plexus-cipher plexus-parent-pom-8)) + (native-inputs + (list java-javax-inject + java-modello-core + ;; for modello + java-plexus-container-default + java-plexus-classworlds + java-plexus-utils + java-guava + java-geronimo-xbean-reflect + ;; modello plugins + java-modello-plugins-java + java-modello-plugins-xml + java-modello-plugins-xpp3 + ;; for tests + java-junit)) + (build-system ant-build-system) + (home-page "https://github.com/sonatype/plexus-sec-dispatcher") + (synopsis "Plexus Security Dispatcher Component") + (description "This package is the Plexus Security Dispatcher Component. +This component decrypts a string passed to it.") + (license license:asl2.0))) + +(define-public java-plexus-sec-dispatcher-1.4 + (package + (inherit java-plexus-sec-dispatcher) + (version "1.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/codehaus-plexus/plexus-sec-dispatcher") + (commit (string-append "sec-dispatcher-" version)))) + (sha256 + (base32 + "1ng4yliy4cqpjr4fxxjbpwyk1wkch5f8vblm1kvwf328s4gibszs")) + (file-name (git-file-name "java-plexus-sec-dispatcher" version)))) + (arguments + (substitute-keyword-arguments (package-arguments java-plexus-sec-dispatcher) + ((#:phases phases) + `(modify-phases ,phases + (delete 'generate-javax.inject.Named) (add-before 'build 'generate-components.xml (lambda _ (mkdir-p "build/classes/META-INF/plexus") @@ -5113,37 +5166,10 @@ (define-public java-plexus-sec-dispatcher \n \n \n -\n"))) - #t)) - (add-before 'check 'fix-paths - (lambda _ - (copy-recursively "src/test/resources" "target") - #t)) - (replace 'install (install-from-pom "pom.xml"))))) +\n"))))))))) (propagated-inputs (list java-plexus-utils java-plexus-cipher-1.7 - java-sonatype-spice-parent-pom-12)) - (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-plexus-build-api" ,java-plexus-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 "https://github.com/sonatype/plexus-sec-dispatcher") - (synopsis "Plexus Security Dispatcher Component") - (description "This package is the Plexus Security Dispatcher Component. -This component decrypts a string passed to it.") - (license license:asl2.0))) + java-sonatype-spice-parent-pom-12)))) (define-public java-plexus-cli (package diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index 14cbf49482..c66cfd0b83 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -1197,7 +1197,7 @@ (define-public maven-settings-builder (propagated-inputs (list java-plexus-utils java-plexus-interpolation - java-plexus-sec-dispatcher + java-plexus-sec-dispatcher-1.4 maven-builder-support maven-settings maven-pom)) @@ -1886,7 +1886,7 @@ (define-public maven-compat ("java-qdox" ,java-qdox) ;; tests ("java-plexus-cipher" ,java-plexus-cipher) - ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher) + ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher-1.4) ("java-jsr250" ,java-jsr250) ("java-cdi-api" ,java-cdi-api) ("java-junit" ,java-junit) @@ -2346,7 +2346,7 @@ (define-public maven-3.0-core java-plexus-classworlds java-plexus-component-annotations java-plexus-container-default - java-plexus-sec-dispatcher + java-plexus-sec-dispatcher-1.4 maven-3.0-pom)))) (define-public maven-3.0-compat -- 2.34.0