使用 Shippable 构建 我的存储库之一 时,出现以下错误:
[ERROR ] COMPILATION ERROR :
[INFO ] -------------------------------------------------------------
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 13 ] cannot find symbol
symbol : class Alert
location : class de. stevenschwenke. java. java8workshop. C_09_JavaFX
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 31 ] cannot find symbol
symbol : class Alert
location : class de. stevenschwenke. java. java8workshop. C_09_JavaFX
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 42 ] package Alert does not exist
[INFO ] 3 errors
[INFO ] -------------------------------------------------------------
[INFO ] ------------------------------------------------------------------------
[INFO ] BUILD FAILURE
特拉维斯的解决方案
请参阅 Travis 问题 4042 。将第 10 行到第 13 行添加到您的 .travis.yml 中似乎会导致 Travis 使用较新的 JDK 版本:
[ERROR ] COMPILATION ERROR :
[INFO ] -------------------------------------------------------------
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 13 ] cannot find symbol
symbol : class Alert
location : class de. stevenschwenke. java. java8workshop. C_09_JavaFX
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 31 ] cannot find symbol
symbol : class Alert
location : class de. stevenschwenke. java. java8workshop. C_09_JavaFX
[ERROR ] /home /shippable /workspace /src /github. com /stevenschwenke /Java8Workshop /src /test /java /de /stevenschwenke /java /java8workshop /C_09_JavaFX. java : [ 193, 42 ] package Alert does not exist
[INFO ] 3 errors
[INFO ] -------------------------------------------------------------
[INFO ] ------------------------------------------------------------------------
[INFO ] BUILD FAILURE
这导致我的构建在 travis 中运行得很好。
可发货解决方案
不幸的是,我现在不知道 Shippable 的解决方案。但是,您可以在我的这个 错误报告 中查看进度。
长话短说
Travis 和 Shippable 在构建 Java 1.8u45 代码时遇到问题。 Travis 有一个解决方法。