Repository navigation
Issue #15761 - Rework ${jetty.home}/lib/ for isolated environment libs, and introduce jetty-core-home archive. - #15762
Merged
joakime merged 1 commit intoOct 24, 2026
Conversation
${jetty.home}/lib/ for isolated environment libs, and introduce jetty-core-home.${jetty.home}/lib/ for isolated environment libs, and introduce jetty-core-home archive.
joakime
marked this pull request as ready for review
September 21, 2026 12:10
joakime
force-pushed
the
fix/12.1.x/jetty-home-lib-location-overhaul
branch
from
October 14, 2026 10:46
af7a37e to
d3b61a8
Compare
sbordet
requested changes
Oct 15, 2026
sbordet
left a comment
Contributor
There was a problem hiding this comment.
A few things to fix provided as a separate document.
Contributor
Author
|
@sbordet I've worked through the issues you've identified. |
sbordet
approved these changes
Oct 23, 2026
…tion Reorganize how the Jetty distributions are assembled so that each layer owns its own modules, config, and libs, and fix a large set of [lib] section mistakes across the bundled modules. Home/module layout - Introduce jetty-core-home as the owner of core base resources (etc, bin, logging modules, demo content, LICENSE/NOTICE/README), moved out of jetty-home. - Move JAAS/security config and modules (jaas, security, demo-realm, demo-jaas, and their etc/demo.d resources) from jetty-server into jetty-security, where they belong. - Move the ee8/ee9/ee10/ee11 ext, jsp, jstl, and demos modules out of jetty-home and into each corresponding jetty-ee#-home. - Rework the asm/annotations modules and split asm into its own module. - Drop the duplicate ecj lib into a single standalone ecj module, include it in jetty-core-home, and exclude jdt/ecj from the jetty-ee#-home assemblies. - Include the jakarta.servlet.jsp.jstl lib in jetty-ee9-home. - Remove the now-unused jetty-source-assembly.xml from all *-home modules and simplify the jetty-home and jetty-ee9-home builds. Module file handling - Fix incorrect [lib] section paths across the ee# and session-store modules so libs resolve from the correct home locations. - Do not re-download files that are already provided by a home. start.jar --validate-modules - Add ModulesValidation and a --validate-modules command that resolves every module's [files] and [lib] references and reports failures. - Correctly handle --validate-modules=foo for an unknown module name, reporting it as an error instead of silently validating nothing. - Add tests: ModuleValidationTest, FilesWithPropertiesTest, UriFileInitializerTest, and DistributionTests.testValidateModules, which asserts validation actually ran over a non-zero module count.
joakime
force-pushed
the
fix/12.1.x/jetty-home-lib-location-overhaul
branch
from
October 24, 2026 14:15
187ff0d to
f546e2c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworked the
${jetty.home}/lib/tree for the following ...${jetty.home}/lib/<envname>/- All environment specific libs go here.${jetty.home}/lib/<envname>/support/- All support libs (not made by Jetty) go here.This allows users that do not need a specific environment's libs to delete them easily.
This makes cleanup for auditing tools easier. (Are you only using
ee11, and you don't want your audit tools to scan theee8libs? Then justrm -rf $JETTY_HOME/lib/ee8)Introduced new
jetty-core-homewhich is an environment free version of jetty-home.This is a standalone jetty-home that will work without an environment.
Suitable for ...
jetty-ee#-homearchives.Just like the above work, libs that are not created by Jetty go into a
${jetty.home}/lib/support/directory.The existing
jetty-ee#-homearchives are standalone, meaning that all files needed by jetty-home (xml, libs, modules, etc) are self contained within thatjetty-ee#-homearchive, and do not pollute thejetty-core-homearchive anymore.Removed duplicate jars in the
${jetty.home}/lib/tree (see asm jars, and eclipse jdt ecj jars)Introduced a new
start.jar --validate-modules[=name]to validate the module file contents during build/test time, this catches a lot of common mistakes.Introduced new
DistributionTests.testValidateModulesto fail the build if a module is detected as invalid (so that we don't continue to ship bad module files)