[ https://jira.codehaus.org/browse/MECLIPSE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yi Xiao updated MECLIPSE-700: ----------------------------- Attachment: ingnoreTheReourceOutofProject.patch The problem can be recreated by build the project: http://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.jee.v21.jaxbmodel And first should apply a patch(outOfIndexWhenProcessResources.patch) which I have attached here. I think the root cause is the maven's pom.xml has the resource element refer to the resources outside of the maven project. Maybe, we have two way to resolve the problem: 1 Just ignore the resource(just like I did the path ingnoreTheReourceOutofProject.patch) 2 Modify the .project file add element like: <linkedResources> <link> <name>resources</name> <type>2</type> <location>F:/gep/branches/2.1.8/resources</location> </link> </linkedResources> And set the info in .classpath like: <classpathentry excluding="*/*.java" kind="src" path="resources"/> > maven-eclipse-plugin 2.9-SNAPSHOT generates .classpath file with error > ---------------------------------------------------------------------- > > Key: MECLIPSE-700 > URL: https://jira.codehaus.org/browse/MECLIPSE-700 > Project: Maven 2.x Eclipse Plugin > Issue Type: Bug > Affects Versions: 2.9 > Environment: win7 64bit; maven2.2.1; Eclipse-indigoSR1; jdk oracle > 1.6.0_25 > Reporter: Yi Xiao > Attachments: ingnoreTheReourceOutofProject.patch, > outOfIndexWhenProcessResources.patch > > > I convert a maven project to eclipse project using 2.9-SNAPSHOT. the > .classpath file like this: > <?xml version="1.0" encoding="UTF-8"?> > <classpath> > <classpathentry kind="src" path="src/test/java" > output="target/test-classes" including="**/*.java"/> > <classpathentry kind="src" path="src/test/resources" > output="target/test-classes" excluding="**/*.java"/> > <classpathentry kind="src" path="src/main" including="**/*.java"/> > <classpathentry kind="src" path="F:/gep/branches/2.1.8/plugins" > including="about.html" excluding="**/*.java"/> > <classpathentry kind="src" path="." including="LICENSE.txt|NOTICE.txt" > excluding="**/*.java"/> > <classpathentry kind="src" path="F:/gep/branches/2.1.8" > including="PLUGIN_RELEASE-NOTES-2.1.8.txt" excluding="**/*.java"/> > ... > </classpath> > And the Markers view in eclipse has some error infos: > Project 'org.apache.geronimo.jee.v21.jaxbmodel' is missing required source > folder: 'F:/gep/branches/2.1.8' > Project 'org.apache.geronimo.jee.v21.jaxbmodel' is missing required source > folder: 'F:/gep/branches/2.1.8/plugins' -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira