You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brad O'Hearne <br...@neurofire.com> on 2006/02/03 23:56:15 UTC
Is it possible to build 2 jars in a single project?
I have a single project which I would like the build to result in 2 jars
(actually one jar and one sar). Is it possible to have a project build
two jars? Or do I have to break this project into two projects? The
reason that I ask is that these two jars essentially come from the same
codebase -- they aren't really comprised of different source code --
mostly just different packaging (for JBoss).
How would you recommend tackling this situation?
Thanks for your help.
Brad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Is it possible to build 2 jars in a single project?
Posted by Dave Maung <da...@gmail.com>.
use maven-compiler-plugin. see
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html
On 2/3/06, Brad O'Hearne <br...@neurofire.com> wrote:
>
> I have a single project which I would like the build to result in 2 jars
> (actually one jar and one sar). Is it possible to have a project build
> two jars? Or do I have to break this project into two projects? The
> reason that I ask is that these two jars essentially come from the same
> codebase -- they aren't really comprised of different source code --
> mostly just different packaging (for JBoss).
>
> How would you recommend tackling this situation?
>
> Thanks for your help.
>
> Brad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>