You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Kervin L. Pierre" <ke...@adevsoft.com> on 2005/12/04 20:52:48 UTC

M2_REPO not resolving in eclipse - Re: Newbie repository question

Christoph Schönfeld wrote:
> Just set up a variable in eclipse, M2_REPO, and point it to the location
> of your local repository (which is where maven stores the downloaded
> files). The value for the variable needs to be: $USER/.m2/repository.
> 
> The variable can be created in Window>Preferences>Run/Debug/String
> Substitution.
> 

I have done this, but at startup eclipse complains
about...

Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar' 
in project

The M2_REPO variable as been defined in the
'String Substitution' preference sheet as
'$USER/.m2/repository'

Any idea why eclipse can not resolve the
M2_REPO variable?

The classpathentry tag in the .classpath file
looks like...
   <classpathentry kind="var" 
path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>

Any help would be great.

Regards,
Kervin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: M2_REPO not resolving in eclipse - Re: Newbie repository question

Posted by stefano <s....@gmail.com>.
In data Sun, 04 Dec 2005 20:52:48 +0100, Kervin L. Pierre  
<ke...@adevsoft.com> ha scritto:

do not use "String substitution" panel, M2_REPO must be set in "Classpath  
Variables"
under Java->Build Path


> Christoph Schönfeld wrote:
>> Just set up a variable in eclipse, M2_REPO, and point it to the location
>> of your local repository (which is where maven stores the downloaded
>> files). The value for the variable needs to be: $USER/.m2/repository.
>>  The variable can be created in Window>Preferences>Run/Debug/String
>> Substitution.
>>
>
> I have done this, but at startup eclipse complains
> about...
>
> Unbound classpath variable: 'M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar'  
> in project
>
> The M2_REPO variable as been defined in the
> 'String Substitution' preference sheet as
> '$USER/.m2/repository'
>
> Any idea why eclipse can not resolve the
> M2_REPO variable?
>
> The classpathentry tag in the .classpath file
> looks like...
>    <classpathentry kind="var"  
> path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
>
> Any help would be great.
>
> Regards,
> Kervin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org