<div dir="ltr">Okay, I've managed to get maven/mapsforge going. <div><br></div><div>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.</div>
<div><br></div><div>Then I just ran mvn clean install at the root folder. </div><div><br></div><div>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. </div>
<div><br></div><div>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? </div><div><br></div><div>
I mean, if I'm not mistaken - that's the project for Android?<br></div><div><br></div><div>If it helps - I'm using NBAndroid plugin for Netbeans. </div><div><br></div><div>Sorry for all the lame questions but I haven't developed anything with Java for years, neither have I worked with Netbeans before. </div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div>----------------------</div><div><br></div><div>Ignas Kapočius</div><div><br></div></div>
<br><br><div class="gmail_quote">2013/12/16 Ignas Kapočius <span dir="ltr"><<a href="mailto:kapocius.ignas@gmail.com" target="_blank">kapocius.ignas@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Tried running <i>mvn clean install</i> 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 <a href="https://oss.sonatype.org/content/repositories/snapshots" target="_blank">https://oss.sonatype.org/content/repositories/snapshots</a> was cached in the local repository"<div>
<br></div><div>Then I've installed Netbeans (7.4), re-downloaded graphopper-master project (in case I've made some changes) and did yours "<span style="font-family:arial,sans-serif;font-size:13px">in NetBeans you just open the project and click 'Clean&Build'". Got the same error (see attachment). </span></div>
<div><br></div><div>Or should I follow those three steps from <a href="https://github.com/graphhopper/graphhopper/wiki/Android" target="_blank">https://github.com/graphhopper/graphhopper/wiki/Android</a> for Netbeans (though it also gives some errors when trying to install mvn)? </div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I was also wondering - could it because there aren't actually those necessary .jar's in <a href="https://oss.sonatype.org/" target="_blank">https://oss.sonatype.org/</a><..> - filenames are different and maybe Maven just can't actually find it? </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"> </span></div>
<div><br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div>----------------------</div><div><br></div><div>Ignas Kapočius</div><div><br></div></div><div><div class="h5">
<br><br><div class="gmail_quote">2013/12/15 Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Ignas,<br>
<br>
would you mind to try on the command line first? Go into the root
folder (not core or android) and type:<br>
<pre>mvn clean install</pre>
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. <br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote type="cite"><div><div>
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">Hello,</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I've
imported source code as Android project, then followed this <a href="https://lists.openstreetmap.org/pipermail/graphhopper/2013-November/000501.html" target="_blank">https://lists.openstreetmap.org/pipermail/graphhopper/2013-November/000501.html</a></div>
<div style="font-family:arial,sans-serif;font-size:13px">but it
still does not work. <br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">I
think, I have some problems with mapsforge installation
because when I try <i>mvn clean install</i> or <i>mvn
eclipse:eclipse</i> at the root of 'android' folder, it
gives me back this error: </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div><font face="arial, sans-serif">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 <a href="https://oss.sonatype.org/content/repositories/snapshots" target="_blank">https://oss.sonatype.org/content/repositories/snapshots</a>
<...></font><br>
</div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">I don't know if this is
related but I also see errors at pom.xml (android folder) -
see attached images.</font></div>
<div>
<font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">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?</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">Thank you for your help,</font></div>
<div><br>
</div>
<div>
<div>----------------------</div>
<div><br>
</div>
<div>Ignas Kapočius</div>
<div>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>