apache / apache/maven-help-plugin

forceStdout and -q prints more than expected in Maven 4.0.0-rc6

Open
#410 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
29
Forks
42
Avg merge
1d 12h
Merged PRs (30d)
6

Description

### Affected version

3.5.2

### Bug description

If you use maven-help-plugin in combination with maven-4.0.0-rc-6 for example to get information about the `maven.compiler.release` property:
```
$> RESULT=$(mvn help:evaluate -Dexpression=maven.compiler.release -q -DforceStdout)
$> echo $RESULT
[INFO] [stdout] 23
```
That means the the expected value of `RESULT` should be `23` (With Maven3) but with Maven 4.0.0-rc-6 is `[INFO] [stdout] 23` which beaks scripting.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the help:evaluate command with -q and -DforceStdout under Maven 4.0.0-rc-6, then trace how the maven-help-plugin formats its evaluated output and logging. Done means shell capture returns only 23, matching Maven 3 behavior, without the [INFO] [stdout] prefix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.