Hi,
I am trying to build lucene-solr code on my linux box behind company firewall,
but am encountering some proxy issue. I installed the latest ant
(apache-ant-1.9.4), then tried to install ivy:
ant ivy-bootstrap
It hangs there:
----------------------
Buildfile:
/scratch/sxzhu/git_storage/lucene-solr/build.xmlivy-bootstrap:ivy-bootstrap1:
[echo] installing ivy 2.3.0 to /home/sxzhu/.ant/lib
[get] Getting:
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
[get] To: /home/sxzhu/.ant/lib/ivy-2.3.0.jar
---------------------
I then manually get the specified file to the specified location, then re-try:
--------------------------
Buildfile:
/scratch/sxzhu/git_storage/lucene-solr/build.xmlivy-bootstrap:ivy-bootstrap1:
[echo] installing ivy 2.3.0 to /home/sxzhu/.ant/lib
[get] Getting:
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
[get] To: /home/sxzhu/.ant/lib/ivy-2.3.0.jar
[get] Error getting
http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar to
/home/sxzhu/.ant/lib/ivy-2.3.0.jarivy-bootstrap2:ivy-checksum:ivy-bootstrap:BUILD
SUCCESSFUL
Total time: 3 minutes 9 seconds
-------------------------
But, when building solr, it failed since dependencies could not be resolved:
cd solr
ant dist
...BUILD FAILED
/scratch/sxzhu/git_storage/lucene-solr/solr/common-build.xml:398: The following
error occurred while executing this line:
/scratch/sxzhu/git_storage/lucene-solr/lucene/module-build.xml:284: The
following error occurred while executing this line:
/scratch/sxzhu/git_storage/lucene-solr/lucene/common-build.xml:434: impossible
to resolve dependencies:
resolve failed - see output for details
I believe this is due to the proxy setting, which causes downloading external
dependencies to fail.
I did try something like:
set ANT_OPTS="-Dproxy.specified=true -Dproxy.host=<proxy-host>
-Dproxy.port=<proxy-port>"
but still not effective.
Any idea how to set the proxy to be able to download such external
dependencies? Please include my email address in the reply since I am not in
the mailing list.
Thanks.
Shushuai