gpt4 book ai didi

java - JmonkeyEngine gradlew 构建不起作用

转载 作者:行者123 更新时间:2023-12-02 11:42:33 24 4
gpt4 key购买 nike

我是 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)

发生了什么或者我做错了什么?

最佳答案

通过查看readme获取您需要第一次调用的所有依赖项

 build_engine.sh

Note: Currently, the SDK has to build the engine on it's own, because not all needed dependencies are in mavenCentral/jCenter. Thus you have to call build_engine.sh first on a Linux System, Inside your Windows-Git-Shell or you can manually checkout the jMonkeyEngine repository and then invoke gradlew.bat -PbuildJavaDoc=true install. This will add all jMonkeyEngine Libraries into your local maven "server".

然后

 ./gradlew run 

If you just want to run the SDK on your machine

关于java - JmonkeyEngine gradlew 构建不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48446675/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com