apache / apache/karaf-minho

Add exploded mode support in spring-boot

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Right now, Minho only supports repackaged spring boot application jar, wrapping all jar in uber jar. Then, Minho uses `JarLauncher` to launch the spring boot application.

However, this is not the running mode recommended by spring boot. Minho should support running spring boot application in exploded mode (similar to spring-boot:run maven goal).

It means that Minho needs:

- to scan `@SpringBootApplication` annotation to find the `Main` class
- to have a way (using spring boot app pom for instance) to find all dependencies to populate the classloader, leveraging Minho tooling for instance
- don't use `JarLauncher` but create classloader and run instead

This preparation step should be performed at build time (in Minho tooling), not at build time.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Minho's current repackaged-jar flow and its use of JarLauncher, then inspect the Minho tooling mentioned for build-time preparation. The issue does not name files or tests; done means supporting exploded Spring Boot execution by finding the main class, resolving dependencies for the classloader, and launching without JarLauncher.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.