Skip to content

Fix issues in Java Main container#1234

Open
kiril-keranov wants to merge 10 commits intocloudfoundry:mainfrom
kiril-keranov:patch-27
Open

Fix issues in Java Main container#1234
kiril-keranov wants to merge 10 commits intocloudfoundry:mainfrom
kiril-keranov:patch-27

Conversation

@kiril-keranov
Copy link
Copy Markdown
Contributor

@kiril-keranov kiril-keranov commented Apr 3, 2026

The PR addresses some flaws, issue and peculiarities of AI generated code currently present in the Java Main container. A simple java main, non spring-boot, application can be staged successfully with the current implementation with certain drawbacks and issues:

  • The container security provider and client certificate mapper dependencies are currently omit from the classpath when starting the java main( non spring-boot ) app. They are now added accordingly.
  • Missing logic for searching java main class in jar in findMainClass marked with TODO is now addressed.
  • Building the classpath of the startup command is now adjusted with corresponding profile.d script instead of overwriting the CLASSPATH variable that cleaned adding to to CLASSPATH by other frameworks participating in the application staging process. Also the paths to the jar dependendencies added to to the startup classpath are corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant