I am using Maven (not gradle) for my builds, in IntelliJ. After upgrading from 3.5.2 to 3.6.0, everything compiles OK, but when I run “mvn package” I get the error
Could not resolve dependencies for project : Failure to find org.jmonkeyengine:lwjgl-platform:jar:2.9.5 in Central Repository:
Looking at maven central, it looks like this artefact only has a pom artefact, but not a jar? I thought a runtime dependency would have to be a .jar? (I am not a maven expert)
There are changes between 3.5 and 3.6 that may have caused this, but it’s a bit strange that nobody else has reported this. Was there something else I need to do to get this working?
FWIW, I manually removed the dependency on lwjgl-platform from jme3-lwjgl-3.6.0-stable.pom (in my local maven) and then everything packaged and ran fine.
I was just looking at the work involved in moving the SDK to use Netbean’s Maven Platform (rather than Ant) and hit this same issue.
Out of interest, does the following also work as a workaround in your project .pom, rather than changing your local Maven? Its the approach I’m thinking of taking…
Actually… that workaround didn’t work.
It did stop the previous build error from happening.
However my application then failed at runtime because lwjgl64.dll was missing from the jar file.
I got
Exception in thread “jME3 Main” java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path: