Skip to content

Using mvnsh - ERROR shown while no error happens - "mvn --version", "mvnenc #12749

Description

@khmarbaise

Affected version

4.0.0-rc-6

Bug description

If I start the mvnsh and I call mvn --version

maven-buch mvnsh> mvn --version
Apache Maven 4.0.0-rc-6 (6a8189b24518daa120539fa41ce12f2b48ec09a8)
Maven home: /Users/khm/tools/maven
Java version: 28-ea, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/28.0.0+ea.11-open
Default locale: en_DE, platform encoding: UTF-8, time zone: Europe/Berlin
OS name: "mac os x", version: "14.8.3", arch: "aarch64", family: "mac"
[ERROR] mvn command exited with exit code 0
maven-buch mvnsh> mvnenc --version
Apache Maven 4.0.0-rc-6 (6a8189b24518daa120539fa41ce12f2b48ec09a8)
Maven home: /Users/khm/tools/maven
Java version: 28-ea, vendor: Oracle Corporation, runtime: /Users/khm/.sdkman/candidates/java/28.0.0+ea.11-open
Default locale: en_DE, platform encoding: UTF-8, time zone: Europe/Berlin
OS name: "mac os x", version: "14.8.3", arch: "aarch64", family: "mac"
[ERROR] mvnenc command exited with exit code 0

The output of the mvn --version (or mvnenc --version) shows a RED collored ERROR output indicating that there is an error which is not the case ... because it is also reporting with exit code 0 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions