maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wayne Fay" <wayne...@gmail.com>
Subject Re: create 2 jar from common packages
Date Sat, 03 May 2008 16:38:14 GMT
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
<nicola.benaglia@tecno-progetti.eu> 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: users-unsubscribe@maven.apache.org
>  For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message