Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve geotoolkit dependency #249

Closed
robinhoutmeyers opened this issue Dec 16, 2022 · 2 comments
Closed

Could not resolve geotoolkit dependency #249

robinhoutmeyers opened this issue Dec 16, 2022 · 2 comments
Assignees
Labels

Comments

@robinhoutmeyers
Copy link

While trying to verify #230 (sorry for the late reply), I bumped upon another issue that I haven't seen before: the Maven build fails on the geotoolkit dependency:

Failed to execute goal on project ets-wfs20: Could not resolve dependencies for project org.opengis.cite:ets-wfs20:jar:1.39: Failed to collect dependencies at org.opengis.cite:ets-gml32:jar:1.29 -> org.opengis.cite:geomatics-geotk:jar:1.15 -> org.geotoolkit.pending:geotk-xml-gml:jar:3.21: Failed to read artifact descriptor for org.geotoolkit.pending:geotk-xml-gml:jar:3.21: Could not transfer artifact org.geotoolkit:geotoolkit:pom:3.21 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [geotoolkit (http://maven.geotoolkit.org/, default, releases+snapshots), maven2-repository.dev.java.net (http://download.java.net/maven/2, default, releases+snapshots)] -> [Help 1]

Do you have any idea what could be causing this?

@dstenger
Copy link
Contributor

Thank you for reporting.
The same issue was already reported here: opengeospatial/teamengine-docker#38
Also, an issue was created in geotoolkit tracker: Geomatys/geotoolkit#20

To summarize it, Maven 3.8 blocks repositories referenced via HTTP (just HTTPS is allowed).
A simple workaround is to use Maven 3.6 which does not block HTTP repositories.
Another solution is to define a mirror in your Maven settings as documented here.

@robinhoutmeyers
Copy link
Author

OK thanks, we used the mirror approach; this works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants