Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Dependency Error for conveyal gtfs validator #399

Closed
e-lo opened this issue Nov 19, 2021 · 5 comments · Fixed by #401 or #403
Closed

Dependency Error for conveyal gtfs validator #399

e-lo opened this issue Nov 19, 2021 · 5 comments · Fixed by #401 or #403
Labels
Milestone

Comments

@e-lo
Copy link

e-lo commented Nov 19, 2021

Summary:

Summarize your issue in one sentence (what goes wrong, what did you expect to happen)

Steps to reproduce: Build the Dockerfile

Expected behavior: Successful build

Observed behavior:

#13 285.1 [ERROR] Failed to execute goal on project gtfs-realtime-validator-webapp: Could not resolve dependencies for project edu.usf.cutr:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT: 

Failed to collect dependencies at com.conveyal:gtfs-validation-lib:jar:0.1.7-SNAPSHOT: 

Failed to read artifact descriptor for com.conveyal:gtfs-validation-lib:jar:0.1.7-SNAPSHOT: 

Could not transfer artifact com.conveyal:gtfs-validation-lib:pom:0.1.7-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): 

Blocked mirror for repositories: [conveyal-releases-mvn-repo (http://build.staging.obanyc.com/archiva/repository/releases/, default, releases+snapshots), conveyal-snapshots-mvn-repo (http://build.staging.obanyc.com/archiva/repository/snapshots/, default, releases+snapshots)]

Platform: Docker

@barbeau
Copy link
Member

barbeau commented Nov 19, 2021

Thanks for the report @e-lo!

From a quick look it looks like this is because the maven repository hosting the Conveyal gtfs-validation-lib is hosted at HTTP and not at the secure HTTPS:
http://build.staging.obanyc.com/archiva/repository/releases/

The equivalent HTTPS link doesn't seem to work:
https://build.staging.obanyc.com/archiva/repository/releases/

I opened a PR here to see if we can get CI to pass with the HTTPS URLs anyway:
#400

If that doesn't work other possibilities are:

  1. Configure Maven to allow HTTP for this repo - https://stackoverflow.com/a/67441519/937715
  2. Get Conveyal to host the Maven repo at HTTPS
  3. Remove dependency on gtfs-validation-lib and replace it with MobilityData gtfs-validator

@barbeau
Copy link
Member

barbeau commented Nov 19, 2021

I just set up a simple GitHub Action to see if changing to HTTPS works in PR #401 (the other PR used Travis which isn't working anymore).

@barbeau
Copy link
Member

barbeau commented Nov 19, 2021

Nope, HTTPS URL doesn't work:

Error:  Failed to execute goal on project gtfs-realtime-validator-webapp: Could not resolve dependencies for project edu.usf.cutr:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at com.conveyal:gtfs-validation-lib:jar:0.1.7-SNAPSHOT: Failed to read artifact descriptor for com.conveyal:gtfs-validation-lib:jar:0.1.7-SNAPSHOT: Could not transfer artifact com.conveyal:gtfs-validation-lib:pom:0.1.7-SNAPSHOT from/to conveyal-releases-mvn-repo (https://build.staging.obanyc.com/archiva/repository/releases/): transfer failed for https://build.staging.obanyc.com/archiva/repository/releases/com/conveyal/gtfs-validation-lib/0.1.7-SNAPSHOT/gtfs-validation-lib-0.1.7-SNAPSHOT.pom: Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: Connection refused (Connection refused) -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :gtfs-realtime-validator-webapp
Error: Process completed with exit code 1.

@barbeau barbeau added the bug label Nov 19, 2021
@barbeau barbeau added this to the v1.0 milestone Nov 19, 2021
@e-lo
Copy link
Author

e-lo commented Nov 19, 2021

Remove dependency on gtfs-validation-lib and replace it with MobilityData gtfs-validator

Obviously this seems like the end goal solution, but if this is a ways out an interim fix would also be very much appreciated if we can find one that works.

@barbeau
Copy link
Member

barbeau commented Dec 13, 2021

@e-lo This issue should now be fixed in the main branch if you want to give it another try!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.