发布一个网络应用程序到玻璃鱼与日食juno和maven集成时丢失罐子 [英] missing jars when publishing a web app to glassfish with eclipse juno and maven integration

查看:195
本文介绍了发布一个网络应用程序到玻璃鱼与日食juno和maven集成时丢失罐子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse juno与GlassFish Server开源版本3(java EE6),m2e和maven 3.0.4。
当我通过'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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆