Discussion:
maven-ant-tasks proxy issue
Cyril Scetbon
2016-06-15 20:11:26 UTC
Permalink
Hi guys,

I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.

Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
Martin Gainty
2016-06-15 21:16:05 UTC
Permalink
Subject: maven-ant-tasks proxy issue
Date: Wed, 15 Jun 2016 16:11:26 -0400
Hi guys,
I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
MG>properties need to be set so the refid works for:
<remoteRepository refid="central"/><remoteRepository refid="apache"/><remoteRepository refid="java.net2"/>>
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
Cyril Scetbon
2016-06-15 21:40:57 UTC
Permalink
They are defined at https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.properties.default

When I don't need to use a proxy it works fine.
Post by Martin Gainty
Post by Cyril Scetbon
I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
<remoteRepository refid="central"/><remoteRepository refid="apache"/><remoteRepository refid="java.net2"/>>
Post by Cyril Scetbon
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
Cyril Scetbon
2016-06-16 15:15:52 UTC
Permalink
Anyone ?
Post by Cyril Scetbon
They are defined at https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.properties.default
When I don't need to use a proxy it works fine.
Post by Martin Gainty
Post by Cyril Scetbon
I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
<remoteRepository refid="central"/><remoteRepository refid="apache"/><remoteRepository refid="java.net2"/>>
Post by Cyril Scetbon
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
Martin Gainty
2016-06-16 15:54:01 UTC
Permalink
big difference between Nix proxy and Windows proxy configurations

follow this tutorial:

https://ant.apache.org/manual/proxy.html
Subject: Re: maven-ant-tasks proxy issue
Date: Thu, 16 Jun 2016 11:15:52 -0400
Anyone ?
Post by Cyril Scetbon
They are defined at https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.properties.default
When I don't need to use a proxy it works fine.
Post by Martin Gainty
Post by Cyril Scetbon
I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
<remoteRepository refid="central"/><remoteRepository refid="apache"/><remoteRepository refid="java.net2"/>>
Post by Cyril Scetbon
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Cyril Scetbon
2016-06-16 15:56:44 UTC
Permalink
I already read this page. I tried the manual configuration which didn't work, and I can't use the auto version because I'm not using gconf. Also looking for a way that do not need any new file to be added if possible.
Post by Martin Gainty
big difference between Nix proxy and Windows proxy configurations
https://ant.apache.org/manual/proxy.html
Subject: Re: maven-ant-tasks proxy issue
Date: Thu, 16 Jun 2016 11:15:52 -0400
Anyone ?
Post by Cyril Scetbon
They are defined at https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.properties.default
When I don't need to use a proxy it works fine.
Post by Martin Gainty
Post by Cyril Scetbon
I have an issue with this code https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L567-L590
I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
<remoteRepository refid="central"/><remoteRepository refid="apache"/><remoteRepository refid="java.net2"/>>
Post by Cyril Scetbon
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org

Urena, Jose M (JOSE)
2016-06-16 15:08:11 UTC
Permalink
If you have a project's "local" settings.xml
You can add --settings to have maven-ant-tasks use that for options like mirror and proxy without using ANT_OPTS or JAVA_OPTS

<artifact:localRepository path="${basedir}/apps/repo" id="maven.repo.local"/>

<target name="build" depends="need.maven_tasks">
<artifact:mvn mavenVersion="3.3.9" fork="true" failonerror="true">
<localRepository refid="maven.repo.local"/>
<jvmarg line="-Dmaven.multiModuleProjectDirectory"/>
<jvmarg line="-Dmaven.test.skip=true"/>
<jvmarg line="-Dlog4j.configuration=${basedir}/log4j.console.xml"/>
<arg line="--settings ${basedir}/settings.xml" />
<arg line="install " />
<arg line="versions:display-dependency-updates " />
<arg line="versions:display-plugin-updates " />
<arg line="dependency:analyze " />
</artifact:mvn>

-----Original Message-----
From: Cyril Scetbon [mailto:***@free.fr]
Sent: Wednesday, June 15, 2016 5:41 PM
To: Ant Users List
Subject: [E] Re: maven-ant-tasks proxy issue

They are defined at https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.properties.default

When I don't need to use a proxy it works fine.
Post by Martin Gainty
Post by Cyril Scetbon
I have an issue with this code
https://github.com/apache/cassandra/blob/cassandra-2.1.14/build.xml#L
567-L590 I've tried to use http_proxy, ANT_OPTS, ANT_ARGS and
JAVA_TOOL_OPTIONS without being able to force ant to use my proxy to access the web.
MG>what are the values of properties :centralapachejava.net2
<remoteRepository refid="central"/><remoteRepository
refid="apache"/><remoteRepository refid="java.net2"/>>
Post by Cyril Scetbon
Any idea ? I'd like a way that to do not requires to change files if possible.
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org For additional commands, e-mail: user-***@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-***@ant.apache.org
For additional commands, e-mail: user-***@ant.apache.org
Loading...