how to build mkgmap with local ivy copy?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how to build mkgmap with local ivy copy?

Thorsten Kukuk

Hi,

I want to build mkgmap without any internet access, so
that I can play with it on travel or in our build system,
which does not have internet access.

But even if I have a local copy of ivy installed, the
mkgmap build system always tries to fetch it from repo1.maven.org.

How I can tell the build process to use the local copy in
/usr/share/java ?

 Thanks,
  Thorsten
--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Thorsten Kukuk
On Tue, Apr 03, Thorsten Kukuk wrote:

>
> Hi,
>
> I want to build mkgmap without any internet access, so
> that I can play with it on travel or in our build system,
> which does not have internet access.
>
> But even if I have a local copy of ivy installed, the
> mkgmap build system always tries to fetch it from repo1.maven.org.
>
> How I can tell the build process to use the local copy in
> /usr/share/java ?

Ok, ivy itself is solved, now.
Now I only need to find out how to tell ivy to use the
installed versions and not to download them ...

  Thorsten

--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Gerd Petermann
In reply to this post by Thorsten Kukuk
Hi Thorsten,

see

offline build
does that help?

Gerd

Thorsten Kukuk wrote
Hi,

I want to build mkgmap without any internet access, so
that I can play with it on travel or in our build system,
which does not have internet access.

But even if I have a local copy of ivy installed, the
mkgmap build system always tries to fetch it from repo1.maven.org.

How I can tell the build process to use the local copy in
/usr/share/java ?

 Thanks,
  Thorsten
--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Thorsten Kukuk
On Tue, Apr 03, GerdP wrote:

> Hi Thorsten,
>
> see
>
> http://gis.19327.n5.nabble.com/Commit-r2237-Merge-of-the-build-branch-which-uses-ivy-to-obtain-tp5539158p5553605.html
> offline build
> does that help?

No, not really.
It does only help if you did run it once with network.

For now, I create the ivy directories manual and link the
jars into that directories in my build script.
After looking at the code and reading the ant/ivy documentation,
I don't think it's possible to point the build process to already
installed jars with ivy.

  Thorsten

> Thorsten Kukuk wrote
> >
> > Hi,
> >
> > I want to build mkgmap without any internet access, so
> > that I can play with it on travel or in our build system,
> > which does not have internet access.
> >
> > But even if I have a local copy of ivy installed, the
> > mkgmap build system always tries to fetch it from repo1.maven.org.
> >
> > How I can tell the build process to use the local copy in
> > /usr/share/java ?
> >
> >  Thanks,
> >   Thorsten
> > --
> > Thorsten Kukuk, Project Manager/Release Manager SLES
> > SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
> > GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev@.org
> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> >
>
>
> --
> View this message in context: http://gis.19327.n5.nabble.com/how-to-build-mkgmap-with-local-ivy-copy-tp5614685p5614936.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> [hidden email]
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Richard Hansen
On 2012-04-03 08:19, Thorsten Kukuk wrote:
> For now, I create the ivy directories manual and link the
> jars into that directories in my build script.
> After looking at the code and reading the ant/ivy documentation,
> I don't think it's possible to point the build process to already
> installed jars with ivy.

Correct.  For each jar, Ivy needs an ivy.xml file that describes that
jar's dependencies (so that Ivy can fetch dependencies of dependencies).

Some jars come with the ivy.xml embedded inside, but that is not common
practice.  The easiest way to get a jar's ivy.xml is to run "ant
resolve" when you next have a network connection.  That also downloads
the jars, of course.

-Richard
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Steve Ratcliffe
In reply to this post by Thorsten Kukuk

Hi

I believe that we should make it possible to build on a completely
isolated build system.

> I don't think it's possible to point the build process to already
> installed jars with ivy.

You can create a local repository and that repository can have
a flat structure. You still need the ivy files, but we could
supply them with the source.

The attached proof of concept patch modifies the build system so
that if you create a file 'local.properties' containing
the following lines:

        ivy.jar.dir=/usr/share/java
        ivy.default.resolver=usr-share-local

Then it will work without any internet connection as long
as all the required jars are in /usr/share/java

Is that the kind of thing that you are looking for?

Without the local.properties file, it will work just the same
as before (but please test).

..Steve

_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

no-network.patch (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to build mkgmap with local ivy copy?

Thorsten Kukuk

Hi,

On Tue, Apr 03, Steve Ratcliffe wrote:

>
> Hi
>
> I believe that we should make it possible to build on a completely
> isolated build system.
>
>> I don't think it's possible to point the build process to already
>> installed jars with ivy.
>
> You can create a local repository and that repository can have
> a flat structure. You still need the ivy files, but we could
> supply them with the source.
>
> The attached proof of concept patch modifies the build system so
> that if you create a file 'local.properties' containing
> the following lines:
>
> ivy.jar.dir=/usr/share/java
> ivy.default.resolver=usr-share-local
>
> Then it will work without any internet connection as long
> as all the required jars are in /usr/share/java
>
> Is that the kind of thing that you are looking for?

Yes, that's what I'm looking for, and it's working fine.

Next problem I run into:
mkgmap requires osmpbf-1.1.1, but meanwhile 1.2.1 is released.
Is it possible to allow more versions or a range of versions?

Thanks,
  Thorsten

--
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev