Import Git repo into eclipse/ newest .jar library file available?

240 views
Skip to first unread message

Yukai Lin

unread,
Mar 20, 2013, 10:59:36 AM3/20/13
to mapsfo...@googlegroups.com

I'm kinda new to using libraries and would like to seek some basic help here.

I've been trying to use Mapsforge's .jar library here: https://code.google.com/p/mapsforge/downloads/list, however it seems like the .jar file is extremely outdated, and they seem to have only updated their stuff on their source codes in some git repository.

I've been directed to here: https://code.google.com/p/mapsforge/source/checkout, where I seem to be able to get the most updated codes. However I have no idea how to import this as a library into my eclipse for my own usage. It doesn't seem to be as simple as copy/paste a .jar file in the lib folder.

Can anyone give me a rough guide on how to do this step by step so that I am able to use the updated codes? I'm not really familiar with this git repository thing.

Or is there a most updated .jar file out there to use?

Thank you!

Jürgen Broß

unread,
Mar 20, 2013, 11:35:20 AM3/20/13
to mapsfo...@googlegroups.com
Hi Yukai Lin,

Yes, the 0.3.0 release is rather outdated. Currently, you better use the
0.3.1.-SNAPSHOT version.

You have two reasonable options:
* Compile yourself from sources with maven --> follow instructions at [1]
* Download latest build (i.e., the library as a *.jar) from our
continuous integration server at [2]

Be aware that we are currently rewriting the library (see the rewrite
branch in the Git repository) and that the API will not remain stable.

[1] https://code.google.com/p/mapsforge/wiki/GettingStartedDevelopers
[2] http://ci.mapsforge.org/job/mapsforge/

Best regards,
J�rgen
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--


J�rgen Bro�
Institute of Computer Science
Databases and Information Systems
Freie Universit�t Berlin
Takustr. 9
D-14195 Berlin, Germany
phone: +49 30 838-75108
email: juerge...@fu-berlin.de

Yukai Lin

unread,
Mar 20, 2013, 11:43:48 AM3/20/13
to mapsfo...@googlegroups.com, juerge...@fu-berlin.de
Hi thank you so much for the advice! I assume it would be mapsforge-map-0.3.1-SNAPSHOT-jar-with-dependencies.jar right?

Also, is there a javadoc created for the 0.3.1 version? Or should I be referencing from the source codes?

Thank you!


On Wednesday, 20 March 2013 23:35:20 UTC+8, Jürgen Broß wrote:
Hi Yukai Lin,

Yes, the 0.3.0 release is rather outdated. Currently, you better use the
0.3.1.-SNAPSHOT version.

You have two reasonable options:
* Compile yourself from sources with maven --> follow instructions at [1]
* Download latest build (i.e., the library as a *.jar) from our
continuous integration server at [2]

Be aware that we are currently rewriting the library (see the rewrite
branch in the Git repository) and that the API will not remain stable.

[1] https://code.google.com/p/mapsforge/wiki/GettingStartedDevelopers
[2] http://ci.mapsforge.org/job/mapsforge/

Best regards,
J?rgen

On 03/20/2013 03:59 PM, Yukai Lin wrote:
> I'm kinda new to using libraries and would like to seek some basic help
> here.
>
> I've been trying to use Mapsforge's .jar library here:
> https://code.google.com/p/mapsforge/downloads/list, however it seems
> like the .jar file is extremely outdated, and they seem to have only
> updated their stuff on their source codes in some git repository.
>
> I've been directed to here:
> https://code.google.com/p/mapsforge/source/checkout, where I seem to be
> able to get the most updated codes. However I have no idea how to import
> this as a library into my eclipse for my own usage. It doesn't seem to
> be as simple as copy/paste a .jar file in the lib folder.
>
> Can anyone give me a rough guide on how to do this step by step so that
> I am able to use the updated codes? I'm not really familiar with this
> git repository thing.
>
> Or is there a most updated .jar file out there to use?
>
> Thank you!
>
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--


J?rgen Bro?
Institute of Computer Science
Databases and Information Systems
Freie Universit?t Berlin

Jürgen Broß

unread,
Mar 20, 2013, 12:27:36 PM3/20/13
to mapsfo...@googlegroups.com
Hi again,

First, your assumption is correct. Second, you can find the
corresponding javadoc at [1].

[1]
https://ci.mapsforge.org/job/mapsforge/ws/mapsforge-map/target/site/apidocs/index.html

Best regards,
J�rgen


On 03/20/2013 04:43 PM, Yukai Lin wrote:
> Hi thank you so much for the advice! I assume it would
> be mapsforge-map-0.3.1-SNAPSHOT-jar-with-dependencies.jar right?
>
> Also, is there a javadoc created for the 0.3.1 version? Or should I be
> referencing from the source codes?
>
> Thank you!
>
> <https://code.google.com/p/mapsforge/downloads/list>, however it seems
> > like the .jar file is extremely outdated, and they seem to have only
> > updated their stuff on their source codes in some git repository.
> >
> > I've been directed to here:
> > https://code.google.com/p/mapsforge/source/checkout
> <https://code.google.com/p/mapsforge/source/checkout>, where I seem
> to be
> > able to get the most updated codes. However I have no idea how to
> import
> > this as a library into my eclipse for my own usage. It doesn't
> seem to
> > be as simple as copy/paste a .jar file in the lib folder.
> >
> > Can anyone give me a rough guide on how to do this step by step
> so that
> > I am able to use the updated codes? I'm not really familiar with
> this
> > git repository thing.
> >
> > Or is there a most updated .jar file out there to use?
> >
> > Thank you!
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "mapsforge-dev" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to mapsforge-de...@googlegroups.com <javascript:>.
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >
> >
>
>
> --
>
>
> J?rgen Bro?
> Institute of Computer Science
> Databases and Information Systems
> Freie Universit?t Berlin
> Takustr. 9
> D-14195 Berlin, Germany
> phone: +49 30 838-75108
> email: juerge...@fu-berlin.de <javascript:>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mapsforge-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mapsforge-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--


J�rgen Bro�
Institute of Computer Science
Databases and Information Systems
Freie Universit�t Berlin

Jürgen Broß

unread,
Mar 20, 2013, 6:09:11 PM3/20/13
to mapsfo...@googlegroups.com
I need to correct myself. For the Javadoc, please use the following
(preferable) URL.

Javadoc for mapsforge-map-0.3.1-SNAPSHOT latest build:
https://ci.mapsforge.org/job/mapsforge/org.mapsforge$mapsforge-map/javadoc/

Best regards,
J�rgen

Yukai Lin

unread,
Mar 20, 2013, 11:55:39 PM3/20/13
to mapsfo...@googlegroups.com, juerge...@fu-berlin.de
Thanks for the reference! I'm just quite confused with all the changes because I'm trying to implement Fragments for mapsforge from here: https://code.google.com/p/mapsforge/issues/attachmentText?id=177&aid=1770003001&name=MapFragment.java&token=9xpyuUTJWxQNjNRDnLspkb3J6MI%3A1355908353536

and it seems like there are alot of methods under the MapView that are not available? Or should I perhaps implement my own MapView class from the source?


On Thursday, 21 March 2013 06:09:11 UTC+8, Jürgen Broß wrote:
I need to correct myself. For the Javadoc, please use the following
(preferable) URL.

Javadoc for mapsforge-map-0.3.1-SNAPSHOT latest build:
https://ci.mapsforge.org/job/mapsforge/org.mapsforge$mapsforge-map/javadoc/

Best regards,
J?rgen


On 03/20/2013 05:27 PM, J?rgen Bro? wrote:
> Hi again,
>
> First, your assumption is correct. Second, you can find the
> corresponding javadoc at [1].
>
> [1]
> https://ci.mapsforge.org/job/mapsforge/ws/mapsforge-map/target/site/apidocs/index.html
>
>
> Best regards,
> J?rgen
Reply all
Reply to author
Forward
0 new messages