Skip to content

Publish reactome-parent and reactome-bom to Maven Central - #4

Merged
adamjohnwright merged 45 commits into
mainfrom
central/pilot
Nov 27, 2026
Merged

adamjohnwright merged 45 commits into
mainfrom
central/pilot

Conversation

@adamjohnwright

@adamjohnwright adamjohnwright commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Publishes Reactome's parent POM and BOM to Maven Central, so builds stop depending on EBI's Nexus. Built on Joel's feature/sonatype-updates, with main merged in; reactome/graph-core#29 moves graph-core onto it.

What is published

A tag v<reactome-parent's version> on main publishes:

Artifact Version Notes
bom-parent 1.0.1 the BOMs' parent
reactome-bom 1.0.7 manages only versions on Central: today reactome-base 2.0.0. Each Reactome library joins it once published (graph-core 3.0.0 next)
reactome-parent 1.0.7 imports reactome-bom 1.0.7

reactome-pwp-bom and reactome-pwp-parent are not published: none of their GWT libraries is on Central, and their users are to be archived.

Every POM names Reactome as the organisation, the current maintainers, and the alumni (without email addresses). None declares a <repositories> or <distributionManagement>: a POM on Central is permanent, and its children would inherit EBI's Nexus for good.

How it is published

.github/workflows/maven.yml:

  • Every PR and push builds the POMs unsigned, and checks that:
    • no published POM names a repository;
    • a child of reactome-parent sees no unresolved ${...} version;
    • reactome-parent imports the reactome-bom built with it;
    • every version the published POMs manage is on Central (.github/managed-on-central.py).
  • A v* tag runs the publish job in the maven-central environment, which a maintainer approves. The job:
    • stops unless the tag is on main and is v<reactome-parent's version>;
    • signs and uploads reactome-parent, and each BOM whose version is not on Central yet (.github/boms-to-publish.sh: Central refuses a version it already has).
  • Nothing is published until someone presses Publish in the Central Portal. With a BOM, the upload arrives as two deployments: publish both, the BOMs first.
  • Actions are pinned to commits, since the job holds the signing key and the Central token.

What a child gets

  • Strict by default. Every javac lint but path, and javadoc's doclint (all,-missing), fail the build on a warning. A child that is not clean yet sets <reactome.strict>false</reactome.strict> and still sees the warnings.
  • Formatting: palantir-java-format, checked by Spotless at verify; mvn spotless:apply formats. The POM's own order is checked by tidy, so a child runs mvn tidy:pom once.
  • Licence check: a child that names license-maven-plugin fails on a shipped dependency whose licences are all outside the ASF's categories A and B (Apache-2.0, MIT, BSD, EPL, MPL).
  • JDK: 17 or newer to build. CI uses 17; a newer JDK's lint may warn about more.

Checked

  • From an empty Maven repository, with no EBI: the POMs install, and graph-core (#29) builds, tests and verifies against them on JDK 17. The parent also builds on JDK 21.
  • Each check above was seen failing first. The strict switch was tried on a child with a raw type and a javadoc warning: it fails by default, and builds with the property set either way.
  • The BOM selection was run for all four combinations of published/not published.
  • Adversarially reviewed twice: once over the whole PR, once over the commits since. The findings are fixed here and in graph-core#29.

Release order

  1. Merge this.
  2. Tag v1.0.7 on main.
  3. Approve the maven-central job.
  4. In the Central Portal, check both deployments, then Publish: the BOMs first.

After that, graph-core#29 drops its step that builds this parent from this branch, and merges.

🤖 Generated with Claude Code

jweiser added 30 commits July 11, 2025 01:45
jweiser and others added 3 commits November 5, 2025 17:46
…on bumps

main's two POM changes since this branch (983fa2f, 6dc31e8, 1 Apr 2025) are the
GoCD pipeline's automatic version bumps: versions never released (graph-core
3.0.0, 2.0.10 neither on EBI's Nexus), written by update_version.sh, which
rewrote each POM whole and dropped its URL, organisation and developers, which
Maven Central requires. This branch's POMs (Nov 2025) are kept; main's scripts
come in unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dency licence check

- LICENSE: Apache-2.0, as the POMs declare.
- .github/workflows/maven.yml: the BOMs and reactome-parent built on every pull
  request, unsigned; on a v* tag signed and uploaded to the Central Portal, in
  the maven-central environment (a person approves; the token and key are its
  secrets), and published there by a person (autoPublish off).
- reactome-parent 1.0.7 (1.0.6 is already on EBI's pst-release):
  license-maven-plugin in pluginManagement, the allowlist the ASF's categories
  A and B; javadoc made without doclint, which fails on old comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adamjohnwright and others added 7 commits November 25, 2026 19:44
The parent's defaults, as strict as the TypeScript side: javac with every lint
(but path) and any warning failing the build; javadoc's doclint with every
check, warnings failing; Spotless with palantir-java-format, checked at verify.
Compiler plugin 3.16.0. Dependabot: weekly, minor and patch grouped, majors
on their own, for Maven and the workflow's actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build needs JDK 17 (enforcer): Spotless needs it, and JDK 11's doclint
and 21's serial lint judge the same code differently. java.version is a
release number (release, not source/target, which javac warns about).
Dependabot leaves the pinned reflections and logback, and the formatter,
alone; its comment no longer claims this repository's CI checks an update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A POM on Central stays there, and whoever uses it inherits its repositories. EBI's
Nexus is going away, so the four POMs this publishes (bom-parent, reactome-bom,
reactome-pwp-bom, reactome-parent) no longer declare EBI's repositories or its
distributionManagement. A build check fails if one does again.

The BOMs change, so they get new versions: bom-parent 1.0.1, reactome-bom 1.0.7,
reactome-pwp-bom 1.0.5, and reactome-parent imports those. Their old versions are on
EBI, and one version keeps one content.

The developers are the current maintainers.

Built with an empty local repository: the parent installs from Central alone, and
graph-core (#29) builds against it with its own repositories removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he tag checked

From the adversarial review of this pull request:

- reactome-bom managed popular-pathways and restfulapi with properties nobody defines
  (popular.pathways for popular-pathways, restful.api for restful-api), so a child
  saw the literal ${...}. Fixed; a build step makes a child of reactome-parent and
  fails if any version in its effective POM is unresolved (seen failing with one
  property misspelt again).
- The SCM addresses were not URLs (ssh://github.com:...) or used git://, which GitHub
  no longer serves; one organisation address was http.
- maven.sonatype.central.version was never read (the plugin's version is written in
  place); removed.
- checkout and setup-java pinned to their release commits, since the publish job
  holds the signing key and the Central token.
- The publish job stops unless the tag is on main and is v<reactome-parent's version>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each published POM lists Eliot Ragueneau among the developers with the role
"alumni", after the current maintainers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each published POM lists Chuqiao Gong with the role "alumni", after Eliot
Ragueneau. Neither alumnus is given an email address: those addresses no longer
reach them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adamjohnwright and others added 3 commits November 26, 2026 19:42
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ch to turn it off

A version a BOM or the parent manages reaches every child that names the dependency
without one, and a POM on Central cannot be changed. So a dependency is managed only
once its version is on Central. Removed, as not on Central:

- reactome-bom: 27 of its 28 entries (graph-core 2.0.10, analysis-core 3.5.1,
  graph-importer 2.0.7, ...); reactome-base 2.0.0 stays. Unused properties go too.
- reactome-parent: libsbgn 0.2, aspose-slides 21.9, micluster 1.7.14, psimitab 1.8.6,
  pathwayExchange 1.0.0.
- reactome-pwp-bom: none of its 15 GWT libraries is on Central, so it is no longer
  built with the BOMs, published, or imported by reactome-parent. reactome-pwp-parent
  still imports it.

A CI step (.github/managed-on-central.py) fails if a version the published POMs
manage is not on Central; it lists all 47 against the previous commit.

Strict stays the default, and a child can now turn it off: reactome.strict (true)
sets the compiler's failOnWarning and javadoc's failOnWarnings, so a child that is not
clean yet sets it to false and still sees the warnings. The JDK is 17 or newer, not
only 17. Checked with a child holding a raw type: it fails by default, and builds with
-Dreactome.strict=false and with the property in its POM; the parent builds on JDK 21.
graph-core (#29) still builds and verifies against it from an empty repository.

README: what is published, how, and the strict switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rties; Reactome the organisation

From the review of the commits since the first review:

- Every tag uploaded bom-parent and reactome-bom again, and Central refuses a version
  it already has, so a release changing only reactome-parent would have failed before
  the parent. The publish job now uploads only the BOM modules whose versions are not
  on Central (.github/boms-to-publish.sh; each of the four combinations checked
  against a repository that has the older versions, and each -pl form built).
- A build step checks reactome-parent imports the reactome-bom version built with it
  (seen failing when a cached older BOM would hide the mismatch).
- sbgn, aspose, micluster, psimitab and pathway.exchange versions went with their
  entries; their properties stay no longer.

The organisation is Reactome (https://reactome.org/) in each published POM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright marked this pull request as ready for review November 26, 2026 20:10
@adamjohnwright adamjohnwright changed the title Maven Central pilot: licence, publishing from GitHub Actions, a dependency licence check Publish reactome-parent and reactome-bom to Maven Central Nov 26, 2026

@jweiser jweiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments/questions.

Comment thread boms/reactome-bom/pom.xml Resolved
Comment thread boms/reactome-bom/pom.xml Resolved
Comment thread parents/reactome-pwp-parent/pom.xml Resolved
Comment thread parents/reactome-pwp-parent/pom.xml Resolved
… no EBI distribution

As in reactome-parent and the BOMs (review of #4): the current maintainers
listed, Eliot Ragueneau and Chuqiao Gong as alumni without addresses, and no
distributionManagement to EBI's Nexus. The SCM addresses as the others'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@jweiser jweiser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found a couple more things

Comment thread boms/reactome-pwp-bom/pom.xml Outdated
Comment on lines +22 to +23
<name>The European Bioinformatics Institute</name>
<url>http://www.ebi.ac.uk/</url>
<url>https://www.ebi.ac.uk/</url>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps change the organization now to Reactome (https://reactome.org) so it matches the other files

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9a292ef: Reactome (https://reactome.org/), as in the other POMs.

Comment thread parents/reactome-pwp-parent/pom.xml Outdated
Comment on lines 16 to 17
<name>The European Bioinformatics Institute</name>
<url>https://www.ebi.ac.uk/</url>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here - change to Reactome?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9a292ef: Reactome (https://reactome.org/), as in the other POMs.

As the other POMs do (review of #4).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 35bfc83 into main Nov 27, 2026
2 checks passed
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.

2 participants