Thanks again, Wayne! I was just curious if there is an easier way to
do it with maven. I will take your second suggestion. A bit shell
scripting would help in this case.
Quoting Wayne Fay <[EMAIL PROTECTED]>:
Generally, no, this is not possible.
You could perhaps rig something complicated with profiles etc such
that given modules A, B, C, D and you only want to rebuild A and B,
you could say "mvn -Pabonly package" and it would use the C and D
artifacts from your repo rather than rebuilding them. I'll leave the
actual implementation of this profile to the reader, but its not that
tough.
This is overly complicated IMHO when its far easier to just rebuild
the whole thing -or- go into the various modules and "mvn install"
each in-turn. At least, I've never needed to do anything this way
myself.
Wayne
On 3/23/07, Qing Gao <[EMAIL PROTECTED]> wrote:
Thanks, Wayne! That is the way my projects are configured now. But as
I added in my other post, I'd prefer to have more control on the
dependency trigger if I have several projects depend on one or many
projects. I'd like to choose which one I want to rebuild. Please let
me know if this is currently possible with Maven.
Thanks,
Qing
On Mar 23, 2007, at 4:49 PM, Wayne Fay wrote:
You can get this functionality if they share a common parent which has
both projects defined as modules, and build from the top level
directory ie:
project/pom.xml << run "mvn package" here
project/projA/pom.xml
project/projB/pom.xml
Otherwise, no, this is not possible.
Wayne
On 3/23/07, Qing Gao <[EMAIL PROTECTED]> wrote:
Hi,
I have two web projects, A and B. Since project B depends on project
A, I use the maven war plugin to overlay the project B on project A
when building project B. One problem I have is that every time I make
a change in project A, I need to reinstall it into my local
repository, if not, the project B will use the old war file from my
local repository without the changes I've made. Can maven detect
changes in project A and recompile, reassemble the project A war file
when building project B as needed?
I've found this thread
http://mail-archives.apache.org/mod_mbox/maven-users/200510.mbox/%
[EMAIL PROTECTED]
on the mailing list that closely resembles to what I wanted, but I
see no solution is provided.
Thanks for any suggestions!
Qing
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]