Eclipse (Springsource Tool Suite 2.3.1) can't resolve dependencies for classes in the same package
Posted
by Steve
on Stack Overflow
See other posts from Stack Overflow
or by Steve
Published on 2010-03-16T04:31:24Z
Indexed on
2010/03/16
5:26 UTC
Read the original article
Hit count: 412
This started happening when I upgraded my Springsource Toolsuite from 2.3 to 2.3.1. Essentially whenever I do anything, such as open a file, change a file, etc, I have to do a clean. Everything works fine when I do mvn
commands on the command line, which leads me to believe that Eclipse is looking in the wrong place for compiled code or something along those lines, although that is entirely superstitious at this point.
Example: I make a change to com.foo.mypackage.MyClass
. Suddenly a bunch of tests that excercise MyClass
get the red x - for class not found!
In src/main/test
:
com.foo.DbUnitTest
com.foo.mypackage.FooTest extends DbUnitTest
DbUnitTest gets a class not found. I do a clean, and everything is fine. I touch something, and it breaks again :(. I don't really know where to begin on how to troubleshoot this.
© Stack Overflow or respective owner