Add a section in project B's pom.xml:

    <dependencies>
        <dependency>
            <groupId>my-group</groupId>
            <artifactId>project-A</artifactId>
            <version>1.0-SNAPSHOT</version>
            <scope>compile</scope>
        </dependency>
          ...
    </dependencies>

You might need to configure the scope property to something other than
compile if you don't want A's jar file to be included with B's
artifacts. Generally, you can leave it as compile.

Hope this helps,

-Dov
 

-----Original Message-----
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 5:39 PM
To: users@maven.apache.org
Subject: Need help setting up a transitive dependency

Here's a maven 101 question:

I need help setting up a transitive dependency. I have project A, which
is properly set up and building using maven. Now I need to configure
project B to depend on project A. How do I configure this in my pom.xml
to refer to another project?

Thanks for your help....

Brad

---------------------------------------------------------------------
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]

Reply via email to