FAIRDataTeam / FAIRDataPoint

https://www.fairdatapoint.org
MIT License
60 stars 38 forks source link

Could not collect dependencies: status 502 #574

Open dennisvang opened 1 week ago

dennisvang commented 1 week ago

What components are related to the issue?

Other (specify in text)

Which FDP are you using?

My local instance

Version

1.17.2 and develop

What happened?

Running mvn verify on a local development machine results in a build failure:

Dependencies cannot be collected, because the server at https://nexus.internal.fairdatapoint.org returns status 502 "Bad Gateway".

Possibly related to #501

Relevant log output

...
[ERROR] Failed to execute goal on project fairdatapoint: Could not collect dependencies for project org.fairdatapoint:fairdatapoint:jar:1.17.1
[ERROR] Failed to read artifact descriptor for com.github.fairdevkit:rdf-resource-resolver-core:jar:0.1.2-SNAPSHOT
[ERROR]         Caused by: The following artifacts could not be resolved: com.github.fairdevkit:rdf-resource-resolver-core:pom:0.1.2-SNAPSHOT (absent): Could not transfer artifact com.github.fairdevkit:rdf-resource-resolver-core:pom:0.1.2-SNAPSHOT from/to nexus-releases (https://nexus.internal.fairdatapoint.org/repository/maven-releases/): status code: 502, reason phrase: Bad Gateway (502)
[ERROR] Failed to read artifact descriptor for com.github.fairdevkit:rdf-resource-resolver-api:jar:0.1.2-SNAPSHOT
[ERROR]         Caused by: The following artifacts could not be resolved: com.github.fairdevkit:rdf-resource-resolver-api:pom:0.1.2-SNAPSHOT (absent): Could not transfer artifact com.github.fairdevkit:rdf-resource-resolver-api:pom:0.1.2-SNAPSHOT from/to nexus-releases (https://nexus.internal.fairdatapoint.org/repository/maven-releases/): status code: 502, reason phrase: Bad Gateway (502)
...
dennisvang commented 6 days ago

The affected dependencies are:

Publishing the dependencies to Github Packages works (#575, #576), but installation of packages from Github Packages requires authentication using a github personal access token, even if the package is public.

After discussion with @luizbonino, it was decided to publish the dependencies to Maven central instead, under the org.fairdatateam namespace.

CAVDgit commented 2 days ago

Hi, any idea when the fix will be available ?

dennisvang commented 2 days ago

Hi @CAVDgit I'm currently testing publication of the dependencies via the maven central portal. I hope to have a PR ready by next week.