Just to make explicit what Wayne said: You might want to set up the following projects:
projectA: containing all code for com.myproj.packageA projectB: containing all code for com.myproj.packageB projectC: containing all code for com.myproj.packageC projectD: containing all code for com.myproj.packageD projectServer: depending on projectA, projectB and projectC projectClient: depending on projectA, projectB and projectD If you intend delivering a single jar for server and another one for client, you might have a look at maven assembly plugin for use with the respective projects (projetServer, projectClent). Rainer Wayne Fay schrieb: > Generally you would package A by itself, B by itself, C by itself with > a dependency on A and B, and D by itself with a dependency on D. > > Arguably you could package A and B together if they will always be > used to together, producing a single AB artifact, and then depend on > it in C and D. > > Wayne > > On Sat, May 3, 2008 at 11:21 AM, Nicola Benaglia > <[EMAIL PROTECTED]> wrote: >> Hi, >> I am moving my firsts step with Maven. >> In my project I have the following Java code structure: >> >> com.myproj.packageA >> com.myproj.packageB >> com.myproj.packageC >> com.myproj.packageD >> >> When I launch the package artifact (correct??) 2 jar should be created: >> >> server.jar (containing the compiled code from A,B,C) >> client.jar (with A,B,D) >> >> How can I do that? How can I manage common code packages? >> Please be patient with my newbie trivial questions :) >> >> Thank u in advance, >> Nicola >> >> --------------------------------------------------------------------- >> 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] > -- Rainer Pruy Geschäftsführer Acrys Consult GmbH & Co. KG Untermainkai 29-30, D-60329 Frankfurt Tel: +49-69-244506-0 - Fax: +49-69-244506-50 Web: http://www.acrys.com - Email: [EMAIL PROTECTED] Handelsregister: Frankfurt am Main, HRA 31151 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
