Hi All,

First, thanks for the most excellent tool set, framework, etc. that Maven 
provides. Although I'm just starting to get a handle on Maven basics, its 
power as a build tool and its potential to provide a "lingua franca" for 
inter/intra-project development is immediately apparent to me.

I've been trying, unsuccessfully, to use the war plugin to build a standard 
.war file that does not include my java source files in the runtime .war. 
Following the war plugin documentation I used the following snippet in 
~/myproject/project.properties:
...
#I know this is the default (or is it?!)
maven.war.src=${maven.src.dir}/webapp/WEB-INF/classes
maven.war.classes.includes=**
maven.war.classes.excludes=**/*.java
...

This builds a war file as expected, but still includes all .java files.

I then tried adding the following to ~/myproject/project.xml:
...
<resources>
  <excludes>
    <exclude>**/*.java</exclude>
  </excludes>
  <includes>
    <include>**</include>
  </includes>
</resources>
...
Also, to no avail. I've even tried setting this pattern directly in 
$MAVEN_HOME/plugins/maven-war-plugin-1.1/plugin.properties.

I can see how to solve this issue (I think?!) by writing a custom pre-goal or 
by overriding the war goal in maven.xml; however, given the fact that, based 
on the documentation (and some of the list postings), this pattern filtering 
should already be provided, and that the war goal seems to be of fundamental 
importance to most Maven projects, I'd like to make sure I'm on the right 
track.  

Soo, is this a bug or a feature? If it's the latter, what  --if anything, 
considering my complete and total newbie status, -- can I do to help? I am 
very excited about Maven and once I'm comfortable using it, would like to 
contribute in some small (or large) way.

I am trying this with both b7 and the latest CVS snapshots on Linux/RH-7.3. 
Any insight, advice, etc. would be much appreciated!

Thanks again for Maven!!

Matt
-- 
Matthew Lipper
[EMAIL PROTECTED]
http://www.digitalclash.com
"Not Sucking Since At Least 1999"


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to