You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Klaus Botschen <kl...@gmx.at> on 2007/08/03 20:37:16 UTC
eclipse-plugin generates weird classpath entries
hi,
i can't find the reason why i get such strange entries in the classpath file:
<classpathentry kind="var" path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>
<classpathentry kind="var" path="M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar"/>
<classpathentry kind="var" path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
<classpathentry kind="var" path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
> mvn --version
Maven version: 2.0.7
Java version: 1.5.0_12
OS name: "linux" version: "2.6.18.8-0.5-bigsmp" arch: "i386"
> echo $M2_REPO
/home/klaus/ws/m2repo
Has anybody an idea where I can fix this?
Greetings from Vienna, Austria
Klaus
:)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: eclipse-plugin generates weird classpath entries
Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
harald.meyer@rz.uni-karlsruhe.de wrote on Monday, August 06, 2007 9:15 AM:
> Quoting Klaus Botschen <kl...@gmx.at>:
>
>> i can't find the reason why i get such strange entries in the
>> classpath file:
>>
>> <classpathentry kind="var"
>> path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>
>> <classpathentry kind="var"
> path="M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar"/>
>> <classpathentry kind="var"
>> path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
>> <classpathentry kind="var"
>> path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
> Hello Klaus,
> classpath entries similar to those mentioned above are created by
> "maven eclipse:eclipse", the Maven dependencies are mirrored into the
> corresponding <classpathentry ....> elements. However, you need to
> define the classpath variable "M2_REPO" in the Eclipse Build
> preferences, and also in the Eclipse Maven preferences. Both values
> should
> point to your
> local Maven repository (normally located in the hidden directory
> ".m2/repository" in your home directory).
No, they are weird, because a slash is missing after M2_REPO:
<classpathentry kind="var" path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
vs.
<classpathentry kind="var" path="M2_REPO/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
However, I've never seen the eclipse plugin generating wrong paths like this.
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: eclipse-plugin generates weird classpath entries
Posted by ha...@rz.uni-karlsruhe.de.
Quoting Klaus Botschen <kl...@gmx.at>:
> i can't find the reason why i get such strange entries in the classpath file:
>
> <classpathentry kind="var"
> path="M2_REPOant/ant-optional/1.5.1/ant-optional-1.5.1.jar"/>
> <classpathentry kind="var" path="M2_REPOantlr/antlr/2.7.6/antlr-2.7.6.jar"/>
> <classpathentry kind="var"
> path="M2_REPOaopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
> <classpathentry kind="var"
> path="M2_REPOasm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
Hello Klaus,
classpath entries similar to those mentioned above are created by
"maven eclipse:eclipse", the Maven dependencies are mirrored into the
corresponding <classpathentry ....> elements. However, you need to
define the classpath variable "M2_REPO" in the Eclipse Build preferences, and
also in the Eclipse Maven preferences. Both values should point to your
local Maven repository (normally located in the hidden directory
".m2/repository" in your home directory).
Greetings, Harald
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org