简体   繁体   English

m2eclipse + wtp + jboss部署错误的文件

[英]m2eclipse + wtp + jboss deploying the wrong file

I'm using maven2 with eclipse for an ear project with multiple war, ejb and jar files. 我正在将带有eclipse的maven2用于具有多个war,ejb和jar文件的耳朵项目。 My application server is JBoss 4.2.3. 我的应用程序服务器是JBoss 4.2.3。

Using the maven in command line i can obtain a correct packaging for my ear. 在命令行中使用Maven,我可以获得正确的包装。 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. 因此,我决定尝试使用wtp进行m2eclipse和m2e-extra集成,但是我陷入了困境。

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. 看起来,wtp正在产生耳朵(我找不到方法或位置),但我知道它的结果最终存储在文件夹(.metadata / .plugins / org.eclipse.wst.server.core / tmp0)中由jboss323.xml脚本打包。

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. 问题是,我不知道WTP如何生成此文件夹(tmp0)的结果,但我知道它不是来自我的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. 提示之一是,我有两个jar是我的pom引用的内部项目,它们由maven命令行进行了核心打包,但WTP输出缺少。

I've tryed many different configurations and none of them proved to make it use my pom.xml to generate the output to WTP. 我尝试了许多不同的配置,但没有一个被证明可以使它使用pom.xml生成到WTP的输出。

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. 现在,在Eclipse Indigo中使用m2e可以解决问题。 It seems was a bug only fixed in this version. 似乎是仅在此版本中修复的错误。

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

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