You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Horlock <pe...@googlemail.com> on 2009/06/06 18:00:21 UTC

eclipse:eclipse

Hi all,

I type mvn eclipse:eclipse to get the necessary project files for eclipse.
Everything works fine,
except the fact that the dependency to the JDK / JRE is always the last one
in the eclipse project setting.
There's another jar that unfortunately has got the exact same class name
(include the entire package name)
as a class of the JDK / JRE. Now as the third party jar appears before the
JDK in the eclipse classpath,
its class gets used instead of the one from the JDK.

What can I do to prevent this from happening?

Thanks,

Peter

Re: eclipse:eclipse

Posted by Barrie Treloar <ba...@gmail.com>.
On Mon, Jun 8, 2009 at 3:25 PM, Peter
Horlock<pe...@googlemail.com> wrote:
> Hello everyone,
>
> I'm still having the problem as described below - can no one help me out,
> please?

This ordering is now the intended behaviour. There is no way to change this.

It is meant to mirror what maven does on compilation.

How does mvn compile or mvn test work for this problem class?
Why does this class exist? Is it not a compatible replacement of the jdk class?

A workaround is for you to manually change the ordering inside eclipse
after running mvn eclipse:eclipse.
Alternatively fix the third party jar that is shading jdk classes.

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


Re: eclipse:eclipse

Posted by Peter Horlock <pe...@googlemail.com>.
Hello everyone,

I'm still having the problem as described below - can no one help me out,
please?

Thanks,

Peter

2009/6/6 Peter Horlock

> Hi all,
>
> I type mvn eclipse:eclipse to get the necessary project files for eclipse.
> Everything works fine,
> except the fact that the dependency to the JDK / JRE is always the last one
> in the eclipse project setting.
> There's another jar that unfortunately has got the exact same class name
> (include the entire package name)
> as a class of the JDK / JRE. Now as the third party jar appears before the
> JDK in the eclipse classpath,
> its class gets used instead of the one from the JDK.
>
> What can I do to prevent this from happening?
>
> Thanks,
>
> Peter
>