> 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 ...
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 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
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.
> 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:
> 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?