> In some organizations its not as simple as that :). rebel! :P ... but seriously how about this
<build> <sourceDirectory>src/java</sourceDirectory> <resources> <resource> <directory>src</directory> <excludes> <exclude>java/**/*.java</exclude> </excludes> </resource> </resources> </build> Note that you can always check what your 'effective pom' will look like by running 'mvn help:effective-pom' grz Bram > -----Original Message----- > From: Jeff Mutonho [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 22, 2006 5:26 PM > To: Maven Users List > Subject: Re: jarring non class files > > On 6/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > And moving the directories around is not possible... why not?? Most > > projects I'm using Maven with at this point were created before we > > started using Maven2, and we simply moved things around to > conform to > > Maven's expectations. Subversion is nice like that. > > > > In some organizations its not as simple as that :). > > > Wayne > > > > On 6/22/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote: > > > On 6/22/06, Bram de Kruijff <[EMAIL PROTECTED]> wrote: > > > > > Under my src directory I have 2 other folders .One contains > > > > > other subfolders with my java code(src/java/com/blah blah > > > > > blah....) .The second subfolder (src/spring/context/blah blah > > > > > blah...) contains some spring config files (xml) that I also > > > > > wish to be bundled in the jar file( keeping the directory > > > > > structure intact).How do I specify this in my pom? > > > > > > > > Assuming you have /src/main/java/com/blah and default jar > > > > packaging. Just put the second directory under > src/main/resources > > > > and your done. No need to edit the pom. > > > > > > > > grz > > > > > > Nope.This an existing project that was created before adoption of > > > maven , hence the directory structure is different from the > > > /src/main/java format :( > > > > > > > -------------------------------------------------------------------- > > > - 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] > > > > > > > -- > > > Jeff Mutonho > > GoogleTalk : ejbengine > Skype : ejbengine > Registered Linux user number 366042 > > --------------------------------------------------------------------- > 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]