我正在尝试将jMonkeyEngine 3与Scala一起使用(使用IntelliJ作为IDE,在SBT驱动的Scala项目中)。几个月前添加了Maven distribution,我尝试从这个maven存储库中提取JME。这是我添加到build.sbt文件中的内容:
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies += "com.jme3" % "jmonkeyengine3" % "3.0.0.20140325-SNAPSHOT"
唯一下载的jmonkeyengine3-3.0.0.20140325-SNAPSHOT.jar
jar似乎只包含测试(文件夹jme3test),而不是JME库本身。需要添加什么才能下载它们?
答案 0 :(得分:4)
正如mkrakhin在他的回答中所写,有必要添加所有依赖项。 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"
答案 1 :(得分:1)
检查他们的pom.xml。看来,jmonkeyengine3只包含演示类。您需要下载其他依赖项。此外,不建议使用Maven依赖项。他们建议改用SDK安装程序。