gtfs-realtime-validator icon indicating copy to clipboard operation
gtfs-realtime-validator copied to clipboard

Snapshot jar not available

Open NVBWcho opened this issue 10 months ago • 4 comments

The jar mentioned on https://github.com/MobilityData/gtfs-realtime-validator/packages/1268975 with <groupId>org.mobilitydata</groupId> <artifactId>gtfs-realtime-validator-webapp</artifactId> 1.0.0-SNAPSHOT is no longer availalbe. For example, mvn compile leads to the following error:

Could not resolve dependencies for project org.example:realtimevalidator:jar:1.0-SNAPSHOT: The following artifacts coul d not be resolved: org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT (absent): Could not find artifact org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SN APSHOT -> [Help 1]

NVBWcho avatar Apr 16 '24 15:04 NVBWcho

Hi @NVBWcho, I just tried it and I was able to download the jar:

Downloaded from github-repo: https://maven.pkg.github.com/MobilityData/gtfs-realtime-validator/org/mobilitydata/
gtfs-realtime-validator-webapp/1.0.0-SNAPSHOT/gtfs-realtime-validator-webapp-1.0.0-20220223.003525-2.jar (85 MB at 4.0 MB/s)

I was able to reproduce the error you had by having no repository defined in my pom.xml:

Could not resolve dependencies for project MobilityData:Example:jar:1.0: The following artifacts could not be resolved:
org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT (absent): 
Could not find artifact org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT -> [Help 1]

When I have a repository defined, but it's wrong, the error message mentions the repository at the end (in github-repo...)

Could not resolve dependencies for project MobilityData:Example:jar:1.0: The following artifacts could not be resolved: org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT (absent): 
Could not find artifact org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT in github-repo 
(https://mobilitydata.org/MobilityData/gtfs-realtime-validator) -> [Help 1]

jcpitre avatar May 09 '24 19:05 jcpitre

Hello, may you please describe how you managed to retrieve the jar? Following the procedure ended with: openjdk version "21.0.4" 2024-07-16

pom.xml :

org.mobilitydata gtfs-realtime-validator-webapp 1.0.0-SNAPSHOT

mvn install [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Malformed POM /home/xavier/Documents/Civilia/projets/testedTools/gtfs-realtime-validator/pom.xml: Expected root element 'project' but found 'dependency' (position: START_TAG seen ... @1:13) @ /home/xavier/Documents/Civilia/projets/testedTools/gtfs-realtime-validator/pom.xml, line 1, column 13 [ERROR] 'modelVersion' is missing. @ line 1, column 13 [ERROR] 'modelVersion' is missing. @ line 1, column 13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.mobilitydata:gtfs-realtime-validator-webapp:1.0.0-SNAPSHOT (/home/xavier/Documents/Civilia/projets/testedTools/gtfs-realtime-validator/pom.xml) has 3 errors [ERROR] Malformed POM /home/xavier/Documents/Civilia/projets/testedTools/gtfs-realtime-validator/pom.xml: Expected root element 'project' but found 'dependency' (position: START_TAG seen ... @1:13) @ /home/xavier/Documents/Civilia/projets/testedTools/gtfs-realtime-validator/pom.xml, line 1, column 13 -> [Help 2] [ERROR] 'modelVersion' is missing. @ line 1, column 13 [ERROR] 'modelVersion' is missing. @ line 1, column 13 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

civiliaInc avatar Sep 24 '24 20:09 civiliaInc

It looks like your pom.xml has errors in it. Can you provide it?

jcpitre avatar Sep 25 '24 18:09 jcpitre

It is the one provided on the README page:

<dependency
  <groupId>org.mobilitydata</groupId>
  <artifactId>gtfs-realtime-validator-webapp</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

civiliaInc avatar Sep 25 '24 22:09 civiliaInc