You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lucas Opara <lu...@gmail.com> on 2006/06/15 16:58:23 UTC
Cyclic references in M2 projects
Hello,
I just migrated some of our J2EE projects to maven 2.
Now I have the problem with dependencies, with Maven telling me that I have
cyclic references between my projects.
Is it possible to handle those cyclic references or do I have to do some
refactoring?
Eclipse just gives a warning when they are cyclic references, but it can
still compile the code in the right order.
Is Maven 2 capable of such a thing?
Thanks,
-Lucas
Re: Cyclic references in M2 projects
Posted by Lucas Opara <lu...@gmail.com>.
Hi Jo,
I had no other options than refactoring.
What you could do is add 2 more projets containing business delegates for
your 2 ejb modules.
Two different EJB's modules should only access each other through those
business delegate (remote).
But even there you should have a core ejb module and a top ejb module, in
order that the core ejb module never needs to call the top ejb module but
the opposite well.
Hope this helps.
-Lucas
On 7/6/06, Jo Vandermeeren <jo...@gmail.com> wrote:
>
> Did this issue got resolved?
> I have a similar situation with 2 EJB modules depending on each other's
> ejb-client jar...
>
> Since it's a legacy project, costs need to stay low and refactoring is no
> option..
> Is it possible to manage the build of this project with maven 2?
>
> On 6/16/06, Lucas Opara <lu...@gmail.com> wrote:
> >
> > Ok, It is bad I agree.
> > But I want to know if there is a way to support cyclic references in
> > Maven2.
> >
> > I have a project which contains Business Delegates classes. Those
> delegate
> > classes can call EJB's remotely and locally. Thus I have a cyclic
> > reference
> > between my Delegate project and my EJB's project. As EJB's may call each
> > other locally through the local delegates.
> >
> > -Lucas
> >
> > On 6/15/06, Andrew-A.Davies@ubs.com <An...@ubs.com> wrote:
> > >
> > > I would strongly suggest refactoring as this is bad
> > >
> > > -----Original Message-----
> > > From: Lucas Opara [mailto:lucas.opara@gmail.com]
> > > Sent: 15 June 2006 15:58
> > > To: users@maven.apache.org
> > > Subject: Cyclic references in M2 projects
> > >
> > > Hello,
> > >
> > > I just migrated some of our J2EE projects to maven 2.
> > > Now I have the problem with dependencies, with Maven telling me that I
> > > have cyclic references between my projects.
> > > Is it possible to handle those cyclic references or do I have to do
> some
> > > refactoring?
> > >
> > > Eclipse just gives a warning when they are cyclic references, but it
> can
> > > still compile the code in the right order.
> > > Is Maven 2 capable of such a thing?
> > >
> > > Thanks,
> > >
> > > -Lucas
> > >
> > > Visit our website at http://www.ubs.com
> > >
> > > This message contains confidential information and is intended only
> > > for the individual named. If you are not the named addressee you
> > > should not disseminate, distribute or copy this e-mail. Please
> > > notify the sender immediately by e-mail if you have received this
> > > e-mail by mistake and delete this e-mail from your system.
> > >
> > > E-mail transmission cannot be guaranteed to be secure or error-free
> > > as information could be intercepted, corrupted, lost, destroyed,
> > > arrive late or incomplete, or contain viruses. The sender therefore
> > > does not accept liability for any errors or omissions in the contents
> > > of this message which arise as a result of e-mail transmission. If
> > > verification is required please request a hard-copy version. This
> > > message is provided for informational purposes and should not be
> > > construed as a solicitation or offer to buy or sell any securities or
> > > related financial instruments.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
>
>
Re: Cyclic references in M2 projects
Posted by Jo Vandermeeren <jo...@gmail.com>.
Did this issue got resolved?
I have a similar situation with 2 EJB modules depending on each other's
ejb-client jar...
Since it's a legacy project, costs need to stay low and refactoring is no
option..
Is it possible to manage the build of this project with maven 2?
On 6/16/06, Lucas Opara <lu...@gmail.com> wrote:
>
> Ok, It is bad I agree.
> But I want to know if there is a way to support cyclic references in
> Maven2.
>
> I have a project which contains Business Delegates classes. Those delegate
> classes can call EJB's remotely and locally. Thus I have a cyclic
> reference
> between my Delegate project and my EJB's project. As EJB's may call each
> other locally through the local delegates.
>
> -Lucas
>
> On 6/15/06, Andrew-A.Davies@ubs.com <An...@ubs.com> wrote:
> >
> > I would strongly suggest refactoring as this is bad
> >
> > -----Original Message-----
> > From: Lucas Opara [mailto:lucas.opara@gmail.com]
> > Sent: 15 June 2006 15:58
> > To: users@maven.apache.org
> > Subject: Cyclic references in M2 projects
> >
> > Hello,
> >
> > I just migrated some of our J2EE projects to maven 2.
> > Now I have the problem with dependencies, with Maven telling me that I
> > have cyclic references between my projects.
> > Is it possible to handle those cyclic references or do I have to do some
> > refactoring?
> >
> > Eclipse just gives a warning when they are cyclic references, but it can
> > still compile the code in the right order.
> > Is Maven 2 capable of such a thing?
> >
> > Thanks,
> >
> > -Lucas
> >
> > Visit our website at http://www.ubs.com
> >
> > This message contains confidential information and is intended only
> > for the individual named. If you are not the named addressee you
> > should not disseminate, distribute or copy this e-mail. Please
> > notify the sender immediately by e-mail if you have received this
> > e-mail by mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free
> > as information could be intercepted, corrupted, lost, destroyed,
> > arrive late or incomplete, or contain viruses. The sender therefore
> > does not accept liability for any errors or omissions in the contents
> > of this message which arise as a result of e-mail transmission. If
> > verification is required please request a hard-copy version. This
> > message is provided for informational purposes and should not be
> > construed as a solicitation or offer to buy or sell any securities or
> > related financial instruments.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
Re: Cyclic references in M2 projects
Posted by Lucas Opara <lu...@gmail.com>.
Ok, It is bad I agree.
But I want to know if there is a way to support cyclic references in Maven2.
I have a project which contains Business Delegates classes. Those delegate
classes can call EJB's remotely and locally. Thus I have a cyclic reference
between my Delegate project and my EJB's project. As EJB's may call each
other locally through the local delegates.
-Lucas
On 6/15/06, Andrew-A.Davies@ubs.com <An...@ubs.com> wrote:
>
> I would strongly suggest refactoring as this is bad
>
> -----Original Message-----
> From: Lucas Opara [mailto:lucas.opara@gmail.com]
> Sent: 15 June 2006 15:58
> To: users@maven.apache.org
> Subject: Cyclic references in M2 projects
>
> Hello,
>
> I just migrated some of our J2EE projects to maven 2.
> Now I have the problem with dependencies, with Maven telling me that I
> have cyclic references between my projects.
> Is it possible to handle those cyclic references or do I have to do some
> refactoring?
>
> Eclipse just gives a warning when they are cyclic references, but it can
> still compile the code in the right order.
> Is Maven 2 capable of such a thing?
>
> Thanks,
>
> -Lucas
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version. This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: Cyclic references in M2 projects
Posted by An...@ubs.com.
I would strongly suggest refactoring as this is bad
-----Original Message-----
From: Lucas Opara [mailto:lucas.opara@gmail.com]
Sent: 15 June 2006 15:58
To: users@maven.apache.org
Subject: Cyclic references in M2 projects
Hello,
I just migrated some of our J2EE projects to maven 2.
Now I have the problem with dependencies, with Maven telling me that I
have cyclic references between my projects.
Is it possible to handle those cyclic references or do I have to do some
refactoring?
Eclipse just gives a warning when they are cyclic references, but it can
still compile the code in the right order.
Is Maven 2 capable of such a thing?
Thanks,
-Lucas
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org