Actually, I want, in my war, to exclude all files that are for Images, Javascript or purely static Html content. All that files are in a dedicated directory under the web one (which is the root of my web app that I configure as maven.war.src). Whatever the value I give to maven.war.src.excludes relative or not to the maven.war.src configuration key, I am not able to exclude any file from the generated packaged war.
We do this locally by storing the "web" resources in a separate directory from the "webapp" resources. (Where the "web" resources are exactly the ones you want to exclude).
We use maven.xml preGoals to merge the two pieces together for running on a local appserver. They are never merged for "war" however. We also use a homegrown maven goal for actually starting tomcat because I wasn't able to get the webapp plugin working when we first got started using Maven. We also use these pre-goals because we wanted to apply ANT filtering to certain config files to manage the differences.
I could share some bits of maven.xml if they are helpful, but it ends up having a fair bit to do with how we have things setup here, which might not appeal to everyone.
But in my local copy of the plugin.jelly, it appears as if those properties are consulted:
~/.maven/plugins/maven-war-plugin-1.4/plugin.jelly, lines 93-100
<j:if test="${webSourcesPresent == 'true'}">
<ant:copy todir="${maven.war.webapp.dir}">
<ant:fileset dir="${maven.war.src}"
includes="${maven.war.src.includes}"
excludes="${maven.war.src.excludes}">
</ant:fileset>
</ant:copy>
</j:if>Are we looking at the same version of the plugin.jelly script?
Joe
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining."
-- Jef Raskin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
