That's not really what I meant.
I'm able to add it to the jar, but I coudn't find a way of including
it to the classpath when I'm testing the project before creating the
jar file.
I mean. When I run 'mvn test', maven gives me a warn saying that there
are no appenders for log4j, but after I create the jar and run it
directly from the jar, it works well, with no warnings.
Any help is appreciated

J. Kauffman

On 12/21/06, Antonio Parolini <[EMAIL PROTECTED]> wrote:

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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
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: [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