It looks like you've already set you're mind on the end result, but I'd like to warn you about duplicating classes in several artifacts. Sooner or later this will get you into trouble. I suggest you move these classes to a separate module and declare a dependency to it from your "server artifacts". i.e. keep the API separate from the impl logic. If you also have some client specific classes you would create a separate artifact for that, which would then have a dependency to the API artifact.
This is just rough guidelines. As Ron says, give us more details and we can give you more specific solutions. /Anders On Thu, Apr 7, 2011 at 15:46, Rafael Vanderlei <rafaelvander...@gmail.com>wrote: > Hi, Ron. Thanks for response. > > How would I configure such a project using Maven? Keeping in mind I already > have all the code in the modules I mentioned before and I just need a way > to > put everything together in a jar and then deploy to Nexus. > > Regards, > Rafael. > > On Thu, Apr 7, 2011 at 10:36 AM, Ron Wheeler < > rwhee...@artifact-software.com > > wrote: > > > This looks like a classic web services configuration. > > > > The web services project produces a jar that all the clients need, it > gets > > deployed as an artifact and the clients depend on that artifact. > > > > Is that what you are trying to do? > > > > Ron > > > > > > On 07/04/2011 9:27 AM, Rafael Vanderlei wrote: > > > >> Hi. > >> > >> I have a multi module project and I need to generate two clients (could > be > >> more) for my application. But the clients need to include classes that > are > >> in different modules, so I'm kind of not having much idea on how to do > >> this. > >> > >> My project structure is like this > >> > >> - root > >> --- module a (jar) > >> --- module b (jar) > >> --- module c (ejb) > >> --- module d (ejb) > >> --- module e (war) > >> --- module f (war) > >> > >> As I said, the clients I need to generate must include a different > subset > >> of > >> classes that are in module a, module b and module d. Also I need to > deploy > >> these clients to the company's repository (I'm using Nexus) so the > >> consumers > >> can declare it as a dependency. > >> > >> What do you recommend for this need? > >> > >> Thanks and regards, > >> Rafael. > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > >