Announcement Announcement Module
No announcement yet.
Spring Roo and HTTP Proxies Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Roo and HTTP Proxies

    For those who live behind firewalls and have to use HTTP proxies - how are proxy authorization credentials for direct HTTP connections specified? Setting ROO_OPTS="-Dhttp.proxyHost=<proxy-host> and -Dhttp.proxyPort=<proxy-port>" doesn't seem to complete the picture. How are the username and password specified?

    I know that additionally Maven proxies need to be specified in settings.xml - but what about when Roo tries to access resources directly via HTTP like DTDs?

  • #2
    Roo uses the proxy settings under the Network settings in the Jave Preferences console.


    • #3
      I assume you mean the Java Control Panel in the Windows Control Panel. There's nothing under Network Settings that allows you to set username and password for the proxy. In any case, my understanding was that this configures the JRE/plugin and wouldn't be relevant when using a JDK.


      • #4
        Try this in the roo.bat:

        java -Dhttp.proxyHost=<proxy-host> -Dhttp.proxyPort=<proxy-port> -Dflash.message.disabled=false -Djline.nobell=true %ROO_OPTS% -Droo.args="%*" -DdevelopmentMode=false"%ROO_HOME%\cache""%ROO_HOME%\bundle""file:%ROO_HOME%\conf\con" -Droo.console.ansi=true -cp "%ROO_CP%" org.springframework.roo.bootstrap.Main