You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David <dn...@gmail.com> on 2008/10/06 15:31:36 UTC
Is there a way to create 2 war files from one war project?
Hello All,
I've need to create two varieties of the same war file. Say for example a
standard and professional edition. I can make these two editions using
profiles. Now I'm trying to figure out the best way to identify them after
they are built. Using a classifier comes to mind but the only thing I know
of that does that is the assembly plugin. Is this the way to go or is there
a better way?
Thanks,
David
Re: Is there a way to create 2 war files from one war project?
Posted by David <dn...@gmail.com>.
Thanks Wayne!!
On Mon, Oct 6, 2008 at 11:42 AM, Wayne Fay <wa...@gmail.com> wrote:
> The best approach is to split your war project up into 2 war projects
> (move the professional edition files to a new project), and then use
> the war-overlays feature to merge the standard and professional
> versions. And you should really just use a different artifactId -- one
> for each war project -- though classifier would work, if you wanted to
> use it instead.
>
> Wayne
>
> On Mon, Oct 6, 2008 at 6:31 AM, David <dn...@gmail.com> wrote:
> > Hello All,
> >
> > I've need to create two varieties of the same war file. Say for example
> a
> > standard and professional edition. I can make these two editions using
> > profiles. Now I'm trying to figure out the best way to identify them
> after
> > they are built. Using a classifier comes to mind but the only thing I
> know
> > of that does that is the assembly plugin. Is this the way to go or is
> there
> > a better way?
> >
> > Thanks,
> >
> > David
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Is there a way to create 2 war files from one war project?
Posted by Wayne Fay <wa...@gmail.com>.
The best approach is to split your war project up into 2 war projects
(move the professional edition files to a new project), and then use
the war-overlays feature to merge the standard and professional
versions. And you should really just use a different artifactId -- one
for each war project -- though classifier would work, if you wanted to
use it instead.
Wayne
On Mon, Oct 6, 2008 at 6:31 AM, David <dn...@gmail.com> wrote:
> Hello All,
>
> I've need to create two varieties of the same war file. Say for example a
> standard and professional edition. I can make these two editions using
> profiles. Now I'm trying to figure out the best way to identify them after
> they are built. Using a classifier comes to mind but the only thing I know
> of that does that is the assembly plugin. Is this the way to go or is there
> a better way?
>
> Thanks,
>
> David
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org