You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slawekjaranowski (via GitHub)" <gi...@apache.org> on 2026/05/31 14:29:18 UTC

[I] Log output to file - not everything is captured by log file [maven]

slawekjaranowski opened a new issue, #12188:
URL: https://github.com/apache/maven/issues/12188

   ### 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
   ```


-- 
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] Log output to file - not everything is captured by log file [maven]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski closed issue #12188: Log output to file - not everything is captured by log file
URL: https://github.com/apache/maven/issues/12188


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   confirm, fixed


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   Blah, 99% this is slf4j update related. @olamy any idea ?
   This issue, but also #12187 


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   Looking at it now, but uh, might be some issue with jline (ansi console install), which is totally different in master/4.x branch
   


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   It happens for me on Linux too. Slawek is OSX.


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   Maybe just use Linux to have no problem :) 
   Is it happening for osx?
   
   ```
   olamy@olamy-pop-os:~/dev/sources/maven/misc/archetypes$ mvn -v
   Apache Maven 3.10.0-SNAPSHOT (cec31590a78ae40262e945e73a6c20df3dae5736)
   Maven home: /home/olamy/.sdkman/candidates/maven/3.10.x
   Java version: 25.0.2, vendor: Eclipse Adoptium, runtime: /home/olamy/.sdkman/candidates/java/25.0.2-tem
   Default locale: en_AU, platform encoding: UTF-8, time zone: Australia/Brisbane
   OS name: "linux", version: "6.18.7-76061807-generic", arch: "amd64", family: "unix"
   olamy@olamy-pop-os:~/dev/sources/maven/misc/archetypes$ mvn clean verify -l ../log.txt
   olamy@olamy-pop-os:~/dev/sources/maven/misc/archetypes$
   ```


-- 
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] Log output to file - not everything is captured by log file [maven]

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

   should be fixed with #12189, I have reproduced the issue with osx and the PR looks to fix it


-- 
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