Add example of starting application via java -jar
@m-reza-rahman is already working on this.
Since Aug 21, 2024.
Assessment
This issue has not been assessed yet.
Description
I'd love to see an option to start a project with an embedded runtime, and have it package a single jar.
Possibly by using SeBootstrap and an SeContainer, something like:
SeContainer container = SeContainerInitializer.newInstance()
.addPackages(true, ExampleApplication.class)
.initialize();
ExampleApplication app = new ExampleApplication();
SeBootstrap.start(app, SeBootstrap.Configuration.builder().port(8080).build())
.thenAccept(instance -> instance.stopOnShutdown(stopResult -> container.close()));
URI uri = UriBuilder.fromUri("http://localhost/").port(8080).build();
System.out.printf("Application started: %s%nStop the application using CTRL+C%n", uri.toString());
- Dominant language
- HTML
- Stars
- 61
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-ee4j/starter
-
Clarify Platform, Web Profile, Core ProfileMay be free again @m-reza-rahman claimed this 1342 days ago, and no pull request is open. Openenhancement normal-priority UI
eclipse-ee4j/starter#238 · 20 comments · 1 assignee ·
-
enhancement good first issue help wanted low-priority
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-ee4j/starter#185 · 1 comment ·
-
enhancement normal-priority
Difficulty 5/5 Over a week Newbie friendliness 35/100
eclipse-ee4j/starter#168 · 5 comments ·
-
Windows VM on github workflowsMay be free again @Aditya-Guntur claimed this 715 days ago, and no pull request is open. Openenhancement good first issue help wanted low-priority
Difficulty 3/5 1-2 days Newbie friendliness 42/100
eclipse-ee4j/starter#165 · 2 comments ·
-
enhancement low-priority
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-ee4j/starter#152 · 2 comments ·