Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvnd from java #908

Open
ramarro123 opened this issue Feb 2, 2024 · 4 comments
Open

mvnd from java #908

ramarro123 opened this issue Feb 2, 2024 · 4 comments

Comments

@ramarro123
Copy link

hi, i have a java app that spawn mvn and now i try to replace with mvnd

i got

Fri Feb 02 11:03:41 CET 2024 Feb 02, 2024 11:03:41 AM org.jline.utils.Log logr
Fri Feb 02 11:03:41 CET 2024 WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
Fri Feb 02 11:03:41 CET 2024 [main] WARNING org.jline - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

as warning, and no log are returned in output.

i start the process with
ProcessBuilder pb = new ProcessBuilder(commands);
pb.redirectErrorStream(true);

i can say that aside from log mvnd is working

any way to get the log from mvnd?

@gnodet
Copy link
Contributor

gnodet commented Feb 2, 2024

hi, i have a java app that spawn mvn and now i try to replace with mvnd

i got

Fri Feb 02 11:03:41 CET 2024 Feb 02, 2024 11:03:41 AM org.jline.utils.Log logr Fri Feb 02 11:03:41 CET 2024 WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information) Fri Feb 02 11:03:41 CET 2024 [main] WARNING org.jline - Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

as warning, and no log are returned in output.

i start the process with ProcessBuilder pb = new ProcessBuilder(commands); pb.redirectErrorStream(true);

i can say that aside from log mvnd is working

any way to get the log from mvnd?

Isn't it written to the output stream of the spawned process ?

@ramarro123
Copy link
Author

i don'tknow why but no, a simple "mvn clean install" actually build the artifact
but there is no log, i do redir stderr as you can see and then do

proc.getinputstream() (wrapped with a reader) to read it, that should be just right as far as i know.

unfortunately it only display the warning i copied, no other things (that log come from the prog.getinputstream)

@gnodet
Copy link
Contributor

gnodet commented Feb 2, 2024

Try running mvnd in batch mode with -B ?

@ramarro123
Copy link
Author

umm, nope, didn't changed i try with debug mode as well, not sure it apply
"-DconsoleLevel=debug",
"-B",
"clean",
"install"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants