我有Eclipse IDE(面向Web开发人员的Eclipse Java EE IDE。版本:Luna Service Release 1(4.4.1))。通过eclipe marketplace为eclipse版本3.0.x安装了Scala IDE。但是我无法创建一个scala项目,New - >项目 - >没有scala选项。我有scala 2.11,sbt在我的本地机器上,scala正在命令提示符下工作。这是eclipse最新版本的问题吗?
答案 0 :(得分:1)
org.osgi.framework.BundleException: Could not resolve module: org.scala-ide.sdt.core [852]
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.scala-ide.sdt.core [osgi.identity; osgi.identity="org.scala-ide.sdt.core"; type="osgi.bundle"; version:Version="4.0.0.m3-2_11-201407241647-33f4f20"; singleton:="true"] because it is exposed to package 'javax.xml.bind' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140606-1445"; singleton:="true"] and javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"] via two dependency chains.
进行了一些搜索,导致conversation in the Scala-IDE google group和Eclipse bug 430458。
解决方法是将-clean
添加到eclipse.ini文件的顶部,这会以某种方式更改依赖关系的解析顺序。
额外提示:当你打开eclipse.ini时,将JVM最大堆大小提升到1024米。