内容目录

一、常见问题

OpenComputer模组编译问题

  1. jei依赖下载失败
    file
    解决方案
    jei开发文档 新增jei依赖
    https://github.com/mezz/JustEnoughItems/wiki/Getting-Started

    repositories {
    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"
    }
    }
  2. Could not open init generic class cache for initialization script
    file
    解决方案
    删掉对应路径下的缓存, 重新加载gradle项目
    file

  3. Jenkins构建出现编码问题
    file
    解决方案
    在对应Gradle脚本找到JVM, 添加参数"-Dfile.encoding=UTF-8"
    更多设置参考这篇blog https://www.jianshu.com/p/9093948d2a96
    file

  4. 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
    file
    解决方案
    暂无

  5. Could not find artifact org.spigotmc:spigot:jar:remapped-mojang:1.18.2-R0.1-SNAPSHOT
    file
    解决方案
    下载构建工具
    地址: https://www.spigotmc.org/wiki/buildtools/
    file
    选择SPIGOT和CRAFTBUKKIT, 以及勾选生成Remapped Jars
    file
    然后编译
    file
    生成了spigot-1.18.2-R0.1-SNAPSHOT-remapped-mojang.jar文件
    file

二、相关配置

JDK
下载地址:
Oracle https://www.oracle.com/java/technologies/downloads/#java8-windows
微软 https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-17

三、CatServer构建参数

file

jenkins构建出现The value of a manifest attribute must not be null (Key=Git-Branch).
解决方案: 直接删除对应build.gradle的jar{}
file

发表评论