Skip to content

TOMEE-4460 - Fix Missing service-jar.xml in Serverless Builder and Embedded Scenarios#1804

Merged
rzo1 merged 5 commits intomainfrom
fix-broken-examples
Feb 28, 2025
Merged

TOMEE-4460 - Fix Missing service-jar.xml in Serverless Builder and Embedded Scenarios#1804
rzo1 merged 5 commits intomainfrom
fix-broken-examples

Conversation

@rzo1
Copy link
Copy Markdown
Contributor

@rzo1 rzo1 commented Feb 21, 2025

The recent removal of webapps from the assembly process led to the service-jar.xml file being omitted from BOMs, breaking serverless builder examples. This occurred because the file was previously included via webapps, which are no longer deployed and therefore no longer part of the BOMs. Since the JARs were added to the /lib folder of TomEE regardless, this does not happen for arquillian or real world cases.

This PR makes the following changes:

  • Move META-INF/services/org.apache.tomee/service-jar.xml from webapps to tomee-config.jar.
  • Ensure that embedded and server builder scenarios correctly include service-jar.xml.
  • Clean up unnecessary code and finalize the transition from WAR to ZIP packaging.

Build: https://ci-builds.apache.org/job/Tomee/job/pull-request-manual/158

Note: Build uses Tomcat Snapshot due to their attempt to fix a CVE breaking Embedded Case since 10.1.34+

rzo1 added 2 commits February 21, 2025 14:57
tomee-config.jar, as we no longer deploy web applications (.jar/.war). With the recent fix in BOM generation, the service-jar.xml file is now missing in embedded and server builder scenarios. This change ensures it is correctly included.
… modules. Clean up unnecessary code and switch packaging from WAR to ZIP. Set the POM type to "pom".
@rzo1 rzo1 requested review from dblevins and jungm February 21, 2025 14:31
@rzo1 rzo1 merged commit b93819f into main Feb 28, 2025
@rzo1 rzo1 deleted the fix-broken-examples branch February 28, 2025 07:43
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