I want the remaining classes to go into another jar ... It can be made as a different project, but that'll repeat the compilation and source generation processes ... I thought if I can exclude these classes from the 1st jar, I can either generate another jar file wth the rest of the classes, or copy those classes into a 2nd project's resource folder (so that its jarred up at the end).
I'm actually converting an ant project that produces a bunch of classes and packs them into 2 different jars by using include/exclude in the jar task ... I'm not particular about how this is accomplished, all I want is a solution ... I tried posting this problem in different forms to this list, but never got a satisfactory reply .... On 1/13/06, John Casey <[EMAIL PROTECTED]> wrote: > > Well, looking at the jar plugin, it seems that it doesn't allow > inclusions/exclusions to be specified. > > I guess my question is, what are you trying to accomplish? Are these > classes unit tests or something? > > -john > > Karthik V wrote: > > there seems to be one ( > > http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html) .. > > but isnt it possible to do it after compilation, when the jar happens? > > assuming i need the other classes too for some other purpose (but dont > want > > it inside the jar), is there no way of achieving this at all? > > > > > > On 1/12/06, Brian E. Fox <[EMAIL PROTECTED]> wrote: > >> Isn't there an exclude sources setting in the compiler? > >> > >> -----Original Message----- > >> From: Karthik V [mailto:[EMAIL PROTECTED] > >> Sent: Thursday, January 12, 2006 11:12 AM > >> To: Maven Users List > >> Subject: Re: Filtering resources > >> > >> can some one answer this please? > >> > >> > >> On 1/11/06, Karthik V <[EMAIL PROTECTED]> wrote: > >>> ok .. that 2nd question was silly .. i managed it ... pls help me wth > >>> the 1st one. > >>> > >>> > >>> On 1/11/06, Karthik V < [EMAIL PROTECTED]> wrote: > >>>> In m2, how do I prevent some classes from being included to the > >>>> final jar file? > >>>> > >>>> Also, I need to add some files (like the xmls generated by xdoclet) > >>>> to the jar. These files go to the generated-sources directory and > >>>> not to the src/main/resources. How do I add these to the final jar? > >>> > >>> > >> > >> --------------------------------------------------------------------- > >> 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] > >