Hello,

I want to use proxy in my maven project (to make some builds faster,
because when processing Docbook documentation, some DTDs are slow to
fetch from some servers).
I have tried following ways how to do it:

1) set it up in Java:
$JAVA_HOME/bin/ControlPanel -> Network Settings

2) in ~/.m2/settings.xml in properties
<settings>
        ...
        <proxies>
                <proxy>
                        <active>true</active>
                        <protocol>http</protocol>
                        <host>proxy.mydomain.com</host>
                        <port>3128</port>
                        <nonProxyHosts>*.mydomain.com</nonProxyHosts>
                </proxy>
        </proxies>
</settings>

3) in ~/.m2/settings.xml in a profile, that is activated by default in
my projects
<profile>
        ...
        <properties>
                ...
                <http.proxyHost>proxy.myhost.com</http.proxyHost>
                <http.proxyPort>3128</http.proxyPort>
        </properties>
</profile>

4) in the pom.xml's properties
<properties>
        ...
        <http.proxyHost>proxy.myhost.com</http.proxyHost>
        <http.proxyPort>3128</http.proxyPort>
</properties>

5) on the command line:
mvn some_profiles_and_goals -Dhttp.proxyHost=proxy.myhost.com
-Dhttp.proxyPort=3128


I have tried it with Maven 2.0.10 and 2.2.1 with the same result. Only
the solution 5 works, but that's not what I want to use (I don't want
to specify parameters every time I run maven).


Thanks,
Zdenek Zikan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to