This is reported at http://jira.codehaus.org/browse/MNGECLIPSE-823
regards, Eugene Stian Soiland-Reyes wrote:
I've encountered a problem with m2eclipse 0.9.6 in Eclipse 3.4.1 (at least in Windows 7, but I have experienced this problem also in OS X). If you have a project with Workspace resolution, and that project also has files in src/main/resources or src/test/resources - if you open or close one of the resolved projects, m2eclipse will update the dependencies so that it will be the .jar from .m2/repository that is included instead of the Eclipse project. However, as this happens, for some reason the 'compiled' (ie. copied) files from src/*/resources disappear from the target/classes or target/test-classes directories: PS C:\Users\stain\workspace\sdfsdfs\target> dir *classes*\* Directory: C:\Users\stain\workspace\sdfsdfs\target\classes Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 1/15/2009 1:59 PM 891 ResourceFinder.class Directory: C:\Users\stain\workspace\sdfsdfs\target\test-classes Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 1/15/2009 1:59 PM 914 ResourceFinderTest.class If you do a Project->Clean or a Maven install the resource files re-appear - but if you don't then unit tests and applications will stop working because they can't find their files. Attached is resourcePathProblem.zip that includes a unit test that works fine if run with Run->Maven->Install on the project "sdfsdfs" - and initially also from Run->Junit tests in Eclipse, but not if you then open or close the resolved project "adsd". You can also run the main() method of ResourceFinder - which will print out null when the files are gone, and something like file:/C:/Users/stain/workspace/sdfsdfs/target/classes/somefile.txt if it's there.--------------------------------------------------------------------------------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
