Skip to content

Move module list into pomless aggregators - #67

Merged
vogella merged 1 commit into
mainfrom
pomless-aggregator-example
Aug 20, 2026
Merged

Move module list into pomless aggregators#67
vogella merged 1 commit into
mainfrom
pomless-aggregator-example

Conversation

@vogella

@vogella vogella commented Aug 20, 2026

Copy link
Copy Markdown
Member

The root pom listed all 25 modules inline. Tycho's pomless build can derive an aggregator from a plain text file, so the list now lives in build/pom.tycho and the root pom declares a single <module>build</module>. The three LSP bundles move into an lsp/ folder with their own pom.tycho, which shows the same mechanism used to group related bundles rather than to replace the reactor list.

Two settings make the nested layout work. tycho.pomless.parent is pointed at ${maven.multiModuleProjectDirectory} so pomless modules resolve the root pom as their parent at any depth, which costs nothing per bundle, and the target definition is now referenced by an absolute path because the previous ../target-platform/... is resolved against each module's own directory and breaks one level down.

Beyond removing the inline list, the text format makes disabling a module a one-character edit, so the previously commented-out entries stay readable as # comments. PomlessAggregator.adoc documents the mechanism, including why automatic folder detection was not used here: it would silently pick up every subfolder and take away that ability.

Verified with a full ./mvnw clean verify: BUILD SUCCESS across 30 modules, both aggregators included. Note that the LSP bundles moved on disk, so they need a re-import in an existing Eclipse workspace.

The root pom.xml listed every module inline. Tycho's pomless build can
derive an aggregator from a plain text file, so the list now lives in
build/pom.tycho and the root pom declares a single module.

The three LSP bundles move into an lsp/ folder with its own pom.tycho,
which shows the same mechanism used to group related bundles. Nested
modules need tycho.pomless.parent to point at the root, and the target
definition is referenced by an absolute path because the previous
relative one is resolved per module directory.
@vogella
vogella merged commit dd7c734 into main Aug 20, 2026
1 check passed
@vogella
vogella deleted the pomless-aggregator-example branch August 20, 2026 14:35
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