grails-2.3.0.M1无法在IntelliJ IDEA 130.754中启动

时间:2013-06-04 13:51:19

标签: grails intellij-idea

我在IntelliJ IDEA 130.754上的grails 2.2.1上运行了项目。

将grails版本升级到2.3.0.M1 grails无法启动

从IDEA控制台登录

/home/aram/local/java/bin/java -Dgrails.home=/home/aram/local/grails-2.3.0.M1 -Dbase.dir=/home/aram/projects/grails/app/formx -Dtools.jar=/home/aram/local/java/lib/tools.jar -Dgroovy.starter.conf=/home/aram/local/grails-2.3.0.M1/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Dfile.encoding=UTF-8 -classpath /home/aram/local/grails-2.3.0.M1/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.1.3.jar:/home/aram/local/grails-2.3.0.M1/dist/grails-bootstrap-2.3.0.M1-sources.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /home/aram/local/grails-2.3.0.M1/conf/groovy-starter.conf upgradeError: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter

我猜问题是

  /home/aram/local/grails-2.3.0.M1/dist/grails-bootstrap-2.3.0.M1-sources.jar

也许需要

/home/aram/local/grails-2.3.0.M1/dist/grails-bootstrap-2.3.0.M1.jar 

代替。

如何解决问题?

1 个答案:

答案 0 :(得分:18)

作为解决方法,您可以从$ GRAILS_HOME / dist

中删除所有“grails - * - 2.3.0.M1-sources.jar”和“grails - * - 2.3.0.M1-javadocs.jar”

问题将在下一个EAP中修复。