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

Maven dependencies not copied to WEB-INF/lib

Ouverte
#515 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
117
Forks
49
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Import the gwt-devmode-server project into Eclipse, enable IMPL_CARGO_EMBEDDED_TOMCAT9, and run DevMode on GWT-DevMode-server.POC.javax.web with the named DevModeServerLauncher. Inspect target/gwt-maven-plugin/WEB-INF/lib and the Maven dependency-copying path; done means both spring-webmvc.jar and spring-web.jar are present and loaded by the webapp classloader.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
build-system
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.