Jemodscn 发表于 2024-7-23 12:02:20

[Forge 1.18.2] Parchment构建失败

快一天了, parchment还是没装上

PS: minecraft forge forum上有个和我几乎一样的问题
但是没人回答...
build.gradle:
buildscript {    repositories {      maven { url = 'https://maven.minecraftforge.net' }      maven { url = 'https://maven.parchmentmc.org' }      ...    }    dependencies {      classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true      classpath 'org.parchmentmc:librarian:1.+'    ......apply plugin: 'net.minecraftforge.gradle'apply plugin: 'org.parchmentmc.librarian.forgegradle'...minecraft {    // 原mapping mappings channel: 'official', version: '1.18.2'    mappings channel: 'parchment', version: '2022.11.06-1.18.2'

报错:
# 主要
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.
Searched in the following locations:
    - file:/C:/Users/***/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2/forge-1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.pom
    - file:/C:/Users/***/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2/forge-1.18.2-40.2.0_mapped_parchment_2022.03.13-1.18.2.jar
Required by:
      project :


Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
# 次要

org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':mavenDownloader_net.minecraftforge_accesstransformers_8.0.+_fatjar_1'

gradle.internal.resolve.ModuleVersionNotFoundException: Cannot resolve external dependency net.minecraftforge:accesstransformers:8.0.+ because no repositories are defined.

Error getting artifact: net.minecraftforge:forge:1.18.2-40.2.0_mapped_parchment_2022.11.06-1.18.2:null@jar fromMinecraftUserRepo

3105901424 发表于 2024-7-27 00:28:08

。。。。

krewella 发表于 2024-8-9 14:59:08

minecraft {
   mappings channel: 'parchment', version: '2022.08.07-1.18.2'
}

build.gradle
plugins {
   // This should be below the net.minecraftforge.gradle plugin
   id 'org.parchmentmc.librarian.forgegradle' version '1.+'
}
settings.gradle
repositories {
         maven { url = 'https://maven.parchmentmc.org' } // Add this line
   }
页: [1]
查看完整版本: [Forge 1.18.2] Parchment构建失败