我想使用giter8创建一个带vaadin的scala项目,但是有一个问题:
new-host-3:sms oliviersaint-eve$ g8 ripla/vaadin-scala
Template for Vaadin Scala projects.
package [com.example]: lorry.mars2013
name [Vaadin Scala project]: Test6
classname [VaadinScala]:
Template applied in ./test6
new-host-3:sms oliviersaint-eve$ cd Test6
new-host-3:Test6 oliviersaint-eve$ ls
build.sbt project src
new-host-3:Test6 oliviersaint-eve$ sbt
[info] Loading global plugins from /Users/oliviersaint-eve/.sbt/0.13/plugins
[error] scala.MatchError: 0.13.0 (of class java.lang.String)
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
我使用的是mac(mac os 10.7.5),g8 0.5.3,sbt 0.13.0和java 1.7.0_45。
你可以帮帮我吗? 编辑:@Jacek: sbt about =>new-host-3:poubelle oliviersaint-eve$ sbt about
[info] Set current project to poubelle (in build file:/Users/oliviersaint-eve/sms/poubelle/)
[info] This is sbt 0.13.0
[info] The current project is {file:/Users/oliviersaint-eve/sms/poubelle/}poubelle 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.2
[info]
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.2
“test6”中的文件/目录: * build.sbt:
name := "Test6"
scalaVersion := "2.9.2"
seq(webSettings: _*)
resolvers += "Vaadin add-ons repository" at "http://maven.vaadin.com/vaadin-addons"
// basic dependencies
libraryDependencies ++= Seq(
"com.vaadin" % "vaadin" % "6.8.2",
"org.vaadin.addons" % "scaladin" % "2.0.0",
"org.eclipse.jetty" % "jetty-webapp" % "8.0.4.v20111024" % "container"
)
目录: *的src /主/阶/货车/ mars2013 / VaadinScalaApplication.scala:
package lorry.mars2013
import vaadin.scala._
class VaadinScalaApplication extends Application("Test6") {
override val main: ComponentContainer = new VerticalLayout {
margin = true
components += Label("This Vaadin app uses Scaladin!")
}
}
*的src /主/阶/货车/ mars2013 / VaadinScalaWidgetset.gwt.xml:
<!-- Add widgetset modules from add-ons here. E.g.
<inherits name="org.vaadin.teemu.ratingstars.gwt.RatingStarsWidgetset" />
-->
</module>
*的src /主/ web应用/ WEB-INF /网络/ XML:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="VaadinScala" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Test6</display-name>
<context-param>
<description>
Vaadin production mode</description>
<param-name>productionMode</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>Test6</servlet-name>
<servlet-class>com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
<init-param>
<description>Vaadin application class to start</description>
<param-name>application</param-name>
<param-value>lorry.mars2013.VaadinScalaApplication</param-value>
</init-param>
<!--<init-param>
<description>Application widgetset</description>
<param-name>widgetset</param-name>
<param-value>lorry.mars2013.VaadinScalaWidgetset</param-value>
</init-param>-->
</servlet>
<servlet-mapping>
<servlet-name>Test6</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
谢谢! 我不太明白你的文字格式是什么意思;您是否希望我为您提供文件链接以便自己尝试(例如通过“pastebin”)?