I'm not sure if you can influence the main artifact like that, but you can use the antrun plugin to create a secondary jar artifact like you want, then use the build-helper-maven-plugin to attach it to the project with a classifier. When you use it as a dependendency, you'll have to be careful to always use the classifier so you get the jar with the reduced set of files.
Chris > -----Original Message----- > From: Roberto UserList [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 17 January, 2007 06:41 > To: Maven User List > Subject: Re: [M2] Excluding some classes directories when > packaging an artifact > > Hi all! Especially Franz. I think I was not clear enough in > the previous e-mail. > There are some subdirectories in one of the subprojects of my system. > After compiling all files of all subdirectories of my system, > I need to package the class files of only two subdirectories > into a jar file. > How can I do this king of thing? > I'm not responsable for the system, so, there is no > possibility to change the structure of it. > Thanks in advance for help. > Regards, > Roberto. > > > > > On 1/16/07, Roberto UserList <[EMAIL PROTECTED]> wrote: > > > > Hi, all! After compiling a subproject, I'd like to package an > > artifact, .jar file, but excluding some classes directories. > > How can I do to exclude these directories? > > Thanks in advance for help. > > Regards, > > Roberto. > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
