I see a simple solution for your problem :
make 2 projects one for the jar that don't include any resources
And one for the war that incule your resource and have your jar project as 
dependancy

http://wiki.codehaus.org/maven/WhyYouCantCreateMultipleArtifactsInOneProject

Nicolas





"Charles N. Harvey III" <[EMAIL PROTECTED]>
02/09/2004 16:51
Veuillez r�pondre � "Maven Users List"

 
        Pour :  Maven Users List <[EMAIL PROTECTED]>
        cc : 
        Objet : <includes> for jar and war


Hello.
When I create a webapp with my project, I want it to include all
of the files in my "src/main/resources" directory.  But when I
make a jar out of just the code, I do NOT want those files to
be included.  Is there a way to set this up in the project.xml?
Because when I have this:

            <resource> 
                <directory>src/main/resources</directory>
                <excludes>
                    <exclude>**/*.properties</exclude>
                    <exclude>**/*.xml</exclude>
                </excludes>
           </resource>

The files are not included in either.
But when I do this:

            <resource> 
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
           </resource>

The files are included in both.  Is there a way for me to be picky?

Thanks a lot.


Charlie



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





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

Reply via email to