我正在尝试从源代码构建 CAS 服务器并按 url 逐步运行 Build Process
我在步骤构建中遇到此错误:
./gradlew build install --parallel -x test -x javadoc -x check
错误消息:
An exception has occurred in the compiler (1.8.0_66). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you.
Task :api:cas-server-core-api-webflow:compileJava java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sun.tools.javac.util.JavacMessages.add(Lcom/sun/tools/javac/util/JavacMessages$ResourceBundleHelper;)V
最佳答案
如果您克隆了 master 分支,那么您现在至少需要 JDK10。如果克隆 5.3.x 或 5.3.x 分支,则可以使用 JDK 8。检查 gradle.properties 以获得所需的 JDK 版本。
关于java - 构建 cas (SSO) apereo 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51230120/