If they share a parent, and are declared as <modules> in the parent pom, then you can build from the parent directory and it will build, package, install etc all modules.
If they are simply 2 projects in 2 different directories, then no. Maven will simply use the latest deployed artifact in your local repo cache. Wayne On 11/21/07, LinaTomy <[EMAIL PROTECTED]> wrote: > > Maven dependency plugin has a goal copy-dependencies which has this > parameter > overWriteIfNewer Overwrite artifacts that don't exist or are older than the > source. > > Similarly I was wondering whether it would be able to compare project with > latest source and if modified recompile it. If not just a property that can > be set so as to force an install of dependencies for a project. > > > Juven Xu wrote: > > > > I'm wondering how can Maven konw project B has been modified or updated. > > > > Juven > > > > On Nov 22, 2007 8:29 AM, LinaTomy <[EMAIL PROTECTED]> wrote: > > > >> > >> I have a project A that is Dependant on project B. When i build and > >> package > >> project A I want it to recompile and package project B if it has been > >> modified or updated. Is this possible? > >> > >> Thanks a lot > >> Lina > >> -- > >> View this message in context: > >> > http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a13888849 > >> Sent from the Maven - Users mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a13889529 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]