On Sat, Nov 21, 2009 at 12:45 AM, Martin Seebach <[email protected]> wrote: > Hi, > > I have an Eclipse-project that are managed with Maven2. This project depends > on resource-files in the source-folders (HTML-files, it's a Wicket project), > but recently Eclipse stopped copying those files to the target > automatically. Project properties->build path->source folders for the > relevant source folder is set to "Included: **/*.java" and "Excluded: > (None)", and if I clear included to "(all)" it works -- however, this is > overwritten when I run "mvn eclipse:eclipse". > > The change corresponds to > <classpathentry kind="src" path="src/main/java" including="**/*.java"/> > to > <classpathentry kind="src" path="src/main/java"/>
Did you check the plugin's documentation? http://maven.apache.org/plugins/maven-eclipse-plugin/ This change has bitten a lot of people and the second paragraph says: Note: Starting at version 2.6, by default, the generated .classpath now includes "**/*.java" for source directories and excludes "**/*.java" for resource directories. See the example on specifying source path inclusions and exclusions for more details on how to change this behavior. Which provides a link to http://maven.apache.org/plugins/maven-eclipse-plugin/examples/specifying-source-path-inclusions-and-exclusions.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
