You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kaloyan Enimanev <Ka...@intercomponentware.com> on 2005/02/08 17:16:34 UTC
Dependcies related question
Hi guys ,
I've got a problem with maven, and I don't know what's the best solution
for it.
Here is the situation :
I 've got project tree with some subprojects. Subroject EJB depends on
subproject UTILS.
I change add a method in a UTILS java file, and then change a method
in EJB to use the new
functionality. Next, I want to build the EJB artifact, so I go to EJB
subproject directory and run maven.
What happends it that Maven complains that the new method does not
exists, because it uses
the UTILS jar from the repository, without realiziing that its source
has changed.
Obviously I have two solutions
1) rebuild the whole "master-project" - to use the dependencies of
REACTOR
2) rebuild + install UTILS artefact and then try with EJB again.
I don't like neither of these solutions. Isn't there something better to
be done ?
thank you for reading this, even if you don't have an answer :)
Kaloyan
Re: Dependcies related question
Posted by dan tran <da...@gmail.com>.
Kaloyan,
If you'd like to stay in your EJB project and want maven to build the
UTIL (sibbling
project of EJB) first, you have to wire it your sefl. and It is not
recommended way and ugly as well.
So use the master project to build both is the way to go.
-D
On Tue, 8 Feb 2005 17:37:26 +0100, Kaloyan Enimanev
<Ka...@intercomponentware.com> wrote:
> Hi dan, thanks for your quick response :)
>
> I don't like this behaviour, because I'm new to Maven
> and I just jumped over from Ant.
>
> Ant used to solve this problem automatically when you
> tell him that one project depends on another.
>
> So I want to have a way, to issue a single command
> e.g. EJB-COMPILE , and MAVEN compile the UTILS
> automatically for me. That's what I want.
>
> Due to the repository, I see that it is not thought to be this way.
>
> Kaloyan
>
> dan tran <da...@gmail.com>
> 02/08/2005 05:27 PM
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
>
> To
> Maven Users List <us...@maven.apache.org>
> cc
>
> Subject
> Re: Dependcies related question
>
>
> What is your preference on what Maven should do?
>
> What are so bad about those solutions? ;-)
>
> -D
>
> On Tue, 8 Feb 2005 17:16:34 +0100, Kaloyan Enimanev
> <Ka...@intercomponentware.com> wrote:
> > Hi guys ,
> > I've got a problem with maven, and I don't know what's the best
> solution
> >
> > for it.
> >
> > Here is the situation :
> > I 've got project tree with some subprojects. Subroject EJB depends
> on
> > subproject UTILS.
> > I change add a method in a UTILS java file, and then change a method
> > in EJB to use the new
> > functionality. Next, I want to build the EJB artifact, so I go to EJB
> > subproject directory and run maven.
> >
> > What happends it that Maven complains that the new method does not
> > exists, because it uses
> > the UTILS jar from the repository, without realiziing that its source
> > has changed.
> >
> > Obviously I have two solutions
> > 1) rebuild the whole "master-project" - to use the dependencies of
> > REACTOR
> > 2) rebuild + install UTILS artefact and then try with EJB again.
> >
> > I don't like neither of these solutions. Isn't there something better
> to
> > be done ?
> >
> > thank you for reading this, even if you don't have an answer :)
> > Kaloyan
> >
> >
>
> ---------------------------------------------------------------------
> 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: Dependcies related question
Posted by Jon Strayer <jo...@gmail.com>.
Kaloyan Enimanev wrote:
> Hi dan, thanks for your quick response :)
>
> I don't like this behaviour, because I'm new to Maven
> and I just jumped over from Ant.
>
> Ant used to solve this problem automatically when you
> tell him that one project depends on another.
>
> So I want to have a way, to issue a single command
> e.g. EJB-COMPILE , and MAVEN compile the UTILS
> automatically for me. That's what I want.
Use CruiseControl. That way you don't have to issue any commands.
----
The only substitute for good manners is fast reflexes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependcies related question
Posted by Kaloyan Enimanev <Ka...@intercomponentware.com>.
Hi dan, thanks for your quick response :)
I don't like this behaviour, because I'm new to Maven
and I just jumped over from Ant.
Ant used to solve this problem automatically when you
tell him that one project depends on another.
So I want to have a way, to issue a single command
e.g. EJB-COMPILE , and MAVEN compile the UTILS
automatically for me. That's what I want.
Due to the repository, I see that it is not thought to be this way.
Kaloyan
dan tran <da...@gmail.com>
02/08/2005 05:27 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>
To
Maven Users List <us...@maven.apache.org>
cc
Subject
Re: Dependcies related question
What is your preference on what Maven should do?
What are so bad about those solutions? ;-)
-D
On Tue, 8 Feb 2005 17:16:34 +0100, Kaloyan Enimanev
<Ka...@intercomponentware.com> wrote:
> Hi guys ,
> I've got a problem with maven, and I don't know what's the best
solution
>
> for it.
>
> Here is the situation :
> I 've got project tree with some subprojects. Subroject EJB depends
on
> subproject UTILS.
> I change add a method in a UTILS java file, and then change a method
> in EJB to use the new
> functionality. Next, I want to build the EJB artifact, so I go to EJB
> subproject directory and run maven.
>
> What happends it that Maven complains that the new method does not
> exists, because it uses
> the UTILS jar from the repository, without realiziing that its source
> has changed.
>
> Obviously I have two solutions
> 1) rebuild the whole "master-project" - to use the dependencies of
> REACTOR
> 2) rebuild + install UTILS artefact and then try with EJB again.
>
> I don't like neither of these solutions. Isn't there something better
to
> be done ?
>
> thank you for reading this, even if you don't have an answer :)
> Kaloyan
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependcies related question
Posted by dan tran <da...@gmail.com>.
What is your preference on what Maven should do?
What are so bad about those solutions? ;-)
-D
On Tue, 8 Feb 2005 17:16:34 +0100, Kaloyan Enimanev
<Ka...@intercomponentware.com> wrote:
> Hi guys ,
> I've got a problem with maven, and I don't know what's the best solution
>
> for it.
>
> Here is the situation :
> I 've got project tree with some subprojects. Subroject EJB depends on
> subproject UTILS.
> I change add a method in a UTILS java file, and then change a method
> in EJB to use the new
> functionality. Next, I want to build the EJB artifact, so I go to EJB
> subproject directory and run maven.
>
> What happends it that Maven complains that the new method does not
> exists, because it uses
> the UTILS jar from the repository, without realiziing that its source
> has changed.
>
> Obviously I have two solutions
> 1) rebuild the whole "master-project" - to use the dependencies of
> REACTOR
> 2) rebuild + install UTILS artefact and then try with EJB again.
>
> I don't like neither of these solutions. Isn't there something better to
> be done ?
>
> thank you for reading this, even if you don't have an answer :)
> Kaloyan
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependcies related question
Posted by Eric Black <eb...@concord.org>.
Your second solution is what I would normally do, but for testing, you can
build the UTILS jar file and then set the maven.jar.override property. See
http://maven.apache.org/reference/user-guide.html and search for
maven.jar.override and you'll see how it is used.
Eric