Maven dependencies not visible in WEB-INF/lib

后端 未结 9 1280
南方客
南方客 2020-11-28 19:35

I\'m having this weird problem making my project Maven-based. I created a new Maven project in Eclipse and enabled the Dynamic Web facets. But during runtim

相关标签:
9条回答
  • 2020-11-28 20:04

    Right-click project > Maven > Update Maven Project > OK fixed it for me

    0 讨论(0)
  • 2020-11-28 20:04

    Right-click project -> Deployment Assembly: See if you have the Maven Dependencies and all others in there. If not, Right-Click project -> Maven -> Enable Workspace Resolution

    (maybe then Maven -> Update Project, but then look again into "Deployment Assembly" and see what You've got.) this solved it (finally!) for me.

    0 讨论(0)
  • 2020-11-28 20:04

    On Eclipse, select your Web Project -> right click -> Properties -> Deployment Assembly -> Add -> Java Build Path Entries -> Maven Dependencies

    With this steps, maven libraries will be included on WEB-INF/lib when full publish.

    0 讨论(0)
  • 2020-11-28 20:08

    you want to use the copy-dependencies plugin

    see this post and the docs

    0 讨论(0)
  • 2020-11-28 20:10

    I just did maven -> update project worked for me.

    0 讨论(0)
  • 2020-11-28 20:13

    Check the Deployment Assembly property of the project. I have seen some mvn eclipse:eclipse generated Eclipse projects sometimes have the assets being deployed to the wrong location. From what I can remember the new Deployment Assembly had some issues with earlier versions of Eclipse 3.6 (Helios).

    0 讨论(0)
提交回复
热议问题