Sanjay,

I'm not sure I understand your question (I'm not familiar with maven 1), but if you want the maven eclipse plugin to produce an eclipse project depending on another eclipse project (instead of depending on a jar in the local repo), then have a look at this:

http://maven.apache.org/guides/mini/guide-ide-eclipse.html

In the example, module1 depends on core. Running "mvn eclipse:eclipse" from the parent's directory results in a dependency on another eclipse project:

// in module1/.classpath
<classpathentry kind="src" path="/core"/>

instead of a dependency on a jar:

// in module1/.classpath
<classpathentry kind="var" path="M2_REPO/com/example/core/1.1.2/ core-1.1.2.jar"/>

Cheers,
-Ralph.


On 13.01.2006, at 03:25, Napoleon Esmundo Ramirez wrote:
Hello,

In Maven 2, it is not possible to define properties for a given
dependency--according to the project descriptor (
http://maven.apache.org/maven-model/maven.html#class_dependency).

I think you need a plugin that can be configured to handle such
dependencies.

Cheers!
Nap

On 1/13/06, Sanjay Choudhary <[EMAIL PROTECTED]> wrote:

posting again....!! Eclipse plugin team, please advice.

---------- Forwarded message ----------
From: Sanjay Choudhary <[EMAIL PROTECTED]>
Date: Jan 12, 2006 8:30 AM
Subject: [M2] eclipse project dependecy - how to define?
To: Maven Users List <[email protected]>

In maven 1.0.2 we were able to define eclipse project dependency. For
example

<dependency>
    <groupId>
    <artifactId>
     <version>
     <properties>
          <eclipse.dependency>true</eclipse.dependency>
       </properties>
</dependency>


How can I define project depency for Eclipse in M2?  Pls. advice.

Thanks
-Sanjay




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to