Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse not updating dependency JARs in web deployment

Tags:

java

eclipse

In eclipse, I have a project, say ProjectA, which is a dynamic web module. ProjectB is a library used by ProjectA. I have added ProjectB to ProjectA's web deployment assembly, with the deploy path /WEB-INF/lib/ProjectB.jar.

When I deploy ProjectA onto a Tomcat v6.0 server, everything works fine. However, if I make any changes to ProjectB, no matter what I do, these changes don't seem to be picked up by the deployment.

I have tried the following options Project->Clean... from the main menu, and Clean Module Work Directory... from the server's context menu, but neither works. The only thing that seems to work is deleting the Project, then re-importing it into Eclipse.

Any ideas would be greatly appreciated!

Thanks

like image 591
Matt Dunn Avatar asked Nov 13 '22 23:11

Matt Dunn


1 Answers

Have you checked that Eclipse recognizes ProjectB.jar as a dependency from Project->Properties->Java Build Path? In general, it should show up there. I'm not sure about your exact situation though.

like image 160
KyleM Avatar answered Jan 01 '23 09:01

KyleM