Re: Resources in source folder
On Thu, Nov 26, 2009 at 5:57 PM, Martin Seebach martin.seeb...@assursoft.com wrote: Hi, Thanks for the response. 2009/11/26 Barrie Treloar baerr...@gmail.com Did you check the plugin's documentation? http://maven.apache.org/plugins/maven-eclipse-plugin/ I tried to look for it, but I guess I focused too much on the resources plugin, rather than the eclipse plugin. See the example on specifying source path inclusions and exclusions for more details on how to change this behavior. I tried that, but I can't get it to change. My plugin section looks like this now: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.6/version configuration downloadSourcestrue/downloadSources sourceExcludes sourceExclude**/.svn/**/sourceExclude /sourceExcludes sourceIncludes sourceInclude**/*.html/sourceInclude sourceInclude**/*.css/sourceInclude sourceInclude**/*.png/sourceInclude sourceInclude**/*.gif/sourceInclude /sourceIncludes /configuration /plugin but the classpathentry remains the same. I tried to run it with -X, but couldn't find any references to this in the output. Hmm. I dont know. mvn -X eclipse:eclipse wont print out that it is including/excluding these values as I can see no debugs, but they should be listed in the configuration details of the plugin. Actually, I think 2.6 didn't support this feature. Yes, http://jira.codehaus.org/browse/MECLIPSE-104 was added in 2.7 - which is the latest release. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Resources in source folder
Have you tried: mvn eclipse:m2eclipse. Does it exibit the same behaviour. John 2009/11/20 Martin Seebach martin.seeb...@assursoft.com 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/ I've tried various manglings of the resources section of the pom.xml file, but I can't get it to do anything different. Also, mvn resources:resource works as expected, so I'm suspecting that I'm looking in the wrong place. How do I get Maven to output the right classpathentry ? Thanks, Martin Seebach
Re: Resources in source folder
On Sat, Nov 21, 2009 at 12:45 AM, Martin Seebach martin.seeb...@assursoft.com 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Resources in source folder
Hi, Thanks for the response. 2009/11/26 Barrie Treloar baerr...@gmail.com Did you check the plugin's documentation? http://maven.apache.org/plugins/maven-eclipse-plugin/ I tried to look for it, but I guess I focused too much on the resources plugin, rather than the eclipse plugin. See the example on specifying source path inclusions and exclusions for more details on how to change this behavior. I tried that, but I can't get it to change. My plugin section looks like this now: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.6/version configuration downloadSourcestrue/downloadSources sourceExcludes sourceExclude**/.svn/**/sourceExclude /sourceExcludes sourceIncludes sourceInclude**/*.html/sourceInclude sourceInclude**/*.css/sourceInclude sourceInclude**/*.png/sourceInclude sourceInclude**/*.gif/sourceInclude /sourceIncludes /configuration /plugin but the classpathentry remains the same. I tried to run it with -X, but couldn't find any references to this in the output. Thanks, Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Resources in source folder
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/ I've tried various manglings of the resources section of the pom.xml file, but I can't get it to do anything different. Also, mvn resources:resource works as expected, so I'm suspecting that I'm looking in the wrong place. How do I get Maven to output the right classpathentry ? Thanks, Martin Seebach