-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Remove deprecated jetty-runner #4562
Comments
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
See #1905 |
Why was this deprecated and removed? |
this big jar is a very big mess in the java 11 / jpms world. |
I expect we will get complaints that it is gone. I think having a single jar that can test run servlets/webapps is a good idea and we should think about how to do that in a JPMS world? In fact isn't one of the main reasons for JPMS is to make executable jars with So instead of deleting this module, how about we update it to jlink Runner as a JPMS executable? |
@gregw sounds a good idea to try! let me try that |
@joakime while investigating this I discover we're still packaging jetty-all as part of |
I think that is a separate... but similar issue. The aggregate jars have been used by many, but again we need to determine how they work in a JPMS world. Let's see how jlink works for the runner and then see if we still need |
So something like:
Not a bad idea as that will allow a war to be run anywhere, without creating a base, so long as there is a distro available. The only issue I see is that Runner has at least 12 command line options available to configure the server and we would not really want to pollute start.jar with all of those.... but perhaps a runner module could do that? Something like:
Hmmm maybe we make --war a short cut for --module=runner, but will still be difficult to separate out the start args from those passed to the runner module. I think it is worth considering this in parallel. |
I was actually thinking of bundling up ALL of what's in So for jetty-runner replacement ... $ java jar $JETTY_HOME/jetty-home-10.0.0.jar --war mywebapp.war or for jetty-all replacement for documentation reasons ... $ java -jar $JETTY_HOME/jetty-home-10.0.0.jar --compile MyExample.java
$ java -jar $JETTY_HOME/jetty-home-10.0.0.jar --run MyExample.class I would like to NOT have a traditional uber jar, nor have 3 separate projects (jetty-home, jetty-all, jetty-runner) for essentially the same thing (starting jetty). |
@joakime that kind of thing used to be very difficult to achieve because jars inside jars just didn't work very well and you needed to unpack to make it work. Perhaps jar handling is better now? The idea of the distro itself (jetty-home.jar) being both an archive and an executable is kind of cool - specially if it gave access to the Runner class? Worth investigating in parallel. |
jetty-runner restored |
we do not remove it |
Making a start jar file cannot be more difficult than making the actual web server, can it? ... well, it looks like YES 😢 |
@csaltos JPMS has made it very difficult to build a single jar that works for many different configurations. Building a single jar for a specific configuration is easy, but trying to be all things to all users is hard. Hence we assemble runtimes from start.jar. I have opened #10854 to see if there is more we can do. What version of jetty are you using? |
No description provided.
The text was updated successfully, but these errors were encountered: