Mvnd dont exit with Non-zero value when error occurs.
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 250
- Avg merge
- 16h 22m
- Merged PRs (30d)
- 36
Description
Here is my java code:
```java
public void execInstall() {
ProcessBuilder pb = new ProcessBuilder("mvnd install").inheritIO();
Process process = pb.start();
process.waitFor();
if (process.exitValue() == 0) {
// This means suceed
} else {
// This means some error occured
}
}
```
But this haven't act as what I want.When something wrong occurs with the "mvnd install", I didn't get a non-zero value from the `process.exitValue()`.
When I change the `mvnd` to `mvn`, it just act as I want.
Help me plz.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported behavior using the Java ProcessBuilder example with `mvnd install`, then compare its exit status with `mvn install` when the command fails. Trace how mvnd reports child-process failures and define done as returning a non-zero status consistently with Maven; the issue names no repository files or tests to start from.
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
- Needs clarification
- Newbie friendliness
- 35/100