desruisseaux commented on code in PR #2376: URL: https://github.com/apache/maven/pull/2376#discussion_r2104650114
########## impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java: ########## @@ -306,7 +306,7 @@ private void doExecute(MavenSession session, MojoExecution mojoExecution, Depend ensureDependenciesAreResolved(mojoDescriptor, session, dependencyContext); - try (NoExceptionCloseable lock = getProjectLock(session, mojoDescriptor)) { + try (NoExceptionCloseable ignore = getProjectLock(session, mojoDescriptor)) { Review Comment: It is used implicitly by the "try with resource" constructor. The `lock` name is fine, as it is a meaningful name if a future version decides to use it explicitly. -- 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