gwt-plugins / gwt-plugins/gwt-eclipse-plugin

Maven dependencies not copied to WEB-INF/lib

未关闭
#515 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
117
派生
49
PR 合并指标
30 天内没有已合并 PR

描述

Continuing from https://github.com/gwtproject/gwt/issues/10056

Running DevMode on a GWT module that carries modules with similar names does not copy all JARs to `WEB-INF/lib`

for example: `spring-webmvc.jar` is copied but `spring-web.jar` is not

Checkout and import https://bitbucket.org/upperlimit-public/gwt-devmode-server/src/main into an Eclipse Workspace.

I am using Eclipse 2025-03 but any relatively recent version should reproduce the problem.

Run DevMode on module `GWT-DevMode-server.POC.javax.web` with program argument `-server net.upperlimit.tools.GWT.DevMode.server.impl.Cargo.embedded.Tomcat9.javax.DevModeServerLauncher` after enabling profile named `IMPL_CARGO_EMBEDDED_TOMCAT9`

Under `target/gwt-maven-plugin/WEB-INF/lib` you will only see `spring-webmvc.jar` present but not `spring-web.jar`

This is important because the components in the missing JAR are loaded by the parent DevMode classloader instead of the webapp classloader, leading to a chain of runtime problems which are impossible to resolve.

贡献指南

这个仓库没有索引到贡献指南

调研方向

将 gwt-devmode-server 项目导入 Eclipse,启用 IMPL_CARGO_EMBEDDED_TOMCAT9,并使用指定的 DevModeServerLauncher 在 GWT-DevMode-server.POC.javax.web 上运行 DevMode。检查 target/gwt-maven-plugin/WEB-INF/lib 以及 Maven 复制依赖项的路径;当 spring-webmvc.jar 和 spring-web.jar 都存在并由 webapp classloader 加载时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
build-system
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。