elharo opened a new issue, #12586:
URL: https://github.com/apache/maven/issues/12586
# concurrent/MojoExecutor disables all project-level locking
**Found in:** maven-4.0.x branch
**File:**
`impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/MojoExecutor.java`
(lines 38-40)
**Severity:** Critical
## Description
The `@Named("concurrent")` MojoExecutor subclass (used for parallel builds)
disables all project-level locking:
```java
@Override
protected boolean useProjectLock(MavenSession session) {
return false; // Always returns false
}
```
The parent class's `useProjectLock()` returns `true` when
`degreeOfConcurrency > 1` (the concurrent build scenario). By always returning
`false`, this subclass allows **multiple mojos to execute concurrently on the
same project**, which can corrupt shared project state such as artifact
filters, dependency resolution state, and plugin configuration.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]