Could not get resource 'https://nexus.jmix.io/repository/premium/org/geotools/gt-referencing/30.2/gt-referencing-30.2.pom'. status code 403 from server: Forbidden

Jmix version: 2.4.0
Jmix Studio plugin version: 2.4.NIGHTLY1419-242
IntelliJ version: IntelliJ IDEA 2024.2.4 (Ultimate Edition)

Suddenly I get

Could not resolve org.geotools:gt-referencing:30.2.
Required by:
root project :
Could not resolve org.geotools:gt-referencing:30.2.
Could not get resource ‘https://nexus.jmix.io/repository/premium/org/geotools/gt-referencing/30.2/gt-referencing-30.2.pom’.
Could not GET ‘https://nexus.jmix.io/repository/premium/org/geotools/gt-referencing/30.2/gt-referencing-30.2.pom’. Received status code 403 from server: Forbidden

How to solve ?

Regards

Felix

When I enter my credentials from the licence manually ( found in C:\Users…gradle\gradle.properties , the same

grafik

Hello!

Jmix does not provide the org/geotools/gt-referencing dependency. Most probably, it is provided by your project. Please note that the geotools requires additional repository:

maven {
    url 'https://repo.osgeo.org/repository/release'
}

Make sure it is specified in your build.gradle file.

The exception with the premium repository occurs because it is listed last in the repository closure.

Hi Roman

What you write is not true.

We pay for the Maps-Addon which we use already some times and it was working until JMix 2.3.3.

It seems, that now in the RC Candidate is something missing.

Please check properly

Thank you

Felix

I migrated the demo project from this topic: maps:mapView using EPSG:21781 instead of EPSG:4326 - #8 by pinyazhin from 2.2.x to 2.4.0 and I did not see the problem with dependencies. It works for 2.2.x, 2.3.x, 2.4.0-RC1 and for 2.4.0.

The migrated project: sample.zip (117.2 KB)

Could you reproduce the problem in a demo project and share it?

Hi Roman

Your sample project is working. As you mentioned before, I had to add the

maven {
    url 'https://repo.osgeo.org/repository/release'
}

When I did check the backup of the application with JMix 2.3.3, this repository was included. So it looks like, a migration did purge this …

My bad, that I did not believe, that dependencies get purged in the build.gradle …

Sorry and thank you for your help !

1 Like