You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "dekel.y" <de...@gmail.com> on 2008/08/06 11:21:58 UTC

mvn eclipse:eclipse problem .classptah and projects source dependencies

Hi,
When I run mvn eclipse:eclipse, my .classpath points only to the .jars in
the repository,

How can I tell him that if a dependency is a project on my workspace then
point to the project and not to the .jar ?

thanks
Dekel
-- 
View this message in context: http://www.nabble.com/mvn-eclipse%3Aeclipse-problem-.classptah-and-projects-source-dependencies-tp18847315p18847315.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


Re: mvn eclipse:eclipse problem .classptah and projects source dependencies

Posted by Eugene Kuleshov <eu...@md.pp.ru>.

dekel.y wrote:
> 
> If I try it on a single project, it does not work
> Can you please give a full example of the command ?

  Out of curiosity, if you are working with Eclipse, why don't you just use
Maven integration for Eclipse, such as m2eclipse.
http://m2eclipse.codehaus.org/

  It allows to import multiple Maven projects with one step using Maven
project import wizard. See
http://docs.codehaus.org/display/M2ECLIPSE/Importing+Maven+projects

  regards,
  Eugene


-- 
View this message in context: http://www.nabble.com/mvn-eclipse%3Aeclipse-problem-.classptah-and-projects-source-dependencies-tp18847315p18868994.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


Re: mvn eclipse:eclipse problem .classptah and projects source dependencies

Posted by "dekel.y" <de...@gmail.com>.
If I try it on a single project, it does not work
Can you please give a full example of the command ?

thanks
Dekel


dekel.y wrote:
> 
> Yes, you are right
> 
> thanks
> 
> 
> matinh wrote:
>> 
>> On Wednesday 06 August 2008 dekel.y wrote:
>>> Hi,
>>> When I run mvn eclipse:eclipse, my .classpath points only to the .jars
>>> in
>>> the repository,
>>>
>>> How can I tell him that if a dependency is a project on my workspace
>>> then
>>> point to the project and not to the .jar ?
>> 
>> This shoud be done automatically if you run mvn eclipse:eclipse in the 
>> parent of a multimodule project.
>> 
>> If your modules are not part of one parent module, you should 
>> use -DworkspaceToConnect=... See MECLIPSE-344 [0] for details.
>> 
>> hth,
>> - martin
>> 
>> [0] http://jira.codehaus.org/browse/MECLIPSE-344
>> 
>>  
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/mvn-eclipse%3Aeclipse-problem-.classptah-and-projects-source-dependencies-tp18847315p18850257.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


Re: mvn eclipse:eclipse problem .classptah and projects source dependencies

Posted by "dekel.y" <de...@gmail.com>.
Yes, you are right

thanks


matinh wrote:
> 
> On Wednesday 06 August 2008 dekel.y wrote:
>> Hi,
>> When I run mvn eclipse:eclipse, my .classpath points only to the .jars in
>> the repository,
>>
>> How can I tell him that if a dependency is a project on my workspace then
>> point to the project and not to the .jar ?
> 
> This shoud be done automatically if you run mvn eclipse:eclipse in the 
> parent of a multimodule project.
> 
> If your modules are not part of one parent module, you should 
> use -DworkspaceToConnect=... See MECLIPSE-344 [0] for details.
> 
> hth,
> - martin
> 
> [0] http://jira.codehaus.org/browse/MECLIPSE-344
> 
>  
> 

-- 
View this message in context: http://www.nabble.com/mvn-eclipse%3Aeclipse-problem-.classptah-and-projects-source-dependencies-tp18847315p18849249.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


Re: mvn eclipse:eclipse problem .classptah and projects source dependencies

Posted by Martin Höller <ma...@xss.co.at>.
On Wednesday 06 August 2008 dekel.y wrote:
> Hi,
> When I run mvn eclipse:eclipse, my .classpath points only to the .jars in
> the repository,
>
> How can I tell him that if a dependency is a project on my workspace then
> point to the project and not to the .jar ?

This shoud be done automatically if you run mvn eclipse:eclipse in the 
parent of a multimodule project.

If your modules are not part of one parent module, you should 
use -DworkspaceToConnect=... See MECLIPSE-344 [0] for details.

hth,
- martin

[0] http://jira.codehaus.org/browse/MECLIPSE-344