webbukkit / DynmapBlockScan

Tool to scan post-1.8 MC blocks and JSON model data to automatically generate Dynmap models
63 stars 30 forks source link

Fixed BUILD FAILED on linux #39

Closed r888800009 closed 2 years ago

r888800009 commented 5 years ago

Hi, I try to build the DynmapBlockScan but build failed. And use the command:

./gradlew build

Then I got the below error message:

> Configure project :
This mapping 'snapshot_nodoc_20171021' was designed for MC 1.12! Use at your own peril.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/username/DynmapBlockScan/build.gradle' line: 84

* What went wrong:
Could not determine the dependencies of task ':jar'.
> Could not resolve all files for configuration ':dynmap'.
   > Could not find us.dynmap:DynmapCoreAPI:3.0-SNAPSHOT.
     Searched in the following locations:
       - https://files.minecraftforge.net/maven/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/maven-metadata.xml
       - https://files.minecraftforge.net/maven/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.pom
       - https://files.minecraftforge.net/maven/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - https://repo.maven.apache.org/maven2/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.pom
       - https://repo.maven.apache.org/maven2/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - https://libraries.minecraft.net/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/maven-metadata.xml
       - https://libraries.minecraft.net/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.pom
       - https://libraries.minecraft.net/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - file:/home/username/.m2/repository/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/maven-metadata.xml
       - file:/home/username/.m2/repository/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.pom
       - file:/home/username/.m2/repository/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - file:/home/username/.gradle/caches/minecraft/deobfedDeps/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/maven-metadata.xml
       - file:/home/username/.gradle/caches/minecraft/deobfedDeps/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.pom
       - file:/home/username/.gradle/caches/minecraft/deobfedDeps/us/dynmap/DynmapCoreAPI/3.0-SNAPSHOT/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - file:/home/username/.gradle/caches/minecraft/net/minecraftforge/forge/1.12.2-14.23.4.2705/snapshot_nodoc/20171021/DynmapCoreAPI-3.0-SNAPSHOT.jar
       - file:/home/username/.gradle/caches/minecraft/net/minecraftforge/forge/1.12.2-14.23.4.2705/snapshot_nodoc/20171021/DynmapCoreAPI.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s

The error looks like the gradle try to search Incorrect location. So I modified build.gradle. Then compiled successfully.