You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by João Paulo Batistella <ba...@yahoo.com.br> on 2004/12/28 00:10:18 UTC
Project structure for EJB projects
Hello!
I have a project composed of web applications and EJB components. I would like to have my EJB projects sharing some common information like dependencies. Is it possible to do that?
I was wondering about structuring my application like the following tree:
- MyApplication
+ WebApp
- MyEJBs
+ MyFirstEJB
+ MySecondEJB
Is it possible to have a project template in MyEJBs folder, with all dependencies and a specialized project definition in each EJB folder?
Thanks,
João Paulo.
---------------------------------
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
Re: Project structure for EJB projects
Posted by Brett Porter <br...@gmail.com>.
it is an alternative, but most Maven developers discourage their use
for reasons of clarity, instead recommending the use of inheritence.
- Brett
On Tue, 28 Dec 2004 10:56:00 +0100, Bent André Solheim
<be...@gmail.com> wrote:
> Hi,
>
> as an alternative to Brett's suggestion, you can use XML entities to
> achieve the same thing. I've used it in some of my projects, and it
> has proven to be a real timesaver.
>
> See http://jroller.org/page/bsnyder/Weblog/20041018 for more
> information. The example shows how to externalize version numbers from
> the pom, but you can use the same technique to externalize entire
> groups of dependency-tags.
>
> Hope this helps,
> Best regards,
> Bent
>
>
> On Tue, 28 Dec 2004 10:16:34 +1100, Brett Porter <br...@gmail.com> wrote:
> > yes :)
> >
> > Look at the <extend/> element in the project.xml file.
> >
> > - Brett
> >
> > On Mon, 27 Dec 2004 20:10:18 -0300 (ART), João Paulo Batistella
> > <ba...@yahoo.com.br> wrote:
> > > Hello!
> > >
> > > I have a project composed of web applications and EJB components. I would like to have my EJB projects sharing some common information like dependencies. Is it possible to do that?
> > >
> > > I was wondering about structuring my application like the following tree:
> > >
> > > - MyApplication
> > > + WebApp
> > > - MyEJBs
> > > + MyFirstEJB
> > > + MySecondEJB
> > >
> > > Is it possible to have a project template in MyEJBs folder, with all dependencies and a specialized project definition in each EJB folder?
> > >
> > > Thanks,
> > > João Paulo.
> > >
> > >
> > > ---------------------------------
> > > Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
> > >
> >
> > ---------------------------------------------------------------------
> > 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
Re: Project structure for EJB projects
Posted by Bent André Solheim <be...@gmail.com>.
Hi,
as an alternative to Brett's suggestion, you can use XML entities to
achieve the same thing. I've used it in some of my projects, and it
has proven to be a real timesaver.
See http://jroller.org/page/bsnyder/Weblog/20041018 for more
information. The example shows how to externalize version numbers from
the pom, but you can use the same technique to externalize entire
groups of dependency-tags.
Hope this helps,
Best regards,
Bent
On Tue, 28 Dec 2004 10:16:34 +1100, Brett Porter <br...@gmail.com> wrote:
> yes :)
>
> Look at the <extend/> element in the project.xml file.
>
> - Brett
>
> On Mon, 27 Dec 2004 20:10:18 -0300 (ART), João Paulo Batistella
> <ba...@yahoo.com.br> wrote:
> > Hello!
> >
> > I have a project composed of web applications and EJB components. I would like to have my EJB projects sharing some common information like dependencies. Is it possible to do that?
> >
> > I was wondering about structuring my application like the following tree:
> >
> > - MyApplication
> > + WebApp
> > - MyEJBs
> > + MyFirstEJB
> > + MySecondEJB
> >
> > Is it possible to have a project template in MyEJBs folder, with all dependencies and a specialized project definition in each EJB folder?
> >
> > Thanks,
> > João Paulo.
> >
> >
> > ---------------------------------
> > Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
> >
>
> ---------------------------------------------------------------------
> 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
Re: Project structure for EJB projects
Posted by Brett Porter <br...@gmail.com>.
yes :)
Look at the <extend/> element in the project.xml file.
- Brett
On Mon, 27 Dec 2004 20:10:18 -0300 (ART), João Paulo Batistella
<ba...@yahoo.com.br> wrote:
> Hello!
>
> I have a project composed of web applications and EJB components. I would like to have my EJB projects sharing some common information like dependencies. Is it possible to do that?
>
> I was wondering about structuring my application like the following tree:
>
> - MyApplication
> + WebApp
> - MyEJBs
> + MyFirstEJB
> + MySecondEJB
>
> Is it possible to have a project template in MyEJBs folder, with all dependencies and a specialized project definition in each EJB folder?
>
> Thanks,
> João Paulo.
>
>
> ---------------------------------
> Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org