Hi,

I compiled nutch in a linux server connected to internet like Tejas
suggested and found the .iv2 folder. However, there are some files in that
folder with filenames that has its own hostname as part of the filename. I
am wondering how I can scp this .iv2 folder to other server which has a
different hostname? Can I just manually edit those filenames to match other
server hostname? Please advise


On Sat, Feb 8, 2014 at 9:32 AM, d_k <[email protected]> wrote:

> Tejas Patil is right, you should copy over the .ivy2 folder and it will
> work.
>
> You can extract it to some other location and run ant with the parameter
> "-D
> ivy.cache.dir=/path/to/extraced/cache".
>
> In order to use the eclipse project behind a firewall you can either run
> 'ant eclipse' and copy over the .project and .classpath files or download
> the ant-eclipse-1.0.bin.tar.bz2 file, the default url is [0] and then
> either edit the ant-eclipse-download target in build.xml to a web server
> serving the copied tar over http or change the build.xml
> ant-eclipse-download target from a get task to something along the lines
> of:
>
> <copy file="/path/to/local/ant-eclipse-1.0.bin.tar.bz2"
> todir="${build.dir}" />
>
> [0]
>
> http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2
>
>
> On Sat, Feb 8, 2014 at 11:28 AM, Tejas Patil <[email protected]
> >wrote:
>
> > This has to do more with ant and nothing about nutch. Here is a wild
> idea:
> >
> > Grab a linux box without any internet restrictions, download nutch over
> it
> > and build it. In the user home, there would a hidden directory ".ivy2"
> > which is a local ivy cache. Create a tarball of the same and scp it over
> > your work machine, extract it in home directory and then run nutch build.
> >
> > PS: I have never done this for ivy but for maven and it had worked.
> >
> > ~tejas
> >
> >
> > On Fri, Feb 7, 2014 at 2:18 PM, A Laxmi <[email protected]> wrote:
> >
> > > Hi,
> > >
> > > I am having issues building Nutch 2.2.1 behind my company firewall. My
> > > build gets stuck here:
> > >
> > > [ivy:resolve] :: loading settings :: file =
> > > ~/nutchtest/nutch/ivy/ivysettings.xml
> > >
> > > When I contacted the hosting admin, they said - "Ant is trying to
> > download
> > > files from internet and it will have problems with our firewalls. You
> > will
> > > either have to download the files yourself and then scp/sftp them to
> the
> > > machine. Unfortunately we don't have an http proxy."
> > >
> > >
> > > From further digging, I could see Ant is trying to access this link
> > > http://ant.apache.org/ivy/. Could anyone please advise what I should
> do
> > to
> > > make Ant compile Nutch without accessing the internet? I can download
> > > required files from http://ant.apache.org/ivy/ and scp/sftp to the
> > server
> > > but I am not sure what files to download and where to put them?
> > >
> > > Thanks for your help!!
> > >
> >
>

Reply via email to