You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2004/09/02 17:07:00 UTC

Réf. : for jar and war

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" <ch...@alloy.com>
02/09/2004 16:51
Veuillez répondre à "Maven Users List"

 
        Pour :  Maven Users List <us...@maven.apache.org>
        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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org