Hi
Thanks for the solution to both of you.My problem is solved and war file
picked up persistence.xml from META-INF folder.Its working fine.

THanks  a lot again
Anshuman


---------- Forwarded message ----------
From: Wayne Fay < [EMAIL PROTECTED]>
Date: May 2, 2006 10:06 AM
Subject: Re: Probelm with persistence.xml
To: Maven Users List < [email protected]>

Yes, this is what he's saying. Move the xml file to
src/main/resources/META-INF/ if you want it automatically picked up
and put in META-INF in the resulting jar.

If you don't have a main folder, make one.

This can also be configured in your pom but it is more complicated
than simply moving the file.

Wayne

On 5/2/06, Anshuman Srivastava < [EMAIL PROTECTED]> wrote:
I want that  my WAR file should contain peristence.xml.

>> If you need to automagically get your persistence.xml in the archive,

>>then
>>just put it in src/main/resources/META-INF/persistence.xml and it'll end
>>up in the correct place

My peristence.xml is at root with pom.xml.So <http://pom.xml.so/> do I
need to change the
position of persistence.xml?I do not have any main folder inside src.

ANshuman



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

Reply via email to