Cannot build main with maven #3230
-
First time I am trying to build rdf4j. I just cloned the repo and went on to build using
One of the tests fails:
maven versions 3.6.3 and 3.8.1 (tried both) Interestingly, the test passes when I run it via Intellij. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Nifty. Looks like a file encoding issue. I haven't looked into that test, but from the test name I guess it tests the system local file encoding. |
Beta Was this translation helpful? Give feedback.
-
Interesting, trying to reproduce this on Win10 R2, with AdoptOpenJDK (16 instead of 15) OpenJ9 0.26, maven 3.6.3 in git 2.31.1 command shell.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting this. I think this is a bug in the JsonParser nextParser = factory.createParser(new ByteArrayInputStream(line.getBytes())); In particular, the To fix, upgrade your system to Linux. I kid. I'll log a bug ticket for this. I don't think the fix is hard but it needs a careful eye (I'm also a bit suspicious of the fact that that protected method override for |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this. I think this is a bug in the
NDJSONLDParser
that only manifests itself when running the test suite on a Windows machine. The root cause of the issue is, I suspect line 63:In particular, the
line.getBytes()
has no encoding supplied, so it falls back to the default platform encoding (which on Windows is not UTF-8 but something like windows-1250, which the underlying JSON parser doesn't expect).To fix, upgrade your system to Linux.
I kid. I'll log a bug ticket for this. I don't think the fix is hard but it needs a careful eye (I'm also a bit suspicious of the fact that that p…