firebase / geofire-java

GeoFire for Java - Realtime location queries with Firebase
MIT License
670 stars 271 forks source link

Failed to read Maven artifact descriptor. Version 2.3.0 #167

Closed danmodan closed 3 years ago

danmodan commented 3 years ago

There is a problem with version 2.3.0 of this artifact.

when run mvn clean install:

[ERROR] Failed to execute goal on project fool-functions: Could not resolve dependencies for project com.fool.function:fool-functions:jar:1.0.0: Failed to collect dependencies at com.firebase:geofire-java:jar:2.3.0: Failed to read artifact descriptor for com.firebase:geofire-java:jar:2.3.0: Failure to find com.firebase:geofire:pom:2.3.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

when run mvn clean install -U:

[ERROR] Failed to execute goal on project fool-functions: Could not resolve dependencies for project com.fool.function:fool-functions:jar:1.0.0: Failed to collect dependencies at com.firebase:geofire-java:jar:2.3.0: Failed to read artifact descriptor for com.firebase:geofire-java:jar:2.3.0: Could not find artifact com.firebase:geofire:pom:2.3.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

I tried too with the given version in README.md from this repository:

<dependency>
  <groupId>com.firebase</groupId>
  <artifactId>geofire-java</artifactId>
  <version>3.0.0</version>
</dependency>

when run mvn clean install:

[ERROR] Failed to execute goal on project fitmap-functions: Could not resolve dependencies for project com.fitmap.function:fitmap-functions:jar:1.0.0: Failure to find com.firebase:geofire-java:jar:3.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

when run mvn clean install -U:

[ERROR] Failed to execute goal on project fitmap-functions: Could not resolve dependencies for project com.fitmap.function:fitmap-functions:jar:1.0.0: Could not find artifact com.firebase:geofire-java:jar:3.0.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

Seems that the version 3.0.0 really does not exists. So, the README.md should be fixed.

I tried too, to delete the ~/.m2/repository/com/firebase/ but I faced the same error when I rerun the line commands.

Attention: I tried with version 2.2.0 and the build work correctly

samtstern commented 3 years ago

Seems like your build is only looking in Maven Central:

https://repo.maven.apache.org/maven2

Since version 2.3.0 we publish builds to JCenter, you'll want to make sure that repo is in your pom:

<project>
  [...]
  <repositories>
    <repository>
      <id>jcenter</id>
      <name>jcenter</name>
      <url>https://jcenter.bintray.com</url>
    </repository>
  </repositories>
  [...]
</project>