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