You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change maven cli defaults based on CI env variable #11088
it would be great if maven could detect that and change some of the default settings then, for example:
show transfer progress is currently ON by default it should be OFF by default on CI servers
batch mode is OFF by default and should be ON by default on CI servers
... maybe more ...
reason is that these options are usually tweaked for the CI and it always adds some boilerplate to these scripts. It would be great if maven can use convention-over-configuration here and switch the defaults depending on where it runs. If anyone absolutely want other values they can still explicitly configure them.
Activity
gnodet commentedon Sep 3, 2025
We do have the needed infrastructure and we do look for the
CIenv variable.For example, it's used here:
maven/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
Line 724 in 335baf5
We actually do disable transfer logging in CI jobs:
maven/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java
Lines 360 to 361 in 9a1c04b
So yes, we may be missing batch mode here, not sure about others atm.
Add CI optimizations for Maven 4.0
Add CI optimizations for Maven 4.0