我是JMonkeyEngine的初学者。我克隆了存储库JMonkeyEngine SDK based on Netbeans,然后在终端中运行了./ gradlew build
并返回了此错误:
FAILURE: Build failed with an exception.
* Where:
Build file '/var/www/html/programas/sdk/build.gradle' line: 346
* What went wrong:
A problem occurred evaluating root project 'sdk'.
> Could not resolve all files for configuration ':optlibs'.
> Could not resolve org.jmonkeyengine:jme3-jbullet:3.2.0-SNAPSHOT.
Required by:
project :
> Could not resolve org.jmonkeyengine:jme3-jbullet:3.2.0-SNAPSHOT.
> Could not parse POM /home/jramirez/.m2/repository/org/jmonkeyengine/jme3-jbullet/3.2.0-SNAPSHOT/jme3-jbullet-3.2.0-SNAPSHOT.pom
> Unable to resolve version for dependency 'jbullet:jbullet:jar'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
java版
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) Server VM (build 25.161-b12, mixed mode)
发生了什么事或我做错了什么?
答案 0 :(得分:1)
通过查看readme来获取您需要首次调用的所有依赖项
build_engine.sh
注意:目前,SDK必须自己构建引擎,因为并非所有需要的依赖项都在mavenCentral / jCenter中。因此,您必须首先在Linux系统上调用build_engine.sh,在Windows-Git-Shell内部,或者您可以手动检出jMonkeyEngine存储库,然后调用gradlew.bat -PbuildJavaDoc = true install。这会将所有jMonkeyEngine库添加到本地maven“服务器”。
然后
./gradlew run
如果您只想在计算机上运行SDK