maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n000b <usman_r...@yahoo.com>
Subject Re: Adding Dependency of other Child Project
Date Fri, 26 Jun 2009 08:40:45 GMT

Thanks for your reply Wendy. I did try the same, but maven cannot resolve the
artifact. Do I need to install the artifact somewhere (we are using an
archiva online repository, but I would prefer to have the artifact installed
to some local directory), so that it can be used for the Child Project B
from the local dir.

Any way to achieve this?

Thanks!


Wendy Smoak-3 wrote:
> 
> On Thu, Jun 25, 2009 at 7:51 AM, n000b<usman_riaz@yahoo.com> wrote:
> 
>> How can I
>> let the Child B to know that the Child A has been build & the jar is
>> added
>> to the class path while building the Child B project.
> 
> I think you answered it in your subject line. :)  Add a dependency in B's
> pom:
> 
> <dependency>
>   <groupId>my.group</groupId>
>   <artifactId>A</artifactId>
>   <version>${project.version}</version>
> </dependency>
> 
> -- 
> Wendy
> 
> ---------------------------------------------------------------------
> 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/Adding-Dependency-of-other-Child-Project-tp24204718p24216869.html
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


Mime
View raw message