Error: Failed to execute goal on project graphhopper-map-matching-core: Could not resolve dependencies

hi,

I get this problem when I run

./map-matching.sh action=import datasource=./map-data/leipzig_germany.osm.pbf vehicle=car

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.725 s
[INFO] Finished at: 2017-02-08T01:34:01-08:00
[INFO] Final Memory: 8M/20M
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphHopper Map Matching 0.9-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.graphhopper:graphhopper-reader-osm:jar:0.9-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.467 s
[INFO] Finished at: 2017-02-08T01:34:07-08:00
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project graphhopper-map-matching-core: Could not resolve dependencies for project com.graphhopper:graphhopper-map-matching-core:jar:0.9-SNAPSHOT: Could not find artifact com.graphhopper:graphhopper-reader-osm:jar:0.9-SNAPSHOT -> [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

See the duplicate thread

It is a bit strange as there are snapshots for this artifact available. Can you try git checkout 0.8 before running the command?

Or you would need to build the GH core via git and maven.

1 Like

Thank you for the reply

when I run this command i get
fatal: Not a git repository (or any of the parent directories): .git

I have tested 0.8 and 0.7 already, and with both of them i get errors
in 0.8 i get {“message”: “Not found”} error when I start the web server
and with 0.7 I have this problem Error your api key grapph-7ae5b6f7 is not valid and now the map area isn’t visible at all I have just the 3 fields to upload the gpx file.

How can I build GH with git or maven i have no idea

Best regards

I have re-tested 0.8 and now it works, I really don’t know how!
Thank you for the effort
Best regards