projects
-ProjA
-src/main/java/com/company/One.java
-ProjB
-src/main/java/com/company2/Three.java
-src/main/groovy/com/company2/Two.groovy
ProjB/build.gradle
apply plugin: 'groovy'
apply plugin: 'eclipse-wtp'
dependencies {
compile project(':projects:ProjA')
compile 'org.codehaus.groovy:groovy-all:2.1.9'
ProjB/Two.groovy
One object=new One();
In eclipse,if I run ProjB (Run -> Run On Server ->tomcat), I get
ClassNotFoundException: com.company.One
Two.groovy is able to use Three.java, but not One.java
Update:Just found out that it has nothing to do with groovy Even Three.java is not able to access One.java(different project) Eclipse code completion is working,but doesn't work when 'Run on server' ProjA just have some come pojo's
Eclipse dependent projects not copied to WTP deployment
An Eclipse WTP project that depends on other projects won't deploy those projects' dependencies unless they are WTP projects as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.