Closed ustroetz closed 9 years ago
When I am trying to import a file I get the following error:
ls: target/map-matching-*-dependencies.jar: No such file or directory [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building GraphHopper Map Matching 0.5-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ map-matching --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ map-matching --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ map-matching --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to /Users/ustroetz/projects/map-matching/target/classes [WARNING] /Users/ustroetz/projects/map-matching/src/main/java/com/graphhopper/matching/MapMatching.java: /Users/ustroetz/projects/map-matching/src/main/java/com/graphhopper/matching/MapMatching.java uses unchecked or unsafe operations. [WARNING] /Users/ustroetz/projects/map-matching/src/main/java/com/graphhopper/matching/MapMatching.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ map-matching --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ map-matching --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /Users/ustroetz/projects/map-matching/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ map-matching --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ map-matching --- [INFO] Building jar: /Users/ustroetz/projects/map-matching/target/map-matching-0.5-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ map-matching --- [INFO] Installing /Users/ustroetz/projects/map-matching/target/map-matching-0.5-SNAPSHOT.jar to /Users/ustroetz/.m2/repository/com/graphhopper/map-matching/0.5-SNAPSHOT/map-matching-0.5-SNAPSHOT.jar [INFO] Installing /Users/ustroetz/projects/map-matching/pom.xml to /Users/ustroetz/.m2/repository/com/graphhopper/map-matching/0.5-SNAPSHOT/map-matching-0.5-SNAPSHOT.pom [INFO] [INFO] --- maven-assembly-plugin:2.5.3:single (default-cli) @ map-matching --- [INFO] Building jar: /Users/ustroetz/projects/map-matching/target/map-matching-0.5-SNAPSHOT-jar-with-dependencies.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.583 s [INFO] Finished at: 2015-03-11T11:02:43+01:00 [INFO] Final Memory: 28M/207M [INFO] ------------------------------------------------------------------------ Error: Unable to access jarfile action=import
The steps I did are the following:
git clone https://github.com/graphhopper/map-matching.git cd map-matching/ wget https://s3.amazonaws.com/metro-extracts.mapzen.com/santiago_chile.osm.pbf ./map-matching.sh action=import datasource=santiago_chile.osm.pbf [vehicle=car]
The target folder lists the following:
$ ll target/ total 10104 drwxr-xr-x 2 ustroetz staff 68 Mar 11 11:02 archive-tmp drwxr-xr-x 4 ustroetz staff 136 Mar 11 11:02 classes drwxr-xr-x 3 ustroetz staff 102 Mar 11 11:02 generated-sources drwxr-xr-x 3 ustroetz staff 102 Mar 11 11:02 generated-test-sources -rw-r--r-- 1 ustroetz staff 5133695 Mar 11 11:02 map-matching-0.5-SNAPSHOT-jar-with-dependencies.jar -rw-r--r-- 1 ustroetz staff 34353 Mar 11 11:02 map-matching-0.5-SNAPSHOT.jar drwxr-xr-x 3 ustroetz staff 102 Mar 11 11:02 maven-archiver drwxr-xr-x 3 ustroetz staff 102 Mar 11 11:02 maven-status drwxr-xr-x 9 ustroetz staff 306 Mar 11 11:02 test-classes
Strange, but as a temporary workaround you can use the jar file target/map-matching-0.5-SNAPSHOT-jar-with-dependencies.jar directly
When I am trying to import a file I get the following error:
The steps I did are the following:
The target folder lists the following: