maven-ant-tasks proxy issue

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

maven-ant-tasks proxy issue

Cyril Scetbon
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: maven-ant-tasks proxy issue

mgainty



> From: [hidden email]
> Subject: maven-ant-tasks proxy issue
> Date: Wed, 15 Jun 2016 16:11:26 -0400
> To: [hidden email]
>
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
     
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maven-ant-tasks proxy issue

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.

>>
>> 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: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Urena, Jose M (Jose)
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:[hidden email]]
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: [hidden email] For
>> additional commands, e-mail: [hidden email]
>>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maven-ant-tasks proxy issue

Cyril Scetbon
In reply to this post by Cyril Scetbon
Anyone ?

> On Jun 15, 2016, at 17:40, Cyril Scetbon <[hidden email]> 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: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>    
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: maven-ant-tasks proxy issue

mgainty
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: [hidden email]
> Date: Thu, 16 Jun 2016 11:15:52 -0400
> To: [hidden email]
>
> Anyone ?
> > On Jun 15, 2016, at 17:40, Cyril Scetbon <[hidden email]> 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: [hidden email]
> >>> For additional commands, e-mail: [hidden email]
> >>>
> >>    
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
     
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: maven-ant-tasks proxy issue

Cyril Scetbon
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 <[hidden email]> 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: [hidden email]
>> Date: Thu, 16 Jun 2016 11:15:52 -0400
>> To: [hidden email]
>>
>> Anyone ?
>>> On Jun 15, 2016, at 17:40, Cyril Scetbon <[hidden email]> 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: [hidden email]
>>>>> For additional commands, e-mail: [hidden email]
>>>>>
>>>>    
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...