Jan 18
Quick Tip: Using an authenticated proxy server with Ivy
I was recently checking out the sample applications that ship with Spring Web Flow 2.0. In order to build the examples, you have to run an ant build that involves the Ivy Dependency Manager.
I was doing this behind a proxy server which requires username/password authentication, which unfortunately isn’t documented in the Ivy FAQ.
In case anyone runs into this particular problem, here’s how I solved it. Set the following environment variable (note this is all on a single line – I’ve added line breaks for readability):
set ANT_OPTS=-Dhttp.proxyHost=myproxyhost
-Dhttp.proxyPort=8080
-Dhttp.proxyUserName=myproxyusername
-Dhttp.proxyPassword=myproxypassword
-Dhttps.proxyHost=myproxyhost
-Dhttps.proxyPort=8080
Replace as appropriate for your environment.
Similar Posts:
- Quick Tip: Using “Ant Builder” to customize Eclipse builds using ant scripts
- [Quick Tip] Printing out all matches in an Ant fileset
- Quick Tip: Spring 2.5 makes use of PropertyPlaceholderConfigurer simpler
- Auto-Expanding Collections as JDBC Parameters with Spring SimpleJdbcTemplate
- Solving Problems with International (UTF-8) Data using Hibernate, Oracle, and Tomcat


