在gate文件夹上运行'./gradlew'会引发错误

时间:2017-10-27 13:42:03

标签: spinnaker

我正在尝试通过从git克隆它来构建spinnaker门。当我从gate文件夹中运行./gradlew时,我收到以下错误

error: error reading /home/~/gate/gate-core/build/libs/gate-core-4.10.0-SNAPSHOT.jar; invalid header field
Note: /home/~/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/appengine/StorageAccountService.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
startup failed:
/home/~/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateConfig.groovy: 31: unable to resolve class com.netflix.spinnaker.gate.retrofit.Slf4jRetrofitLogger
 @ line 31, column 1.
   import com.netflix.spinnaker.gate.retrofit.Slf4jRetrofitLogger
   ^

/home/~/gate/gate-web/src/main/groovy/com/netflix/spinnaker/gate/config/GateConfig.groovy: 33: unable to resolve class com.netflix.spinnaker.gate.services.internal.ClouddriverService
 @ line 33, column 1.
   import com.netflix.spinnaker.gate.services.internal.ClouddriverService
   ^
.
.
.
.
71 errors

:gate-web:compileGroovy FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gate-web:compileGroovy'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
---------------------------------------------

需要帮助。

感谢。

1 个答案:

答案 0 :(得分:0)

嗯,我刚刚尝试了以下内容:

git clone https://github.com/spinnaker/gate.git
cd gate
./gradlew

所有编译和Gate按预期启动(使用JDK8u111)。你确定你没有改变什么吗?也许尝试新的克隆。