53c0123beffbe30cb8382059db3f40350ecb1bb7
## Current Behavior The Maven batch runner uses a parallel thread pool to execute tasks. When multiple tasks are independent roots in the task graph, they get picked up by separate threads simultaneously. Both threads call `invoke()` on the same shared `CachingResidentMavenInvoker` (Maven 4) or `CachingMaven3Invoker` (Maven 3) instance concurrently. Maven 4's `LookupInvoker.invoke()` is not thread-safe — it snapshots/restores `System.getProperties()` and the thread context classloader in a `finally` block, and all concurrent invocations share the same resident `MavenContext`. This can cause deadlocks in Maven's internal session machinery. ## Expected Behavior Maven executions through the shared invoker are serialized via `@Synchronized`, preventing concurrent access to non-thread-safe Maven internals. The parallel thread pool still handles task graph management, build state recording, and result emission concurrently. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…
…
…
…
…
…
…
…
…
…
…
…
The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds, scales your CI, and fixes failed PRs automatically. Ship in half the time.
Create a new Nx workspace with
npx create-nx-workspace
...or run
npx nx init
to add Nx to your existing workspace to get faster task scheduling, caching and more. More in the docs.
Learn about CI with Nx Cloud
Nx Cloud connects directly to your existing CI setup, helping you scale your monorepos on CI by leveraging remote caching, task distribution across multiple machines, automated e2e test splitting and automated task flakiness detection
Connect your existing Nx workspace with
npx nx connect
Learn more in the Nx CI docs »
Useful links
Want to help?
If you want to file a bug or submit a PR, read up on our guidelines for contributing and watch this video that will help you get started.

Core Team
| Victor Savkin | Jason Jean | Benjamin Cabanes | Jack Hsu |
|---|---|---|---|
| vsavkin | FrozenPandaz | bcabanes | jaysoo |
| James Henry | Jon Cammisuli | Max Kless | Juri Strumpflohner |
|---|---|---|---|
| JamesHenry | cammisuli | MaxKless | juristr |
| Philip Fulcher | Caleb Ukle | Colum Ferry | Steven Nance |
|---|---|---|---|
| philipjfulcher | barbados-clemens | Coly010 | llwt |
| Miroslav Jonaš | Leosvel Pérez Espinosa | Zachary DeRose | Craigory Coppola |
|---|---|---|---|
| meeroslav | leosvelperez | ZackDeRose | AgentEnder |
| Chau Tran | Nicole Oliver | Rares Matei | Altan Stalker |
|---|---|---|---|
| nartc | nixallover | rarmatei | StalkAltan |
| Josh VanAllen | Austin Fahsl | Louie Weng |
|---|---|---|
| joshvanallen | fahslaj | lourw |
Description
Nx 是面向开发者和 AI 智能体的单体仓库平台,能优化构建、加速 CI、自动修复失败的 PR,交付周期缩短一半。|GitHub 镜像 ⭐ 29.3k · 🍴 3k
https://github.com/nrwl/nx
Readme
MIT
954 MiB
Languages
HTML
100%