[GraphHopper] Problems with maven/mapsforge
Ignas Kapočius
kapocius.ignas at gmail.com
Tue Dec 17 08:25:07 UTC 2013
Figured it out.
Just for future reference - apparently when I was trying to download Europe
(europe-latest.osm.pbf) map (11GB) Chrome (Version 31.0.1650.63) downloaded
only a little bit more than 2GB of it and showed download file as finished
and all ready. Tried to download it again 3 more times - twice the download
was cancelled and once it finished again with only a little bit more than
2GB.
I'm guessing it's some kind of weird bug since I'm running x64 OS X Lion.
----------------------
Ignas Kapočius
2013/12/16 Ignas Kapočius <kapocius.ignas at gmail.com>
> Hello again,
>
> removed the space and ran Custom -> install&run and it worked. thank you!
> had no idea that when you use maven you need to run it like that. need to
> catch up a little bit.
>
> just one more problem - when I ran ./graphhopper.sh import <your-osm-file> I
> got these errors (see images)
>
> As I understand it's one of limitations as it's written in wiki -
>
> -
>
> For now OSMReader does not work on Android due to some javax.xml
> dependencies. But you can simply create the graphhopper folder on your
> desktop and copy them to the Android storage.
>
> but what I don't understand is what should I copy there? Map(s)?
> As I understand - first you create routing data and only then add your
> map?
>
> Thank you for your extensive help so far.
>
>
> ----------------------
>
> Ignas Kapočius
>
>
>
> 2013/12/16 Peter K <peathal at yahoo.de>
>
>> Hi Ignas,
>>
>> looks like you've already managed some ugly stuff. Regarding the current
>> problem: try to avoid spaces in your path and see if this helps.
>>
>> > I needed to change maven-install-mapsforge.sh to
>> maven-install-mapsforge.command
>>
>> Oh, really? That would be ugly - can you run the normal graphhopper.sh
>> script? Did you execute it from command line or via some UI?
>>
>>
>> > If it helps - I'm using NBAndroid plugin for Netbeans.
>>
>> I don't use this although it surely will make things easier. Currently
>> you should try to run it via maven: right click the project -> Custom ->
>> and click install+run
>>
>> OR on the command line do:
>> cd android
>> mvn clean install android:deploy android:run
>>
>> OR:
>> ./graphhopper.sh android
>>
>> Regards,
>> Peter.
>>
>> >
>> > Okay, I've managed to get maven/mapsforge going.
>> >
>> > I guess the problem was something really silly - since I'm running OS
>> > X 1.7.3 I needed to change maven-install-mapsforge.sh
>> > to maven-install-mapsforge.command in order to run and when I ran it,
>> > it did nothing but I just didn't notice (sleep deprevation, huh). Saw
>> > 'process completed' and that was enough for me. So afterwards I just
>> > extracted whole script, put it into terminal, executed and it did the
>> > work.
>> >
>> > Then I just ran mvn clean install at the root folder.
>> >
>> > But now I'm facing another problem - after I open project and do
>> > Clean&build - it succeeds. But when I try to run the selected project
>> > (see image) it gives me back error with some missing configuration.
>> >
>> > I'm also new to NetBeans and that could be a problem. What I don't
>> > understand is why can't I run 'GraphHopper Android apk' that has
>> > MainActivity.java in it?
>> >
>> > I mean, if I'm not mistaken - that's the project for Android?
>> >
>> > If it helps - I'm using NBAndroid plugin for Netbeans.
>> >
>> > Sorry for all the lame questions but I haven't developed anything with
>> > Java for years, neither have I worked with Netbeans before.
>> >
>> >
>> >
>> > ----------------------
>> >
>> > Ignas Kapočius
>> >
>> >
>> >
>> > 2013/12/16 Ignas Kapočius <kapocius.ignas at gmail.com
>> > <mailto:kapocius.ignas at gmail.com>>
>> >
>> > Tried running /mvn clean install/ at the root folder - got the
>> > same error "Failed to execute goal on project graphhopper-android:
>> > Could not resolve dependencies for project
>> > com.graphhopper:graphhopper-android:apk:0.3-SNAPSHOT: Failure to
>> > find com.graphhopper:graphhoper:jar:0.3-SNAPSHOT in
>> > https://oss.sonatype.org/content/repositories/snapshots was cached
>> > in the local repository"
>> >
>> > Then I've installed Netbeans (7.4), re-downloaded
>> > graphopper-master project (in case I've made some changes) and did
>> > yours "in NetBeans you just open the project and click
>> > 'Clean&Build'". Got the same error (see attachment).
>> >
>> > Or should I follow those three steps
>> > from https://github.com/graphhopper/graphhopper/wiki/Android for
>> > Netbeans (though it also gives some errors when trying to install
>> > mvn)?
>> >
>> > I was also wondering - could it because there aren't actually
>> > those necessary .jar's in https://oss.sonatype.org/<..> -
>> > filenames are different and maybe Maven just can't actually find it?
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > ----------------------
>> >
>> > Ignas Kapočius
>> >
>> >
>> >
>> > 2013/12/15 Peter K <peathal at yahoo.de <mailto:peathal at yahoo.de>>
>> >
>> > Hi Ignas,
>> >
>> > would you mind to try on the command line first? Go into the
>> > root folder (not core or android) and type:
>> >
>> > mvn clean install
>> >
>> > But from the failure it looks like the jar was not
>> > automatically built inside Eclipse (or whatever). Maybe the
>> > command line procedure fixes this (as it should produce all
>> > necessary jars and install them into your local maven
>> > repository). If not, you should really think about switching
>> > the IDE ;) as e.g. in NetBeans you just open the project and
>> > click 'Clean&Build'. Or ask here again if it still does not work.
>> >
>> > Regards,
>> > Peter.
>> >
>> >>
>> >> Hello,
>> >>
>> >> I've imported source code as Android project, then followed
>> >> this
>> >>
>> https://lists.openstreetmap.org/pipermail/graphhopper/2013-November/000501.html
>> >> but it still does not work.
>> >>
>> >> I think, I have some problems with mapsforge installation
>> >> because when I try /mvn clean install/ or /mvn
>> >> eclipse:eclipse/ at the root of 'android' folder, it gives me
>> >> back this error:
>> >>
>> >> Failed to execute goal on project graphhopper-android: Could
>> >> not resolve dependencies for project
>> >> com.graphhopper:graphhopper-android:apk:0.3-SNAPSHOT: Failure
>> >> to find com.graphhopper:graphhoper-parent:jar:0.3-SNAPSHOT in
>> >> https://oss.sonatype.org/content/repositories/snapshots <...>
>> >>
>> >> I don't know if this is related but I also see errors at
>> >> pom.xml (android folder) - see attached images.
>> >>
>> >> I'm absolutely new to Maven, so could you help me out with
>> >> how should I build/add everything after i've imported source
>> >> files and converted 'core' and 'android' projects to Java
>> >> Facet and Maven?
>> >>
>> >> Thank you for your help,
>> >>
>> >> ----------------------
>> >>
>> >> Ignas Kapočius
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> GraphHopper mailing list
>> >> GraphHopper at openstreetmap.org <mailto:GraphHopper at openstreetmap.org>
>> >> https://lists.openstreetmap.org/listinfo/graphhopper
>> >
>> >
>> >
>> > _______________________________________________
>> > GraphHopper mailing list
>> > GraphHopper at openstreetmap.org
>> > <mailto:GraphHopper at openstreetmap.org>
>> > https://lists.openstreetmap.org/listinfo/graphhopper
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > GraphHopper mailing list
>> > GraphHopper at openstreetmap.org
>> > https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131217/69fc18c1/attachment.html>
More information about the GraphHopper
mailing list