发布一个网络应用程序到玻璃鱼与日食juno和maven集成时丢失罐子 [英] missing jars when publishing a web app to glassfish with eclipse juno and maven integration
问题描述
当我通过'mvn package'命令创建一个war文件并将其部署到glassfish时,
的war文件工作正常。
然而当我从eclipse的服务器视图中发布一个web应用程序到一个glassfish时,
的Web应用程序失败。
我猜这个失败的原因是从eclipse发布没有正确配置
从我的maven存储库获取jar,然后在eclipseApps // WEB-INF / lib目录中的jar文件丢失。 p>
发布一个web应用程序到glassfish时,可以配置eclipse使用maven配置吗?
谢谢。 p>
我发现答案
反正我通过添加以下行属性>部署程序集:/ target / myapp解决了这个问题/ WEB-INF / lib - > WEB-INF / lib
Eclipse中的Glassfish部署Helios SR2失败
谢谢。
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.
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.
这篇关于发布一个网络应用程序到玻璃鱼与日食juno和maven集成时丢失罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!