一、常见问题
OpenComputer模组编译问题
-
jei依赖下载失败
解决方案
jei开发文档 新增jei依赖
https://github.com/mezz/JustEnoughItems/wiki/Getting-Startedrepositories { maven { // location of the maven that hosts JEI files name = "Progwml6 maven" url = "https://dvs1.progwml6.com/files/maven/" } maven { // location of a maven mirror for JEI files, as a fallback name = "ModMaven" url = "https://modmaven.dev" } }
-
Could not open init generic class cache for initialization script
解决方案
删掉对应路径下的缓存, 重新加载gradle项目
-
Jenkins构建出现编码问题
解决方案
在对应Gradle脚本找到JVM, 添加参数"-Dfile.encoding=UTF-8"
更多设置参考这篇blog https://www.jianshu.com/p/9093948d2a96
-
Caused by: org.gradle.process.internal.ExecException: Process ‘command java.exe” finished with non-zero exit value -1 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:415) at org.gradle.proces
解决方案
暂无 -
Could not find artifact org.spigotmc:spigot:jar:remapped-mojang:1.18.2-R0.1-SNAPSHOT
解决方案
下载构建工具
地址: https://www.spigotmc.org/wiki/buildtools/
选择SPIGOT和CRAFTBUKKIT, 以及勾选生成Remapped Jars
然后编译
生成了spigot-1.18.2-R0.1-SNAPSHOT-remapped-mojang.jar文件
二、相关配置
JDK
下载地址:
Oracle https://www.oracle.com/java/technologies/downloads/#java8-windows
微软 https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17
三、CatServer构建参数
jenkins构建出现The value of a manifest attribute must not be null (Key=Git-Branch).
解决方案: 直接删除对应build.gradle的jar{}