[GraphHopper] Problems with maven/mapsforge
Ignas Kapočius
kapocius.ignas at gmail.com
Mon Dec 16 01:59:08 UTC 2013
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>
> 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>
>
>> 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 listGraphHopper at openstreetmap.orghttps://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/20131216/8fc94b09/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-12-16 at 3.46.44 AM.png
Type: image/png
Size: 166641 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131216/8fc94b09/attachment.png>
More information about the GraphHopper
mailing list