You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
maven-mvnd/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java
Lines 392 to 404 in 9f4b57b
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?
The text was updated successfully, but these errors were encountered: