Re: [sbt] [sbteclipse] EclipsePlugin$EclipseClasspathEntryTransformerFactory not found - ivy2 cache problem?

355 views
Skip to first unread message

Heiko Seeberger

unread,
Jun 11, 2012, 11:52:38 PM6/11/12
to simple-b...@googlegroups.com
Hi Sven,

Please try the following:
  1. Delete all target directories under ~/.sbt/plugins
  2. Delete all target directories under <your-project>/project

Then try again.

Heiko

On Jun 11, 2012, at 9:22 PM, Sven Viehmeier wrote:

Hi,

I have a problem when I try to run the sbteclipse plugin. It always throws a "NoClassDefFoundError" stating that "EclipsePlugin$EclipseClasspathEntryTransformerFactory" is missing.
I followed the instructions on the GitHub page and added the plugin using
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0-RC1")
I also checked that I am running sbt version 0.11.3.
When I look in the ivy2 cache, I find the sbteclipse-plugin.jar and sbteclipse-core.jar in the correct folder structure and they also include the class file that sbt does not find. The weird thing is that the jars are lying as subfolders in "~\.ivy2\cache\scala_2.9.1\sbt_0.11.3" (so in fact I find them the core jar in "~\.ivy2\cache\scala_2.9.1\sbt_0.11.3\com.typesafe.sbteclipse\sbteclipse-core\jars") and not in the ivy2-cache directly.
I guess this mixes up some internal classpathes and causes the error, but I don't know how to solve it. Does anyone have a hint?

Many thanks in advance,
Sven

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/gAlS8YZbpLYJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Heiko Seeberger

unread,
Jun 13, 2012, 1:12:15 AM6/13/12
to simple-b...@googlegroups.com
That's weird.

Maybe give the approach a second try, but before that delete ~/.ivy2/local and ~/.ivy2/cache.

Ah, another idea: Is there a build.properties file in your project's project/ directory? If yes, does it have a property sbt.version?

Heiko

On Jun 12, 2012, at 4:01 PM, Sven Viehmeier wrote:

Hi Heiko,

thanks for your fast answer. Unfortunately, it did not solve the problem. I deleted all target folders in my project. I also checked the ~/.sbt folder but it does not contain a plugins folder. It only contains a boot folder that I deleted as well. I also cleared the ivy2-cache but I still get the error and the same directory structure in the ivy2-cache as before.
Do you or anyone else have another suggestion?

Cheers,
Sven


Am Dienstag, 12. Juni 2012 05:52:38 UTC+2 schrieb Heiko Seeberger:
Hi Sven,

Please try the following:
  1. Delete all target directories under ~/.sbt/plugins
  2. Delete all target directories under <your-project>/project

Then try again.

Heiko

On Jun 11, 2012, at 9:22 PM, Sven Viehmeier wrote:

Hi,

I have a problem when I try to run the sbteclipse plugin. It always throws a "NoClassDefFoundError" stating that "EclipsePlugin$EclipseClasspathEntryTransformerFactory" is missing.
I followed the instructions on the GitHub page and added the plugin using
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0-RC1")
I also checked that I am running sbt version 0.11.3.
When I look in the ivy2 cache, I find the sbteclipse-plugin.jar and sbteclipse-core.jar in the correct folder structure and they also include the class file that sbt does not find. The weird thing is that the jars are lying as subfolders in "~\.ivy2\cache\scala_2.9.1\sbt_0.11.3" (so in fact I find them the core jar in "~\.ivy2\cache\scala_2.9.1\sbt_0.11.3\com.typesafe.sbteclipse\sbteclipse-core\jars") and not in the ivy2-cache directly.
I guess this mixes up some internal classpathes and causes the error, but I don't know how to solve it. Does anyone have a hint?

Many thanks in advance,
Sven

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/gAlS8YZbpLYJ.
To post to this group, send email to simple-build-tool@googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/bLkAvLZhlKUJ.

Heiko Seeberger

unread,
Jun 13, 2012, 5:39:18 AM6/13/12
to simple-b...@googlegroups.com
On Jun 13, 2012, at 9:52 AM, David Illsley wrote:

> Coincidentally I've run into this as well today. For me it seems to be some kind of incompatibility with the Play plugin (when I remove that from my plugins.sbt, the problems goes away).

Ah, good catch. The play plugin depends on a certain version of sbteclipse. If you add a different version to your build, you are opening the door to classpath hell widely ;-)

Heiko

Mark Harrah

unread,
Jun 13, 2012, 8:56:13 PM6/13/12
to simple-b...@googlegroups.com
On Wed, 13 Jun 2012 11:00:53 -0700 (PDT)
Sven Viehmeier <svieh...@googlemail.com> wrote:

> Thanks for the hint with the play-plugin David. That was causing my issues
> as well.
> I checked the Play homepage and found out that Play, since version 2.0-RC1,
> already includes sbteclipse. So I removed sbteclipse and used the eclipsify
> command in Play. This works fine :)
> Thank you very much for your help!

We may be able to provide a better error message that indicates the problem may be due to incompatible plugins and perhaps list which plugins had conflicts resolved (that is, multiple versions were requested and Ivy picked one). Could you open an issue?

-Mark
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/UNtd25hLj1MJ.
Reply all
Reply to author
Forward
0 new messages