missing jars when publishing a web app to glassfish with eclipse juno and maven integration

我的未来我决定 提交于 2019-12-12 04:09:04

问题


I use eclipse juno with GlassFish Server Open Source Edition 3(java EE6), m2e and maven 3.0.4. When I create a war file by 'mvn package' command and deploy it to a glassfish, the war file works just fine.

However, when I publish a web app to a glassfish from the server view of eclipse, the web app fails. I guess the reason of this failure is that publishing from eclipse is not configured correctly to get jars from my maven repository and then jar files in eclipseApps//WEB-INF/lib directory are missing.

Can I configure eclipse to use a maven configuration when publishing a web app to a glassfish?

Thanks.


回答1:


I found the answer "anyway I solved the issue by adding following row Properties > Deployment Assembly: /target/myapp/WEB-INF/lib -> WEB-INF/lib" in Glassfish Deployment out of Eclipse Helios SR2 fails

Thanks.



来源:https://stackoverflow.com/questions/12005101/missing-jars-when-publishing-a-web-app-to-glassfish-with-eclipse-juno-and-maven

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!