michael-o commented on code in PR #736: URL: https://github.com/apache/maven/pull/736#discussion_r874051177
########## maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java: ########## @@ -282,6 +308,32 @@ private Lock getProjectLock( MavenSession session ) } } + static class OwnerReentrantLock extends ReentrantLock + { + @Override + public Thread getOwner() + { + return super.getOwner(); + } + } + + static class OwnerReentrantReadWriteLock extends ReentrantReadWriteLock + { + @Override + public Thread getOwner() + { + return super.getOwner(); + } + } + + private static void warn( String msg ) + { + for ( String s : MessageHelper.formatWarning( msg ) ) + { + LOGGER.warn( s ); + } Review Comment: Well, look into /maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java, I do synchronize there to make console output project. Since the logger is static final you can use it as monitor, no? -- 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-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org