Build error due to guava version

43 views
Skip to first unread message

eric.loh...@gmail.com

unread,
Apr 30, 2024, 10:31:36 AM4/30/24
to s2geometry-io
On a Mac running macOS 14.4.1, I downloaded and unzipped https://github.com/google/s2-geometry-library-java/archive/refs/heads/master.zip, ran mvn compile in the s2-geometry-library-java-master directory, and got this error:

[ERROR] Failed to execute goal on project s2-geometry-library: Could not resolve dependencies for project com.google.geometry:s2-geometry-library:jar:HEAD-SNAPSHOT: The following artifacts could not be resolved: com.google.guava:guava:jar:32.0-jre (absent): Could not find artifact com.google.guava:guava:jar:32.0-jre in central (https://repo.maven.apache.org/maven2) -> [Help 1]

If you go here https://repo.maven.apache.org/maven2/com/google/guava/guava, sure enough 32.0-jre doesn't exist, but 32.0.0-jre does. So, I changed line 80 of pom.xml from

<guava.version>32.0-jre</guava.version>

to

<guava.version>32.0.0-jre</guava.version>

I re-ran mvn compile and the build succeeded.

Is there something I missed? Am I using the wrong maven repository?

Sean McAllister

unread,
May 1, 2024, 10:07:44 AM5/1/24
to s2geometry-io
This mailing list isn't terribly well trafficked anymore, you'll probably have better luck if you ask this question on the issues page for S2 Java: https://github.com/google/s2-geometry-library-java/issues  (I'd try to help but I am but a humble C++ dev).

Sean

eric.loh...@gmail.com

unread,
May 1, 2024, 3:15:07 PM5/1/24
to s2geometry-io

Eric Angle

unread,
Nov 23, 2024, 2:54:19 PM11/23/24
to s2geometry-io
I just created a pull request for this issue: https://github.com/google/s2-geometry-library-java/pull/45

--
You received this message because you are subscribed to the Google Groups "s2geometry-io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s2geometry-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/s2geometry-io/cf85440f-afae-4e5c-9611-cb6565beee43n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages