You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在 Spring Boot repackage 生成的 fat jar 中,BOOT-INF/lib/ 下的 jar 按字母序加载,agentscope-2... 排在 agentscope-extensions-agui... 之前,导致旧版类被优先加载。最终表现为:jar 内 class 文件已更新,但运行时行为仍是旧版逻辑。
I inspected the current POMs and confirmed that the base Spring Boot starter still depends on the shaded io.agentscope:agentscope artifact.
I propose to:
Reproduce the duplicate-class problem in a minimal packaged Spring Boot application.
Adjust starter dependencies to use the appropriate ordinary modules.
Add dependency, packaged-class, and auto-configuration regression checks.
I have not yet run the reproduction. Before implementation, could you confirm which provider/extension modules the base starter should continue to supply, so existing functionality is preserved?
I checked related PRs and did not find one covering this dependency fix. Could you assign this issue to me if the scope looks good? Thanks!
I inspected the current POMs and confirmed that the base Spring Boot starter still depends on the shaded io.agentscope:agentscope artifact.
I propose to:
Reproduce the duplicate-class problem in a minimal packaged Spring Boot application.
Adjust starter dependencies to use the appropriate ordinary modules.
Add dependency, packaged-class, and auto-configuration regression checks.
I have not yet run the reproduction. Before implementation, could you confirm which provider/extension modules the base starter should continue to supply, so existing functionality is preserved?
I checked related PRs and did not find one covering this dependency fix. Could you assign this issue to me if the scope looks good? Thanks!
Hi, I'd like to work on this issue.
I inspected the current POMs and confirmed that the base Spring Boot starter still depends on the shaded io.agentscope:agentscope artifact.
I propose to:
Reproduce the duplicate-class problem in a minimal packaged Spring Boot application.
Adjust starter dependencies to use the appropriate ordinary modules.
Add dependency, packaged-class, and auto-configuration regression checks.
I have not yet run the reproduction. Before implementation, could you confirm which provider/extension modules the base starter should continue to supply, so existing functionality is preserved?
I checked related PRs and did not find one covering this dependency fix. Could you assign this issue to me if the scope looks good? Thanks!
Thanks for looking into this issue! Your proposed solution sounds like the right approach to fix this dependency conflict.
To answer your question, the agentscope-spring-boot-starter should only include the core modules that are essential for any AgentScope application to run. It should not depend on the agentscope-all aggregate package or any specific, optional extension modules (like agentscope-extensions-agui).
Users who need specific extensions should explicitly add them as dependencies in their own projects. This will prevent the classpath duplication issue you've identified.
agentscope-distribution/agentscope-all/pom.xml:29 publishes the aggregate as io.agentscope:agentscope, and its maven-shade-plugin execution (lines 456-476) flattens io.agentscope:agentscope-coreplus every io.agentscope:agentscope-extensions-* (including agentscope-extensions-agui, line 71) into that single jar.
agentscope-extensions/agentscope-spring-boot-starters/agentscope-spring-boot-starter/pom.xml:47-51 declares a non-optional, non-provided compile dependency on io.agentscope:agentscope.
So any project that adds the starter and an explicit extension module gets two copies of the same fully-qualified classes; in a Spring Boot fat jar BOOT-INF/lib/agentscope-<v>.jar sorts before agentscope-extensions-agui-<v>.jar, so the shaded copy wins at runtime.
Impact: code from the explicitly pinned extension module is silently ignored — the reported "class file updated, old logic still running" symptom. Severity: high for starter users combining extension modules.
Suggested fix (repo decision needed): make agentscope-all stop shading the extension modules it does not own, and/or mark the io.agentscope:agentscope dependency in the starters as provided/optional so users depend on concrete modules. At minimum the build should fail (or at least warn) when a shaded class is also shipped by an individual module, and the shaded artifact content should be pinned to the same commit as the module releases.
This one touches the packaging strategy for all starters, so we are flagging it for maintainer input rather than auto-generating a PR.
Activity
ZYZ666-RGB commentedon Sep 10, 2026
Hi, I'd like to work on this issue.
I inspected the current POMs and confirmed that the base Spring Boot starter still depends on the shaded
io.agentscope:agentscopeartifact.I propose to:
I have not yet run the reproduction. Before implementation, could you confirm which provider/extension modules the base starter should continue to supply, so existing functionality is preserved?
I checked related PRs and did not find one covering this dependency fix. Could you assign this issue to me if the scope looks good? Thanks!
wxh2010zd commentedon Sep 11, 2026
Thanks for looking into this issue! Your proposed solution sounds like the right approach to fix this dependency conflict.
To answer your question, the agentscope-spring-boot-starter should only include the core modules that are essential for any AgentScope application to run. It should not depend on the agentscope-all aggregate package or any specific, optional extension modules (like agentscope-extensions-agui).
Users who need specific extensions should explicitly add them as dependencies in their own projects. This will prevent the classpath duplication issue you've identified.
oss-maintainer commentedon Sep 11, 2026
Issue Evaluation
Category:
bug| Status: ConfirmedVerified against
main@c5db8f7.Root cause:
agentscope-distribution/agentscope-all/pom.xml:29publishes the aggregate asio.agentscope:agentscope, and itsmaven-shade-pluginexecution (lines 456-476) flattensio.agentscope:agentscope-coreplus everyio.agentscope:agentscope-extensions-*(includingagentscope-extensions-agui, line 71) into that single jar.agentscope-extensions/agentscope-spring-boot-starters/agentscope-spring-boot-starter/pom.xml:47-51declares a non-optional, non-provided compile dependency onio.agentscope:agentscope.So any project that adds the starter and an explicit extension module gets two copies of the same fully-qualified classes; in a Spring Boot fat jar
BOOT-INF/lib/agentscope-<v>.jarsorts beforeagentscope-extensions-agui-<v>.jar, so the shaded copy wins at runtime.Impact: code from the explicitly pinned extension module is silently ignored — the reported "class file updated, old logic still running" symptom. Severity: high for starter users combining extension modules.
Suggested fix (repo decision needed): make
agentscope-allstop shading the extension modules it does not own, and/or mark theio.agentscope:agentscopedependency in the starters asprovided/optionalso users depend on concrete modules. At minimum the build should fail (or at least warn) when a shaded class is also shipped by an individual module, and the shaded artifact content should be pinned to the same commit as the module releases.This one touches the packaging strategy for all starters, so we are flagging it for maintainer input rather than auto-generating a PR.
Automated evaluation by github-manager-bot
fix(spring-boot): use modular core and AG-UI dependencies (#3156)