简体   繁体   English

Websphere Liberty上部署的项目中未包含Maven依赖项

[英]Maven dependencies not included in project deployed on Websphere Liberty

I am using Eclipse Luna, Maven 3 and Websphere Liberty 8.5.5. 我正在使用Eclipse Luna,Maven 3和Websphere Liberty 8.5.5。 I have added websphere liberty server in eclipse. 我在Eclipse中添加了Websphere自由服务器。 The EAR/WAR project deployed in liberty does not include maven dependencies in WEB-INF/lib of WAR. 自由部署的EAR / WAR项目在WAR的WEB-INF / lib中不包含Maven依赖项。 If I export EAR or WAR the exported file has all the dependencies included. 如果我出口EAR或WAR导出文件具有所有依赖关系包含在内。 What could be going wrong? 可能出什么问题了?

在Eclipse中使用Maven项目时,请确保在“ Project properties > Deployment Assembly中正确配置了Maven依赖项,以将其部署到WEB-INF/lib文件夹。

Gas has the right answer. 煤气有正确的答案。 Just here a screenshot: 截图如下:

项目的Eclipse属性

If the Maven dependencies are missingf click then "Java Build Path Entiries" and the select "Maven Dependencies" 如果缺少Maven依赖关系,请单击“ Java Build Path Entiries”,然后选择“ Maven Dependencies”

In my workspace this setting will be lost when I do Maven/Update Project. 在我的工作区中,当我执行Maven / Update Project时,此设置将丢失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM