Im quoting the answer of Tomas for about the same question i made few
months ago:
...
eclipse.dependency does not refer to an Eclipse project but only tells
the Eclipse plugin whether it should add the dependency to the
project's classpath.  Since an Eclipse project is not recognized as a
dependency type, the dependency you have defined will not be
considered as an Eclipse project and automatically added to the
classpath.  However, you can add an Eclipse project to the classpath
by defining the following in your project.properties file:

maven.eclipse.classpath.include=/test1

Then you also need set eclipse.dependency to false in your
project.xml.  If not, you'll add it once as an Eclipse dependency and
a second time as jar dependency.
...

As you can see eclipse.dependency will download the jar and work with
it only for other maven goals but in your eclipse project will be
linked the eclipse project where the property was set.

Best regards.

[]'s

On 6/30/05, Edmund Urbani <[EMAIL PROTECTED]> wrote:
> Martin Burger wrote:
> 
> > Hello,
> >
> > I tried to define an Eclipse project as dependency in the project.xml.
> > But after calling "maven eclipse" maven tries to download a JAR
> > instead of adding an entry to the .classpath file. I used the sample
> > code at http://maven.apache.org/reference/plugins/eclipse/. Did I
> > misunderstand something? I thought thats the way to
> > add a required project to the build path using maven.
> >
> > Regards,
> >    Martin
> >
> The maven eclipse plugin just includes the artifacts from the maven
> repository for you. It does not create dependencies between eclipse
> projects (even though this would be desirable for SNAPSHOT
> dependencies). AFAIK this can't be done with the current eclipse plugin,
> because it does not know about the other projects in your eclipse
> workspace and their locations in the filesystem.
> 
> Maybe Maven 2.0 can do that. I'm waiting for the first beta release
> before I give it a try.
> 
>  Edmund
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"Nobody knows who i really am
 I never felt this empty before
 And if I never need someone to come along
 Who's gonna comfort me and keep me strong?"
--
Marcell Manfrin Barbacena
[EMAIL PROTECTED]
MSN Messenger: [EMAIL PROTECTED]
ICQ UIN: 63671762
Skype: callto://marcell84bruk
+55 (83) 8808-8555 (Oi)

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

Reply via email to