我正在尝试使用Windows批处理文件一个接一个地构建maven项目以及scala项目。为此,我在根文件夹中创建了一个批处理文件,并在其中写入了以下行。虽然我的maven项目正在成功构建,但scala项目无法构建。
call mvn -f A/pom.xml clean install -U
call sbt B\build.sbt clean compile -U
call mvn -f C/pom.xml clean install -U
call sbt D\build.sbt clean compile -U
我得到的错误是:
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode,
or
[warn] consider launching sbt without any commands, or explicitly passing
'shell'
[info] Set current project to my project(in build file:/C:/sample-
project/MyProject/)
[error] Expected ID character
[error] Not a valid command: B
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: B
[error] B\build.sbt
[error] ^
答案 0 :(得分:0)
[解决方案]
以下对我有用......
<button ng-click="canceltime()"></button>