You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "royscheefhals (via GitHub)" <gi...@apache.org> on 2024/09/25 09:16:26 UTC
[I] Allow for a sorted log when --batch-mode is used in a multi module project [maven-mvnd]
royscheefhals opened a new issue, #1151:
URL: https://github.com/apache/maven-mvnd/issues/1151
Hello!
We use maven-daemon to allow for a much better developer experience when dealing with multi module projects.
We also use parallel builds in our CI/CD pipelines, but this is currently using regular maven `mvn -T <threads>` .
Using parallel builds with regular maven results in an unsorted build logfile, rendering it almost unusable.
We're looking at using maven daemon to allow for a sorted log, but unfortunately using `mvnd clean --batch-mode` also results in an unsorted logfile. Although, it does prepend each logline tags in the form of `[project_id] <message>`.
I located the line that eventually directly prints the tagged logline:
https://github.com/apache/maven-mvnd/blob/9f4b57be26a5a979fc9aebfc20e3c23e087f7648/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java#L392-L404
Line 401 is what is printed
### My Suggestion
Why not remove the block L394-L401 and just allow for the log to still be buffered per project?
So, just always do `prj.log.add(bm.getMessage());`.
What are your thoughts?
--
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