对于像我这样的新手 Scala 程序员来说,这似乎是一个共同的主题......
val main = PlayProject(appName, appVersion, appDependencies).settings(defaultJavaSettings:_*).settings(
resolvers += Resolver.file("private") artifacts "C:/java/repository/[organisation]/[module]/[revision]/[artifact].[ext]" ivys "C:/java/repository/[organisation]/[module]/ivy-[revision].xml"
resolvers += Resolver.url("public") artifacts "https://foo.com/ivy-repository/[organisation]/[module]/[revision]/[artifact].[ext]" ivys "https://foo.com/ivy-repository/[organisation]/[module]/ivy-[revision].xml"
)
这两行一起产生错误:
[error] C:\java\play-2.0-beta\base\project\Build.scala:16: ')' expected but '.' found.
[error] resolvers += Resolver.url("webster") artifacts "https://dev.blackrock.com/ivy-repository/[organisation]/[module]/[revision]/[artifact].[ext]" ivys "https://dev.blackrock.com/ivy-repository/[organisation]/[module]/ivy-[revision].xml"
[error] ^
[error] C:\java\play-2.0-beta\base\project\Build.scala:17: ';' expected but ')' found.
[error] )
[error] ^
[error] two errors found
如果我删除一行,它会起作用,不管是哪一行。更改行的顺序没有区别。
任何人都可以引导我正确吗?