简体   繁体   English

使用SBT下载jMonkeyEngine

[英]Download jMonkeyEngine using SBT

I am trying to use jMonkeyEngine 3 with Scala (using IntelliJ as an IDE, in a SBT driven Scala project). 我正在尝试将jMonkeyEngine 3与Scala一起使用(在SBT驱动的Scala项目中使用IntelliJ作为IDE)。 As Maven distribution was added few months ago, I try to pull the JME from this maven repository. 随着几个月前添加Maven发行版 ,我尝试从此Maven存储库中提取JME。 This is what I have added into my build.sbt file: 这是我添加到build.sbt文件中的内容:

resolvers += Resolver.sonatypeRepo("snapshots")

libraryDependencies += "com.jme3" % "jmonkeyengine3" % "3.0.0.20140325-SNAPSHOT"

The only jar downloaded jmonkeyengine3-3.0.0.20140325-SNAPSHOT.jar seems to contain the tests only (folder jme3test), not the JME libraries itself. 下载的唯一jar文件jmonkeyengine3-3.0.0.20140325-SNAPSHOT.jar似乎仅包含测试(文件夹jme3test),而不包含JME库本身。 What needs to be added to that they are downloaded as well? 它们也需要下载什么?

As mkrakhin wrote in his answer, it is necessary to add all dependencies. 正如mkrakhin在回答中所写,有必要添加所有依赖项。 The SBT code for this is as follows: SBT代码如下:

resolvers += Resolver.sonatypeRepo("snapshots")

val jmeVersion = "3.0.0.20140325-SNAPSHOT"

libraryDependencies += "com.jme3" % "jmonkeyengine3" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-desktop" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-core" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-lwjgl" % jmeVersion

libraryDependencies += "com.jme3" % "lwjgl" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-lwjgl-natives" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-jbullet" % jmeVersion

libraryDependencies += "com.jme3" % "jbullet" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-blender" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-desktop" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-effects" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-networking" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-plugins" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-terrain" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-jogg" % jmeVersion

libraryDependencies += "com.jme3" % "j-ogg-oggd" % jmeVersion

libraryDependencies += "com.jme3" % "j-ogg-vorbisd" % jmeVersion

libraryDependencies += "com.jme3" % "jinput" % jmeVersion

libraryDependencies += "com.jme3" % "eventbus" % jmeVersion

libraryDependencies += "com.jme3" % "stack-alloc" % jmeVersion

libraryDependencies += "com.jme3" % "vecmath" % jmeVersion

libraryDependencies += "com.jme3" % "xmlpull-xpp3" % jmeVersion

libraryDependencies += "com.jme3" % "jME3-niftygui" % jmeVersion

libraryDependencies += "com.jme3" % "nifty" % jmeVersion

libraryDependencies += "com.jme3" % "nifty-default-controls" % jmeVersion

libraryDependencies += "com.jme3" % "nifty-examples" % jmeVersion

libraryDependencies += "com.jme3" % "nifty-style-black" % jmeVersion

libraryDependencies += "junit" % "junit" % "3.8.1"

Check their pom.xml . 检查他们的pom.xml It seems, that jmonkeyengine3 just contains demo classes. 似乎jmonkeyengine3仅包含演示类。 And you need to download additional dependencies. 并且您需要下载其他依赖项。 Also, using of Maven dependency is not recommended. 另外,不建议使用Maven依赖项。 They recommend to use SDK installer instead. 他们建议改为使用SDK安装程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM