You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Karan-Sahni (Contractor)" <KS...@OfficeDepot.com> on 2004/08/13 15:30:58 UTC

.property file in source folder being ignored by war:install

I have a 'resources' package in my WAR source folder with a applicationResources.properties file. When I execute the war:install goal, all the java files are compiled and the respective class files are placed in WEB-INF/classes in the war. But the .property file is ignored. How can I get the property file to go to WEB/INF/classes too?


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


RE: .property file in source folder being ignored by war:install

Posted by Carlos Sanchez <ap...@carlos.cousas.net>.
Hi,

You should store resources in another folder, not java source folder. Then
use a resources tag in POM.

        <resources>
            <resource>
                <directory>${basedir}/src/conf</directory>
                <includes>
                    <include>**/**</include>
                </includes>
            </resource>
        </resources> 


Regards

Carlos Sanchez
A Coruña, Spain

Oness Project
http://oness.sourceforge.net


> -----Original Message-----
> From: Karan-Sahni (Contractor) [mailto:KSahni@OfficeDepot.com] 
> Sent: Friday, August 13, 2004 3:31 PM
> To: Maven Users List
> Subject: .property file in source folder being ignored by war:install
> 
> I have a 'resources' package in my WAR source folder with a 
> applicationResources.properties file. When I execute the 
> war:install goal, all the java files are compiled and the 
> respective class files are placed in WEB-INF/classes in the 
> war. But the .property file is ignored. How can I get the 
> property file to go to WEB/INF/classes too?
> 
> 
> ---------------------------------------------------------------------
> 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