From patchwork Fri Sep 16 21:28:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 42675 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A883C27BBEA; Fri, 16 Sep 2022 22:31:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0BE9327BBE9 for ; Fri, 16 Sep 2022 22:31:14 +0100 (BST) Received: from localhost ([::1]:39042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZIvZ-0000w0-6j for patchwork@mira.cbaines.net; Fri, 16 Sep 2022 17:31:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZItS-0007oh-Qp for guix-patches@gnu.org; Fri, 16 Sep 2022 17:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZItS-000634-Ix for guix-patches@gnu.org; Fri, 16 Sep 2022 17:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZItS-0001BZ-At for guix-patches@gnu.org; Fri, 16 Sep 2022 17:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57726] [PATCH] gnu: Add java-eclipse-sisu-maven-plugin. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Sep 2022 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57726 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Julien Lepiller Cc: 57726@debbugs.gnu.org Received: via spool by 57726-submit@debbugs.gnu.org id=B57726.16633636964504 (code B ref 57726); Fri, 16 Sep 2022 21:29:02 +0000 Received: (at 57726) by debbugs.gnu.org; 16 Sep 2022 21:28:16 +0000 Received: from localhost ([127.0.0.1]:44492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZIsi-0001Aa-AZ for submit@debbugs.gnu.org; Fri, 16 Sep 2022 17:28:16 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:44856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZIsg-0001AN-Pp for 57726@debbugs.gnu.org; Fri, 16 Sep 2022 17:28:15 -0400 Received: by mail-lf1-f50.google.com with SMTP id i26so37535379lfp.11 for <57726@debbugs.gnu.org>; Fri, 16 Sep 2022 14:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date; bh=ps4YI4zdIE0JVkSklsA4FUp8IABwj6qZykoaMZhJ9b0=; b=A/GKbalrjWwLwzeo68ykoKlwh7sNF29Fst+He6gfOOCLx0phMURTjmK11B/WzpSHu+ pPAyzzuejQkuWULS0ZRKJHhuE+FJSigBzdeOzeyg+Hl2Y9sO8qPNEc2uOqbvS53Pndsl sLqAMyHYXS7k5ByjlsTWVKpjJ0sCo+jmNcR0fLmMpFQNVwSP+rM1iQzLVz948x1XS5wW kV+OespMBYGLqbJo3/Voet0rUHTkmCew/0NC/BAJS4u4yitZDbSCUq6HS5g3wyAtZ6JA BZo7fI12MNKZaH4SbGSYlf9ODiF5dbx19+n1Y8Mj0IT8N3qO0O8oZgL8vBdH/OQdTwkf 4QYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date; bh=ps4YI4zdIE0JVkSklsA4FUp8IABwj6qZykoaMZhJ9b0=; b=tu3sN+la36IIatMHinBcgOy6lXu8B9CgvTxFTpQgLd/peTtPEJ32MsWG0tcbaVXin2 r1vnipR+Mr+v940FKOwIyJ8sedGNAobGYgmzV7D3LQ3mYLUnVUVlqqhnjdjlfttUHjHX KhqD8qc3jRhmZEp5aRS6ppusbE5FDp+9dl0DJZiT6EGJ0J9nARqFPdcuCh/sBH6gDb42 n8Mcws1Zq6vo3wd2mPFV1bCmaSIvIySLvrAbz4FfT7EqVbQS/zQCD++BqGzja2S+Efww bj65kqngZI5v1vYaA3PakkRmGP0QnXDNnYnMsO6pvJ9aVYVmca3RCQAnhA4ryGDX/flP l16A== X-Gm-Message-State: ACrzQf09jYlQMlqSCQD+jTVx5+MKbUxkhAUzRsXbLTQnnXior1VrU9vf 09p+fWRZdc3KhzVYnxadTJmQkoD1VI8= X-Google-Smtp-Source: AMsMyM7j2zYtTnqJrPaQAoBbHQlIMZTgVBXXpub/1QLx0jaPnykMlj4+GVW6dqZgc60bGreiLOGywg== X-Received: by 2002:a05:6512:402:b0:49e:e07:5e7e with SMTP id u2-20020a056512040200b0049e0e075e7emr2277203lfk.530.1663363688102; Fri, 16 Sep 2022 14:28:08 -0700 (PDT) Received: from elephant ([5.166.205.177]) by smtp.gmail.com with ESMTPSA id u18-20020ac258d2000000b0049110ba325asm3666206lfo.158.2022.09.16.14.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 14:28:06 -0700 (PDT) From: "Artyom V. Poptsov" References: <87k06ajmx0.fsf@gmail.com> Date: Sat, 17 Sep 2022 00:28:00 +0300 In-Reply-To: (Julien Lepiller's message of "Sun, 11 Sep 2022 12:05:06 +0200") Message-ID: <87mtaz6mcf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Julien. > The name implies this is a plugin for maven. The way you build it, > maven will not be able to use it because it's missing some metadata. Okay. I moved the package to (gnu packages maven) as it seems to be the more appropriate place for Maven plugins indeed. > You can use generate-plugin.xml to generate the required file. The > parser might not work properly, I'll have a look if it doesn't work, but > that might take some time. Thanks for the hint, I modified the patch so now the package uses "generate-plugin.xml". Please find the new patch attached. - Artyom From 14b58121576e154b4bf96564dffb9fd09f5e0b81 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 17 Sep 2022 00:23:33 +0300 Subject: [PATCH] gnu: Add maven-sisu-plugin. * gnu/packages/maven.scm (maven-sisu-plugin): New variable. --- gnu/packages/maven.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm index 28ec4eb9a8..b897c6ed34 100644 --- a/gnu/packages/maven.scm +++ b/gnu/packages/maven.scm @@ -27,6 +27,7 @@ (define-module (gnu packages maven) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system ant) + #:use-module (guix gexp) #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages compression) @@ -3012,6 +3013,50 @@ (define-public maven-enforcer-plugin maven-plugin-annotations maven-enforcer-parent-pom)))) +(define-public maven-sisu-plugin + (package + (name "maven-sisu-plugin") + (version "0.3.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eclipse/sisu.mojos/") + (commit (string-append "releases/" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "00hb7v6hz8jg0mgkj3cl0nmqz49za4k2a0rbjr4gdhy2m7f34sq3")))) + (build-system ant-build-system) + (arguments + (list #:jar-name "maven-sisu-plugin.jar" + #:source-dir "src" + #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (add-before 'build 'generate-plugin.xml + (generate-plugin.xml "pom.xml" "sisu" + "src/main/java/org/eclipse/sisu/mojos/" + (list (list "IndexMojo.java") + (list "MainIndexMojo.java") + (list "TestIndexMojo.java")))) + (replace 'install + (install-from-pom "pom.xml"))))) + (propagated-inputs (list java-sonatype-oss-parent-pom-9)) + (inputs (list maven-artifact + maven-plugin-api + maven-plugin-annotations + maven-core + maven-common-artifact-filters + java-slf4j-nop + java-eclipse-sisu-inject + java-plexus-utils + java-plexus-build-api + java-slf4j-api)) + (home-page "https://www.eclipse.org/sisu/") + (synopsis "Maven plugin that generates annotation indexes for Sisu") + (description "Maven plugin that generates annotation indexes for Sisu to +avoid classpath scanning at runtime.") + (license license:epl1.0))) + (define-public maven-artifact-transfer (package (name "maven-artifact-transfer") -- 2.34.1