Eclipse依赖项目不会复制到WTP部署 [英] Eclipse dependent projects not copied to WTP deployment
问题描述
随着Gradle并运行依赖项目的jar文件不再被复制到../WEB-INF/lib目录中。我不相信这与毕业有什么关系,因为它完全不在后面,但它是不同的,所以我提到它。独立战争文件的建立与gradle jettyRun一样完美。
如果我将项目方面的实用程序模块添加到Eclipse中的依赖项目,那么它将工作。不过,我不记得这是从来没有完成的。好吧,这也使毕业后的eclipse项目的生成变得非常复杂!
我可以和它一起生活,但是想知道是否有人知道它是否具有
谢谢 - 版本:eclipse Indigo SR2,Java 1.7,Gradle 1.2
我也遇到这个问题:依赖于其他项目的Eclipse WTP项目将不会部署这些项目的依赖关系,除非是WTP项目还有,这是一个理想的解决方案,但是在我自己的构建脚本中,我使用 eclipse-wtp
插件,而不是 eclipse
插件:
allprojects {
apply plugin:'eclipse-wtp'
}
与此有关的几个错误: GRADLE-1880 和STS-2192 。
Before we started using Gradle, a multi-project (10-12) development effort within Eclipse successfully deployed, via a WTP project, to one of the internal Tomcat 7 servers. We find this very useful for development.
With Gradle up and running the dependent project's jar files are no longer being copied to the ../WEB-INF/lib directory. I don't believe this has anything to do with gradle as it is completely out of the picture later on, but it is different, so I am mentioning it. Building the standalone war file works perfectly as does "gradle jettyRun".
If I add the project facet "Utility Module" to the dependent projects within Eclipse then it works. However, I don't recall that this was ever done initially. Ok, this also really complicates the generation of the eclipse projects from gradle as well!
I can live with it, but was wondering if anyone knew if it has to be this way or if there is some alternative.
Thanks - versions: eclipse Indigo SR2, Java 1.7, Gradle 1.2
I've run into this problem as well: An Eclipse WTP project that depends on other projects won't deploy those projects' dependencies unless they are WTP projects as well.
This is far from an ideal solution, but in my own build scripts, I work around this by using the eclipse-wtp
plugin instead of the eclipse
plugin:
allprojects {
apply plugin: 'eclipse-wtp'
}
There are a couple of bugs related to this: GRADLE-1880 and STS-2192.
这篇关于Eclipse依赖项目不会复制到WTP部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!