-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix package Script for Graal #1950
Conversation
No idea currently (except for searching on the Internet but that's obvious...). |
Just tried in Gitpod. I get:
|
Maybe this article is helpful: https://medium.com/@adam_carroll/java-packager-with-jdk11-31b3d620f4a8. It links to a script which runs the packager: https://github.com/Santulator/Santulator/blob/1.1.0/package/bin/build-package.sh. As an alternative, we could might consider GraalVM Native Image as described here. |
The explained script in the article doesn't require runtime arguments like we do with Graal. It also does not require
I have no clue what
GraalVM would be an alternative that should definitively work with Graal.js. Sadly GraalVM doesn't support JavaFX yet (see also here), which removes it from the list currently. |
I'm currently not sure which direction we should take for creating an installer for Phoenicis. The issue is that the whole Java ecosystem seems to be broker currently in regards to creating system dependent installers. Starting with the introduction of the module system in Java 9 and the removal from JavaFX from the main repository it became kind of unclear how to create an installer. The current choices I see (each with their own disadvantages) are:
All solutions have an in my opinion huge risk attached. The most stable and tested solution is the first one, while the other two are kind of new solution. I know this comment is more of a rant from my part but currently I can't really recommend building any kind of installer for/with Java because the current technologies just don't seem mature enough. |
At the end, I think that the package script should more look like this:
|
Also, you may need to exclude jackson from org.mock-server dependency (phoenicis-tools/pom.xml)
|
@qparis can you try if your proposed solution works? |
GraalVM merge request needs to be merged first |
I don't think we can merge the other PR if the packaging does not work (which is also why this PR is vs the graalvm branch). |
I have tried to use the branch, but I don't understand how it works. It seems that we have some old packaging code, and at the end, I end up with the following error:
|
I've just merged master again and the PR does not show any differences in the packaging script. So the packaging code should really be the same as on master (for the graalvm branch). |
Strange, because a Ubuntu deb file is generated when I run package |
Does Phoenicis work if you try to run it from that deb (especially scripts)? |
I'm not testing on Linux, but this deb is not standalone |
I thought the deb is only build on Debian/Ubuntu? |
With jpackager, yes. Not with maven package plugin. This is why I am suspecting that we have old code in the branch |
That's strange. I cannot find anything like that in phoenicis-dist/pom.xml. |
Hmm it was my mistake. My local branch was not fully up-to-date |
Seems that I made it work fairly easily. I'm opening a merge request. Good job |
Superseded by #1957. |
This PR tries to fix the packaging script to work with Graal.js.
When executing the script I currently receive the following error message:
@qparis @plata any ideas?