You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tarakesh Vishwanath <ta...@gmail.com> on 2020/04/07 07:33:46 UTC

Global setting for --no-transfer-progress

Hi,

We have started using Maven 3.6.1's new option --no-transfer-progress to
reduce the log output. However, it is cumbersome to add this flag to every
maven invocation in codebase.
Just wanted to know if there's any way this setting can be made Global ??

Regards,
Tarakesh

Re: Global setting for --no-transfer-progress

Posted by "tarakesh.nvt@gmail.com" <ta...@gmail.com>.
It would be good if this can be added in settings.xml



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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


Re: Global setting for --no-transfer-progress

Posted by Greg Chabala <gr...@gmail.com>.
You could add the option to the ${maven.projectBasedir}/.mvn/maven.config file,
but that's still a per project change, unfortunately.

On Tue, Apr 7, 2020 at 9:16 AM Tomo Suzuki <su...@google.com.invalid>
wrote:

> I tried MAVEN_OPTS, which did not work (it's not for Java virtual machine):
>
> suztomo-macbookpro44% export MAVEN_OPTS='--no-transfer-progress'
> suztomo-macbookpro44% mvn compile
> Unrecognized option: --no-transfer-progress
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
>
> Ugly suggestion: adding that option at the end of "mvn" shell script.
>
>
>
>
> On Tue, Apr 7, 2020 at 7:29 AM Tarakesh Vishwanath <ta...@gmail.com>
> wrote:
>
> > Hi,
> >
> > We have started using Maven 3.6.1's new option --no-transfer-progress to
> > reduce the log output. However, it is cumbersome to add this flag to
> every
> > maven invocation in codebase.
> > Just wanted to know if there's any way this setting can be made Global ??
> >
> > Regards,
> > Tarakesh
> >
>
>
> --
> Regards,
> Tomo
>

RE: Global setting for --no-transfer-progress

Posted by "Golan, Yaron" <ya...@intl.att.com>.
My 2 cents:
alias mvn='/usr/bin/mvn -B --no-transfer-progress'


-----Original Message-----
From: Tomo Suzuki <su...@google.com.INVALID> 
Sent: Tuesday, April 7, 2020 5:17 PM
To: Maven Users List <us...@maven.apache.org>
Subject: Re: Global setting for --no-transfer-progress

I tried MAVEN_OPTS, which did not work (it's not for Java virtual machine):

suztomo-macbookpro44% export MAVEN_OPTS='--no-transfer-progress'
suztomo-macbookpro44% mvn compile
Unrecognized option: --no-transfer-progress
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Ugly suggestion: adding that option at the end of "mvn" shell script.




On Tue, Apr 7, 2020 at 7:29 AM Tarakesh Vishwanath <ta...@gmail.com>
wrote:

> Hi,
>
> We have started using Maven 3.6.1's new option --no-transfer-progress 
> to reduce the log output. However, it is cumbersome to add this flag 
> to every maven invocation in codebase.
> Just wanted to know if there's any way this setting can be made Global ??
>
> Regards,
> Tarakesh
>


--
Regards,
Tomo

Re: Global setting for --no-transfer-progress

Posted by Tomo Suzuki <su...@google.com.INVALID>.
I tried MAVEN_OPTS, which did not work (it's not for Java virtual machine):

suztomo-macbookpro44% export MAVEN_OPTS='--no-transfer-progress'
suztomo-macbookpro44% mvn compile
Unrecognized option: --no-transfer-progress
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


Ugly suggestion: adding that option at the end of "mvn" shell script.




On Tue, Apr 7, 2020 at 7:29 AM Tarakesh Vishwanath <ta...@gmail.com>
wrote:

> Hi,
>
> We have started using Maven 3.6.1's new option --no-transfer-progress to
> reduce the log output. However, it is cumbersome to add this flag to every
> maven invocation in codebase.
> Just wanted to know if there's any way this setting can be made Global ??
>
> Regards,
> Tarakesh
>


-- 
Regards,
Tomo