I had the same problem for projects that I have 'moved' from ant to maven (2). The test sources where in the same src directory as the main sources (I only had one src path). After creating 2 source trees (according to mavens best practice) it works like a charm.