Bug#1063873: Building a reverse dependency of the guava-testlib artifact fails
Pierre Gruet
pgt at debian.org
Tue Feb 13 20:33:38 GMT 2024
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. -> [Help 1]
because the pom of guava-testlib looks for com.google.guava:guava with the
"bundle" type. I trust we should ship com.google.guava:guava with the "jar"
packaging type instead of "bundle", this is more accurate and compliant with
Debian-Java practices.
For instance I believe the enclosed patch allows one to package guava-libraries
with "jar" artifacts instead of "bundle". Yet I did not try to build the rdeps.
Best,
--
Pierre
-------------- next part --------------
--- a/guava-testlib/pom.xml
+++ b/guava-testlib/pom.xml
@@ -34,7 +34,6 @@
<groupId>${project.groupId}</groupId>
<artifactId>guava</artifactId>
<version>${project.version}</version>
- <type>bundle</type>
</dependency>
<dependency>
<groupId>junit</groupId>
--- a/guava/pom.xml
+++ b/guava/pom.xml
@@ -8,7 +8,7 @@
<version>32.0.1-jre</version>
</parent>
<artifactId>guava</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Guava: Google Core Libraries for Java</name>
<url>https://github.com/google/guava</url>
<description>
More information about the pkg-java-maintainers
mailing list