0
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

yodhevauhe
  • 765
  • 3
  • 11
  • 33

1 Answers1

0

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.

Community
  • 1
  • 1
yodhevauhe
  • 765
  • 3
  • 11
  • 33