You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by LinaTomy <lt...@taxcient.com> on 2007/11/22 01:29:39 UTC

maven rebuild dependency

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven rebuild dependency

Posted by LinaTomy <lt...@taxcient.com>.
Thanks a lot Wayne

                        Wouldn't it be a good feature to be able to specify
that all dependencies for a particular project needs to be rebuilt or not
according to the requirements? That way we do not have to worry about a
dependent project being modified and us not having the latest version when
our project is being built. 

Wayne Fay wrote:
> 
> If they share a parent, and are declared as  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  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  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: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> 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: 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/maven-rebuild-dependency-tf4853620s177.html#a13953566
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: maven rebuild dependency

Posted by Wayne Fay <wa...@gmail.com>.
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 <lt...@taxcient.com> 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 <lt...@taxcient.com> 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: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
>
> --
> 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: 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: maven rebuild dependency

Posted by LinaTomy <lt...@taxcient.com>.
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 <lt...@taxcient.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 

-- 
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven rebuild dependency

Posted by Juven Xu <ju...@gmail.com>.
I'm wondering how can Maven konw project B has been modified or updated.

Juven

On Nov 22, 2007 8:29 AM, LinaTomy <lt...@taxcient.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>