google / s2-geometry-library-java

Automatically exported from code.google.com/p/s2-geometry-library-java
Apache License 2.0
533 stars 230 forks source link

Build error due to guava version #43

Open ericangle opened 4 months ago

ericangle commented 4 months ago

On a Mac running macOS 14.4.1, I downloaded and unzipped 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?