m2eclipse + wtp + jboss部署错误的文件
我使用 maven2 和 eclipse 来创建一个包含多个 war、ejb 和 jar 文件的 Ear 项目。 我的应用服务器是JBoss 4.2.3。
在命令行中使用 Maven,我可以获得适合我耳朵的正确包装。它在我的测试和生产服务器中运行没有问题。但是在日常开发中通过命令行运行是非常麻烦的。因此,我决定尝试 m2eclipse 以及 m2e-extra 与 wtp 的集成,但我陷入了困境。
看起来,wtp 正在生成一个耳朵(我无法找到如何或在哪里),但我知道它的结果最终会出现在一个文件夹(.metadata/.plugins/org.eclipse.wst.server.core/tmp0)中由jboss323.xml脚本打包。
问题是,我不知道 WTP 如何生成此文件夹 (tmp0) 的结果,但我知道它不是来自我的 pom.xml。提示之一是我有两个 jars,它们是我的 pom 引用的内部项目,它们是由 maven 命令行正确打包的,但 WTP 输出缺少它们。
我尝试了许多不同的配置,但没有一个被证明可以使其使用我的 pom.xml 生成 WTP 的输出。
I'm using maven2 with eclipse for an ear project with multiple war, ejb and jar files.
My application server is JBoss 4.2.3.
Using the maven in command line i can obtain a correct packaging for my ear. It runs in my test and production severs without a problem. But running it by command line is very troublesome in everyday development. So, I decide to give a try to m2eclipse and the m2e-extra integration with wtp but I got stuck.
As it seems, wtp is generating a ear (i can't finde how or where) but I know it's results end up in a folder (.metadata/.plugins/org.eclipse.wst.server.core/tmp0) this result is packaged by the jboss323.xml script.
The thing is, I don't know how WTP is generating the results of this folder (tmp0) but i know it is not from my pom.xml. One of the hints is that I have two jars that are internal projects referenced by my pom, they are corectly packaged by maven command line, but missing by the WTP output.
I've tryed many different configurations and none of them proved to make it use my pom.xml to generate the output to WTP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我尝试了很多替代方案,但总是留下一些刺耳的声音。
现在,有了 Eclipse Indigo 中的 m2e,问题就得到了解决。
看来这是一个仅在此版本中修复的错误。
So I've tryed many alternatives and it kept leaving some jar out of the ear.
Now with m2e in eclipse Indigo the problem was kind of solved.
It seems was a bug only fixed in this version.