maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Parolini <Antonio.Parol...@hcuge.ch>
Subject Re: Multi-module and resource files
Date Thu, 21 Dec 2006 19:38:01 GMT

Just put all *.properties files into src/main/resources, as they'll be added
into your jar automatically

HTH.

Tony.

see:
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Jan Kauffman wrote:
> 
> I'm having the same problem trying to include my log4j.properties file on
> my
> project.
> I made it work when I create the jar file, including it into the manifest,
> but when I try to 'run mvn test' command, it still answers me that log4j
> has
> no appenders.
> Does anybody know how to help solve this problem?
> 
> thanks
> J. Kauffman
> 
> On 12/19/06, Paolo Bacci <paolo@longadata.com> wrote:
>>
>> Hi all,
>>
>> I have a maven multi-module project and I got a simple question about
>> classpath. I want to know where Maven will lookup resource files (such
>> as log4j.properties files) by default to include in the classpath in
>> the case of a multi-module setup.
>>
>> Or, if no such directory exists by default, should I add a classpath
>> entry to the main project's POM?
>>
>> Thanks in advance,
>>
>> Paolo
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Multi-module-and-resource-files-tf2847239s177.html#a8013721
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Mime
View raw message