To help debugging, add the time zone to the Maven banner
New feature, improvement proposal
The current banner reports, for example:
Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)
Maven home: /usr/share/apache-maven-3.9.12
Java version: 25.0.1, vendor: Eclipse Adoptium, runtime: /usr/lib/jvm/temurin-25-jdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.11.0-1018-azure", arch: "amd64", family: "unix"
It would be helpful in debugging builds, especially on remote CIs, to report the time zone, for example:
...
Default locale: en, platform encoding: UTF-8, time zone: America/New_York
...
Hi @garydgregory , I’d like to work on this improvement and submit a PR. Could I work on it?
Hello @assokhi
I just wrote the feature request. Go for it 😉
Hi @garydgregory and @assokhi,
I'd like to work on this issue if it's still available.
Proposed approach:
- Locate the banner output code in
MavenClior invoker classes - Add timezone information using
ZoneId.systemDefault() - Update banner format to include:
Timezone: America/New_York (UTC-05:00) - Add unit tests for the new output
Can I proceed with this implementation?
hi @chanani Hi, thanks for your interest in this issue! I’ve already opened a pull request that addresses it and is currently under review. Feel free to take a look at the PR, and happy to incorporate any suggestions or improvements you might have. https://github.com/apache/maven/pull/11681
Hi @cstamas Any thoughts on merging the PR?