I could achieve it by creating a folder under sr/main/application/APP-INF/classes and place by xml files there.
But regarding your suggestion: I even tried that but did not work. I want to include some xml files in myear.ear/APP-INF/classes/ Thanks, Raghu -----Original Message----- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 2:27 PM To: Maven Users List Subject: Re: Adding resources to EAR The source of the ear plugin has this part: //** * Single directory for extra files to include in the EAR. * * @parameter expression="${basedir}/src/main/application" * @required *// *private* File earSourceDirectory; I guess it should work by adding <configuration> <earSourceDirectory>your directory</earSourceDirectory> </configuration> What did you try to add? Hth, Nick Stolwijk Raghu Kasturi wrote: > I tried that in both plug-in section and build section. It did not work. > > Thanks, > Raghu > > -----Original Message----- > From: Ian Springer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 08, 2008 2:09 PM > To: Maven Users List > Subject: Re: Adding resources to EAR > > Use the standard resources section of the pom, as you would for a jar > artifact. > > Raghu Kasturi wrote: > >> Hi, >> >> >> >> I am trying to add more resources to EAR, but unable to do so. >> >> >> >> Is there any way to add resources to my EAR package? >> >> >> >> I need to add some xml files to EAR/APP-INF/classes/ >> >> >> >> Thanks, >> >> Raghu >> >> >> >> > > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- 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]
