Eclipse gets this correct ‘out of the box’, when running a unit test – you want to be able to follow a test failure into the source code of the actual test with a click or keyboard shortcut. Netbeans, with pre-existing projects managed with Maven, doesn’t seem to do that. There is a fix on the wiki I need to give a shot.