Repository navigation
Description
Affected version
3.10.0
Bug description
Tested on maven-archetype project
Logs generated by tests executed by surefire are not redirect to log file.
mvn clean verify -l ../log.txt
...
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.diffplug.spotless.java.ModuleHelper (file:/Users/slawomir.jaranowski/.m2/repository-prv/com/diffplug/spotless/spotless-lib/4.5.0/spotless-lib-4.5.0.jar)
WARNING: Please consider reporting this to the maintainers of class com.diffplug.spotless.java.ModuleHelper
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
[main] WARN org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator - Don't override file /Users/slawomir.jaranowski/repos/apache/maven-archetype/archetype-common/target/test-classes/projects/archetyper-generate-1/app/pom.xml
[main] INFO org.apache.maven.archetype.common.DefaultPomManager - Parent element not overwritten in /Users/slawomir.jaranowski/repos/apache/maven-archetype/archetype-common/target/test-classes/projects/archetyper-generate-1/app/subproject/pom.xml
[main] INFO org.apache.maven.archetype.common.DefaultPomManager - Parent element not overwritten in /Users/slawomir.jaranowski/repos/apache/maven-archetype/archetype-common/target/test-classes/projects/archetyper-generate-1/app/subproject/subsubproject/pom.xml
[main] WARN org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator - Property 'undefined-property' was not specified, so the token in 'src/main/java/org/mycompany/app///SkipsUndefinedProperty-__undefined-property__-__property-with-default-2__.java' is not being replaced.
[main] INFO org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator - Project created from Archetype in dir: /Users/slawomir.jaranowski/repos/apache/maven-archetype/archetype-common/target/test-classes/projects/archetyper-generate-1/app
[main] WARN org.apache.maven.archetype.generator.DefaultFilesetArchetypeGenerator - CP Don't override file /Users/slawomir.jaranowski/repos/apache/maven-archetype/archetype-common/target/internal-archetypes-projects/archetype1/src/main/resources
...
with 3.9.16 I have:
mvn clean verify -l ../log.txt
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.diffplug.spotless.java.ModuleHelper (file:/Users/slawomir.jaranowski/.m2/repository-prv/com/diffplug/spotless/spotless-lib/4.5.0/spotless-lib-4.5.0.jar)
WARNING: Please consider reporting this to the maintainers of class com.diffplug.spotless.java.ModuleHelper
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
cstamas commentedon May 31, 2026
Blah, 99% this is slf4j update related. @olamy any idea ?
This issue, but also #12187
olamy commentedon May 31, 2026
Looking at it now, but uh, might be some issue with jline (ansi console install is done in the background and it looks during a short amount time it's not installed a logs do not get redirected correctly), which is totally different in master/4.x branch
olamy commentedon May 31, 2026
Maybe just use Linux to have no problem :)
Is it happening for osx? (it looks like by looking at the output)
cstamas commentedon May 31, 2026
It happens for me on Linux too. Slawek is OSX.
See #12187 for one of reproducers.
olamy commentedon May 31, 2026
should be fixed with #12189, I have reproduced the issue with osx and the PR looks to fix it
Issue #12188 redirection of log output to a file does not redirect ev…
slawekjaranowski commentedon Jun 3, 2026
confirm, fixed
fix: add awaitTerminalInitialization before log file redirect, add te…
Address review: add awaitTerminalInitialization() in LOG_FILE branch …
1 remaining item
fix: wait for terminal installation before caching logging output (co…
test: add MavenCliLoggingTest for compat awaitTerminalInitialization fix
Add MavenCliLoggingTest for compat terminal race condition (apache#12188
Add MavenCliLoggingTest for compat terminal race condition (apache#12188
fix: wait for terminal installation before caching logging output (co…
fix: wait for terminal installation before caching logging output (co…
fix: wait for terminal installation before caching logging output (co…
fix: wait for terminal installation before caching logging output (co…
test: add logFileBranchAwaitsTerminalBeforeRedirect and color-forced …
test: add logFileBranchAwaitsTerminalBeforeRedirect and color-forced …
fix: wait for terminal installation before caching logging output (co…
fix: wait for terminal installation before caching logging output (co…
Drop JLine, emit ANSI colors directly (#13888)
fix: wait for terminal installation before caching logging output (co…
fix: wait for terminal installation before caching logging output (co…