You can use classifier for that. However, I very seldom recommend using one
project to produce several artifacts (other than sources and javadoc jars,
and such).
The main reason is that you still only have one pom. This means that you
will have the same dependencies for all artifacts, which screws up the
dependency "magic" of Maven. The user of your artifacts will not enjoy the
full beauty of it.
My advice, go with two projects. One projects is for the api and the other
is for the impl. The way, in my opinion, to modularize today.

/Anders

On Wed, Sep 16, 2009 at 11:49, Valentin Jacquemin <[email protected]>wrote:

> Hi all,
>
> Is it possible to use one pom file that generates 2 artifacts?
> I have one pom taking care of creating an ejb artifact but I'd like to
> produce also a jar library containing every interfaces declaration of my
> ejb
> to be able to include it in my war file.... How can I do that?
>
>
> Thanks in advance,
>
>
> Valentin Jacquemin
>

Reply via email to