简体   繁体   English

Gradle Eclipse WTP插件

[英]Gradle Eclipse WTP plugin

I have, Eclipse multi-project, Gradle based, Tomcat 7 我有,Eclipse多项目,基于Gradle,Tomcat 7

I have WEB app, uses Gradle WTP plugin: eclipse-wtp 我有WEB应用程序,使用Gradle WTP插件:eclipse-wtp

I have added compile project dependencies: compile project(':common') 我添加了编译项目依赖项:编译项目(':common')

When I debug, debugger gives ClassNotFoundException exception, so for some reason Tomcat cannot see dependencies from 'common' project. 当我调试时,调试器会给出ClassNotFoundException异常,因此出于某些原因,Tomcat无法看到来自“常见”项目的依赖项。

Any suggestions how I can fix/workaround the issue? 关于如何解决/解决问题的任何建议?

This this is well known issue about WTP plugin, and probably not fixed yet... It is required that all projects have WPT plugin applied. 这是有关WTP插件的众所周知的问题,可能尚未解决。。。需要所有项目都应用WPT插件。 Gradel script should contain "apply plugin: 'eclipse-wtp'" Gradel脚本应包含“应用插件:'eclipse-wtp'”

This way Eclipse will correctly transfer dependencies. 这样,Eclipse将正确传输依赖关系。

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

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