marklogic / marklogic-geo-data-services

Geo Data Services supporting Esri Koop Provider and WFS (future)
https://marklogic.github.io/marklogic-geo-data-services/
Other
2 stars 5 forks source link

Could not find com.marklogic:marklogic-geo-data-services:1.3.4 #175

Open grtjn opened 2 months ago

grtjn commented 2 months ago

We have been using 1.3.3(-beta) for a long while without issues, but I suspect we had this dependency in cache somewhere. We are now trying to run deployment from a clean env, and are trying to get auto-building from clean envs working as well, and hitting the following message:

josten@MacBook-Pro-van-Geert focus-backend % ./gradlew -i mlDeploy
Initialized native services in: /Users/josten/.gradle/native
The client will now receive all logging from the daemon (pid: 84555). The daemon log file: /Users/josten/.gradle/daemon/7.1.1/daemon-84555.out.log
Starting 6th build in daemon [uptime: 11 mins 11.348 secs, performance: 100%, non-heap usage: 48% of 256 MiB]
Using 16 worker leases.
Now considering [/Users/josten/Projects/SensingClues/focus-backend] as hierarchies to watch
Not watching anything anymore
Watching the file system is enabled if available
Starting Build
Settings evaluated using settings file '/Users/josten/Projects/SensingClues/focus-backend/settings.gradle'.
Projects loaded. Root project using build file '/Users/josten/Projects/SensingClues/focus-backend/build.gradle'.
Included projects: [root project 'focus-backend']

> Configure project :
Evaluating root project 'focus-backend' using build file '/Users/josten/Projects/SensingClues/focus-backend/build.gradle'.
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom]
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom]
Resource missing. [HTTP GET: https://developer.marklogic.com/maven2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom]

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'focus-backend'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.marklogic:marklogic-geo-data-services:1.3.4.
     Searched in the following locations:
       - file:/Users/josten/.m2/repository/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom
       - https://repo.maven.apache.org/maven2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom
       - https://plugins.gradle.org/m2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom
       - https://developer.marklogic.com/maven2/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom
       - file:/Users/josten/Projects/SensingClues/focus-backend/offline/maven-repo/com/marklogic/marklogic-geo-data-services/1.3.4/marklogic-geo-data-services-1.3.4.pom
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Not watching anything anymore
Watched directory hierarchies: []

I also tried 1.3.4 and even 1.4.0, but none seem to work, making me suspect this change came after the release of 1.4.0. The latest version mvnrepository seems to be reporting is 1.3.4, and it points to JCenter, which was taken down a while ago.

grtjn commented 2 months ago

Ok, it looks like marklogic-geo-data-services-modules 1.3.x is taken down, and 1.4.0 was moved to marklogic-geo-data-services (without -modules). Using marklogic-geo-data-services:1.4.0 gives me a different error. Due to other legacy dependencies, we are still stuck on JDK 11, and now there seems to be a dependency on some version of jackson-core that requires a more recent Java?

grtjn commented 2 months ago

Ok, another confusion.. the jackson-core messages seems to have come from marklogic-unit-test:1.4.0. Downgrading that made that go away. I am now pulling an older version of marklogic-geo-data-services-modules from a local copy of the jar, using mavenLocal() just to be sure it still works as before. I pulled that jar from cache from my laptop.

rjrudin commented 2 months ago

You definitely only need Java 8. Your initial error is what you indicated - < 1.4.0 was only available on JCenter, which is gone now. So you need to use 1.4.0 GDS.

What error are you getting now?