You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ZhangWen-Leo (via GitHub)" <gi...@apache.org> on 2024/09/05 11:12:43 UTC

[I] Mvnd dont exit with Non-zero value when error occurs. [maven-mvnd]

ZhangWen-Leo opened a new issue, #1129:
URL: https://github.com/apache/maven-mvnd/issues/1129

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Mvnd dont exit with Non-zero value when error occurs. [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #1129: Mvnd dont exit with Non-zero value when error occurs.
URL: https://github.com/apache/maven-mvnd/issues/1129


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Mvnd dont exit with Non-zero value when error occurs. [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz commented on issue #1129:
URL: https://github.com/apache/maven-mvnd/issues/1129#issuecomment-6249744474

   No reproducer since 2025-09. `new ProcessBuilder("mvnd", "install")` needs separate arguments; please reopen with a runnable example if the exit code is still 0 on failure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org