You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Cyril Scetbon <cy...@free.fr> on 2016/06/15 20:11:26 UTC

maven-ant-tasks proxy issue

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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: [E] Re: maven-ant-tasks proxy issue

Posted by "Urena, Jose M (JOSE)" <jo...@verizon.com>.
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:cyril.scetbon@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.
>> 
>> 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 
> 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.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>> additional commands, e-mail: user-help@ant.apache.org
>> 
> 		 	   		  


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


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


Re: maven-ant-tasks proxy issue

Posted by Cyril Scetbon <cy...@free.fr>.
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.

> On Jun 16, 2016, at 11:54, Martin Gainty <mg...@hotmail.com> wrote:
> 
> 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
>> From: cyril.scetbon@free.fr
>> Date: Thu, 16 Jun 2016 11:15:52 -0400
>> To: user@ant.apache.org
>> 
>> Anyone ?
>>> On Jun 15, 2016, at 17:40, Cyril Scetbon <cy...@free.fr> wrote:
>>> 
>>> 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.
>>>>> 
>>>>> 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.
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>> 
>>>> 		 	   		  
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
> 		 	   		  


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


RE: maven-ant-tasks proxy issue

Posted by Martin Gainty <mg...@hotmail.com>.
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
> From: cyril.scetbon@free.fr
> Date: Thu, 16 Jun 2016 11:15:52 -0400
> To: user@ant.apache.org
> 
> Anyone ?
> > On Jun 15, 2016, at 17:40, Cyril Scetbon <cy...@free.fr> wrote:
> > 
> > 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.
> >>> 
> >>> 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.
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>> For additional commands, e-mail: user-help@ant.apache.org
> >>> 
> >> 		 	   		  
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
 		 	   		  

Re: maven-ant-tasks proxy issue

Posted by Cyril Scetbon <cy...@free.fr>.
Anyone ?
> On Jun 15, 2016, at 17:40, Cyril Scetbon <cy...@free.fr> wrote:
> 
> 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.
>>> 
>>> 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.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>> 
>> 		 	   		  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


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


Re: maven-ant-tasks proxy issue

Posted by Cyril Scetbon <cy...@free.fr>.
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.
>> 
>> 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.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>> 
> 		 	   		  


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


RE: maven-ant-tasks proxy issue

Posted by Martin Gainty <mg...@hotmail.com>.


> From: cyril.scetbon@free.fr
> Subject: maven-ant-tasks proxy issue
> Date: Wed, 15 Jun 2016 16:11:26 -0400
> To: user@ant.apache.org
> 
> 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.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>