2012-08-13 51 views
2

我無法言表。我升級到了STS 2.9.2,希望能夠擺脫我在2.9.1中遇到的大量問題。現在看來問題更加嚴重。SpringsourceTool Suite 2.9.2:抱怨關於groovy-all-1.8.6.jar缺少的UNUSED grails 2.0.3的安裝

除了jline_.dll問題,它不斷提高其醜陋的頭(我發現唯一的解決方案是退出STS,刪除.ivy-cache,並重新啓動STS),現在我可以即使運行我的任何項目,由於一些奇怪的錯誤沒有找到groovy-all-1.8.6.jar。

The archive: C:/springsource/**grails-2.0.3**/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar which is referenced by the classpath, does not exist. 

但 - 我所有的項目都配置爲grails 2.1.0!?!?

我需要在哪裏尋找這個對grails 2.0.3的無賴參考?

謝謝!

回答

3

我發現問題後,經過多次搜索。這個錯誤報告說grails 2.0.3 jar被引用,儘管這當然不是任何活動項目中的設置偏好。我通過所有的偏好和項目文件尋找。沒有找到任何東西。

然後我看到.metadata文件:

./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot 
; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/g 
roovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot 
; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; pat 
h=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF- 
8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/ 
jars/groovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin (run-app).launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF- 
8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quo 
t; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; s 
tandalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groo 
vy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.debug.core/.launches/planG-Admin .launch:<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; s 
tandalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; path=& 
quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
./plang1/.metadata/.plugins/org.eclipse.search/dialog_settings.xml:      <item value="/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-a 
ll/jars/groovy-all-1.8.6.jar" key="textPattern"/> 

與內容

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<launchConfiguration type="com.springsource.sts.grails.core.launchconfig"> 
<stringAttribute key="com.springsource.sts.grails.core.ORG_SCRIPT" value="run-app"/> 
<stringAttribute key="com.springsource.sts.grails.core.PROJECT_DIR" value="C:\workspaces\plang1\planG"/> 
<stringAttribute key="com.springsource.sts.grails.core.SCRIPT" value="run-app"/> 
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/> 
<mapAttribute key="org.eclipse.debug.core.environmentVariables"> 
<mapEntry key="GRAILS_STS_RUNNING" value="true"/> 
</mapAttribute> 
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH"> 
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0&quot; path=&quot;2&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/> 
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/springsource/grails-2.0.3/dist/grails-bootstrap-2.0.3.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Java/jdk1.7.0/lib/tools.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/> 
</listAttribute> 
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/> 
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.codehaus.groovy.grails.cli.support.GrailsStarter"/> 
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="planG"/> 
<stringAttribute key="process_factory_id" value="com.springsource.sts.grails.core.processFactory"/> 
</launchConfiguration> 

我關閉STS,刪除所有文件推出,重啓STS,瞧,它的工作。沒有關於2.0.3 jar文件丟失的更多運行時錯誤。

+1

當我從Grails 2.0更新到2.1時,這也發生在我身上。我只需要從GGTS 3.1(STS的變體)中刪除「run-app」啓動配置,問題就消失了。無需關閉STS。 – 2012-11-01 10:13:30

相關問題