Closed karussell closed 8 years ago
Indeed as currently map-matching
has failed tests:
initializationError(com.graphhopper.matching.http.MatchServletTest) Time elapsed: 0.01 sec <<< ERROR!
java.lang.UnsupportedClassVersionError: com/graphhopper/http/GHServer : Unsupported major.minor version 52.0
Fixed now (only ran the tests so far)
The tests pass if I run Maven via command line but not inside IntelliJ (that worked previously):
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project map-matching-web: Compilation failure
hmmh, did you make sure you you either fetched the fresh deps for GH core or build them locally?
For Netbeans and the command line all seems fine though and travis likes it too :)
Yes command line works fine.
I retried with a fresh clone and same result in IDE. Apparently something with Java version. I'll have to check it.
I just tested latest (Java 7/8) GH with a clean IntelliJ profile (system has JDK 7 & 8) and now it fails to build the graphhopper-web module too.
The solution was to declare in IDE level that the projects have to use the JDK 8. Though I was expecting that the Maven should have taken care of it. :worried:
Though I was expecting that the Maven should have taken care of it. :worried:
That is strange. Maybe an IntelliJ bug assuming Java 7 due to the mixed Java versions we use?
Will need some testing. It's supposed to honor the pom declarations and not needing to make changes via the IDE. (BTW the problem happens with latest Idea 2016.1.1)
Unless additional directives need to be written in pom files.
Related to graphhopper/graphhopper/issues/697 as master fails on travis otherwise