I think there are two parts of this question. First, what the Java EE spec says about what you want to do and then how to package with Maven. Regarding the Java EE spec, I'm not sure if you can put the resources folder in the ear. Possibly you can, but I've never done that. What I would do is to create a resource jar which holds the resource files. And then package that jar in the ear. From your EJBs, you just simply read the files from the classpath.
So, for Maven, in your multi-module project, you create a separate JAR project which only consists of the resources you want to package. Then you get that jar included in the ear together with the rest. That shouldn't be to hard and the ear plugin docs is a good place to start. /Anders On Mon, Mar 1, 2010 at 23:23, Partha Venkatavaradhan (pavenkat) < [email protected]> wrote: > Hi, > > I have a resources folder that contains a dynamic set of XML's (file names > not known during development time, known only during build time). I would > like to place this resources folder under the 'EAR' directly so that > multiple EJB;s can share the resources. Can someone please help me with > the > snippet of script how can i create an EAR with this resources folder under > the EAR. > > thanks > Partha >
