Skip to content

Document what the parent POM actually configures - #438

Merged
slachiewicz merged 1 commit into
masterfrom
docs/pom-documentation
Aug 8, 2026
Merged

Document what the parent POM actually configures#438
slachiewicz merged 1 commit into
masterfrom
docs/pom-documentation

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Part of codehaus-plexus/.github#58.

A project inheriting this POM currently has no way to find out what it inherits. The README is a badge plus "The current master is now at …", and the site page says the parent "defines common plugins, reporting and release configuration" before jumping straight into settings.xml for the release manager. Everything in between — the thing most readers actually want — is missing.

What's documented now

  • Baselines: Java 8 via javaVersion, Maven 3.6.3 (3.9.0 when releasing), UTF-8, and that maven.compiler.proc is none
  • Enforcer: the Maven/JDK minimums, and the enforceBytecodeVersion rule — worth calling out, because rejecting a dependency whose bytecode is newer than your compiler target is the rule that surprises people
  • Spotless: palantir-java-format, sorted POMs, flexmark — and crucially where it applies versus checks. spotless.action is apply under the format profile (!env.CI) and check under format-check (env.CI). So a local build silently rewrites your sources and CI fails instead. That asymmetry was documented nowhere.
  • Reproducible builds, the reporting profile, and the fact that building a site without -Preporting produces one with no Javadoc
  • What a child still has to overridedistributionManagement/site, since maven-site-plugin runs with skipDeploy and publishing goes through maven-scm-publish-plugin

A correction to the release description

The site page documented the Central Portal token and stopped there, which implies a manual publish step. It isn't one.

maven-release-plugin is configured with <goals>deploy</goals> and <releaseProfiles>plexus-release</releaseProfiles>. That profile sets njord.enabled=true, and Njord is registered as a build extension with autoPublish=true and publishingType=automatic. So release:perform publishes to Central without anyone touching the Portal UI.

I had this wrong too — the RELEASING.md in codehaus-plexus/.github#60 says to publish the staged deployment manually. I'm fixing that there.

The Spotless/Markdown warning

Added, because it cost me three destroyed pages during codehaus-plexus/plexus-classworlds#149. Spotless formats **/*.md; flexmark rewrites the fence closing a YAML front matter block into a setext underline and the page loses its title and author — or empties entirely.

master here (26-SNAPSHOT) already excludes **/src/site/markdown/**, so this branch needs no code change. Released parent 25 does not, so anyone on 25 keeping site sources in Markdown has to add the exclusion themselves. That's now stated on the page rather than being folklore.

Worth noting this is another argument for cutting 26 reasonably soon.

Menu

Added Plexus Build API, Plexus Sec Dispatcher and Plexus Testing to the Plexus Projects menu — all three were missing. It's now all 17 projects, which makes this the most complete cross-navigation we have anywhere.

Verified

Site builds; all 17 menu entries render and resolve (checked the three new ones return 200). Also fixes "publishing vie the Central Portal".

The <version> in the README's parent snippet is 25 — the current release. Same staleness tradeoff as the other README PRs; happy to drop it for a badge reference if that's the preference.

The README was a badge and a line saying the canonical repository is
this one. The site page said the parent 'defines common plugins,
reporting and release configuration' and then went straight into
settings.xml for the release manager - so a project inheriting this POM
had no way to learn what it inherits.

Both now cover the baselines, the enforcer rules, Spotless and where it
applies vs checks, reproducible builds, the reporting profile, and what
a child project still has to override.

Corrects the release description. maven-release-plugin runs with
releaseProfiles=plexus-release, which enables Njord, configured with
autoPublish and publishingType=automatic - so the deployment publishes
without a manual step in the Central Portal UI. The page implied
otherwise by documenting only the token setup.

Also warns that Spotless formats **/*.md and that parent 25 does not
exclude src/site/markdown, which destroys Doxia front matter.

Adds Plexus Build API, Sec Dispatcher and Testing to the Plexus
Projects menu; all three were missing. Verified the site builds and all
17 entries resolve.

Fixes the 'vie the Central Portal' typo.

Part of codehaus-plexus/.github#58
@slachiewicz
slachiewicz merged commit 37b0def into master Aug 8, 2026
13 checks passed
@slachiewicz
slachiewicz deleted the docs/pom-documentation branch August 8, 2026 17:42
@slachiewicz slachiewicz added the maintenance Cleanup, refactoring, internal change label Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring, internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant