我正在尝试在每个团队城市代理上运行锌来加速我们的混合java / scala maven构建。 经过几次成功运行后,锌会出现以下错误:
Compiling 1 Scala source and 9 Java sources to /TCAgent-7.1.1/work/a731b4b8b725b627/test/target/classes...
Compiling 9 Scala sources and 42 Java sources to /TCAgent-7.1.1/work/a731b4b8b725b627/dep/target/classes...
error . does not exist or is not a directory
error . does not exist or is not a directory
info Error occurred during initialization of VM
info java.lang.Error: Properties init: Could not determine current working directory.
info at java.lang.System.initProperties(Native Method)
info at java.lang.System.initializeSystemClass(System.java:1115)
两个目录都存在(ls -la显示内容):
/TCAgent-7.1.1/work/a731b4b8b725b627/test/target/classes
/TCAgent-7.1.1/work/a731b4b8b725b627/dep/target/classes
此目录存在 如果我重新启动锌,错误会在几次运行后再次出现。 我用以下命令开始使用锌:
zinc -start -debug
这是我的maven scala插件conf:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.6</version>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>compile</goal>
</goals>
<phase>compile</phase>
</execution>
<execution>
<id>test-compile</id>
<goals>
<goal>testCompile</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<phase>process-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<recompileMode>incremental</recompileMode>
<useZincServer>true</useZincServer>
</configuration>
</plugin>
为什么会发生这种情况?