`mvnd help:evaluate` regression
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 250
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 36
Description
`mvnd help:evaluate` doesn't print anything anymore since `1.0-m7-m39`
To reproduce, setup a basic project:
```shell
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
cd my-app
mkdir .mvn
```
then run `mvnd help:evaluate -Dexpression=project.version -q -DforceStdout`
using SDKMAN, it looks like it was broken in `1.0-m7-m39`:
```shell
~ sdk use mvnd 1.0-m6-m40
Using mvnd version 1.0-m6-m40 in this shell.
~ mvnd help:evaluate -Dexpression=project.version -q -DforceStdout
[INFO] [stdout] 1.0-SNAPSHOT
~ sdk use mvnd 1.0-m7-m39
Using mvnd version 1.0-m7-m39 in this shell.
~ mvnd help:evaluate -Dexpression=project.version -q -DforceStdout
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the regression in a generated Maven project with `mvnd help:evaluate -Dexpression=project.version -q -DforceStdout`, then compare the output between versions `1.0-m6-m40` and `1.0-m7-m39`. Trace the mvnd changes between those versions that affect this command's stdout handling; done means the command prints `1.0-SNAPSHOT` again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100