[From nobody Tue Sep 29 09:43:04 2026
Received: (at submit) by bugs.debian.org; 13 Feb 2024 20:33:50 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.0 required=4.0 tests=BAYES_00,FROMDEVELOPER,
 RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
 XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 25; hammy, 150; neutral, 67; spammy,
 0. spammytokens: hammytokens:0.000-+--H*M:reportbug,
 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug,
 0.000-+--H*UA:reportbug, 0.000-+--rdeps
Return-path: &lt;pgt@debian.org&gt;
Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:21032)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;pgt@debian.org&gt;) id 1rZzTR-009DAx-BH
 for submit@bugs.debian.org; Tue, 13 Feb 2024 20:33:50 +0000
Received: from localhost (unknown [93.21.20.60])
 (Authenticated sender: pgtdebian@free.fr)
 by smtp6-g21.free.fr (Postfix) with ESMTPSA id 58B7F78034E;
 Tue, 13 Feb 2024 21:33:44 +0100 (CET)
Content-Type: multipart/mixed; boundary=&quot;===============5814372649840541787==&quot;
MIME-Version: 1.0
From: Pierre Gruet &lt;pgt@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: Building a reverse dependency of the guava-testlib artifact fails
Message-ID: &lt;170785641805.130206.7658101752763311892.reportbug@mendelssohn&gt;
X-Mailer: reportbug 13.0.0
Date: Tue, 13 Feb 2024 21:33:38 +0100
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============5814372649840541787==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: guava-libraries
Version: 32.0.1-1
Severity: important

Dear Maintainer,

When one tries to use the com.google.guava:guava-testlib:debian artifact in a
Maven pom.xml file, during the build one gets the error

[ERROR] Failed to execute goal on project myProject: Could not resolve dependencies for project myGroup:myProject:jar:myVersion: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact com.google.guava:guava:bundle:debian has not been downloaded from it before. -&gt; [Help 1]

because the pom of guava-testlib looks for com.google.guava:guava with the
&quot;bundle&quot; type. I trust we should ship com.google.guava:guava with the &quot;jar&quot;
packaging type instead of &quot;bundle&quot;, this is more accurate and compliant with
Debian-Java practices.

For instance I believe the enclosed patch allows one to package guava-libraries
with &quot;jar&quot; artifacts instead of &quot;bundle&quot;. Yet I did not try to build the rdeps.

Best,

-- 
Pierre

--===============5814372649840541787==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;test.patch&quot;

--- a/guava-testlib/pom.xml
+++ b/guava-testlib/pom.xml
@@ -34,7 +34,6 @@
       &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
       &lt;artifactId&gt;guava&lt;/artifactId&gt;
       &lt;version&gt;${project.version}&lt;/version&gt;
-      &lt;type&gt;bundle&lt;/type&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
       &lt;groupId&gt;junit&lt;/groupId&gt;
--- a/guava/pom.xml
+++ b/guava/pom.xml
@@ -8,7 +8,7 @@
     &lt;version&gt;32.0.1-jre&lt;/version&gt;
   &lt;/parent&gt;
   &lt;artifactId&gt;guava&lt;/artifactId&gt;
-  &lt;packaging&gt;bundle&lt;/packaging&gt;
+  &lt;packaging&gt;jar&lt;/packaging&gt;
   &lt;name&gt;Guava: Google Core Libraries for Java&lt;/name&gt;
   &lt;url&gt;https://github.com/google/guava&lt;/url&gt;
   &lt;description&gt;

--===============5814372649840541787==--
]