Page MenuHomePhabricator

Unable to publish to Maven
Closed, ResolvedPublicBUG REPORT

Description

Capturing some WMF Slack discussion:

From @Snwachukwu:

Weekly deployment - maven release jar failed with the error.
`Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli): Goal requires a project to execute but there is no POM in this directory (/src). Please verify you invoked Maven from the correct directory.

https://integration.wikimedia.org/ci/view/All/job/analytics-refinery-maven-release/lastBuild/console

From @hashar (condensed):

Broke it due to https://gerrit.wikimedia.org/r/c/integration/config/+/1192134
ci-src-setup is the magic that fetches/clones the repo
and if it does not run, /src is empty and thus Maven fails cause there is ... no pom.xml!
this one is defined in jjb/job-templates.yaml in {name}-maven-release, it uses the default entry point which used to clone the repo
so that job template needs to be aligned with the others using:

  builders:
-  - docker-castor-load
-  - docker-log-dir
-  - docker-src-dir
+  - setup
...
 publishers:
+   - teardown

That setup macros invokes ci-src-setup which would clone the repo
it also run the docker-{castor-load,log-dir,src-dir} so they can be removed from the job template

Details

Event Timeline

Change #1192633 had a related patch set uploaded (by Brennen Bearnes; author: Brennen Bearnes):

[integration/config@master] job templates: {name}-maven-release: use setup/teardown

https://gerrit.wikimedia.org/r/1192633

Mentioned in SAL (#wikimedia-releng) [2025-09-30T22:33:55Z] <brennen> jjb-update 'analytics-refinery-maven-release' (T406072)

Mentioned in SAL (#wikimedia-releng) [2025-09-30T23:05:48Z] <brennen> jjb-update wikidata-query-flink-swift-plugin-maven-release wikidata-query-rdf-maven-release wikimedia-event-utilities-maven-release wmf-jvm-utils-maven-release (T406072)

Change #1192633 merged by jenkins-bot:

[integration/config@master] job templates: {name}-maven-release: use setup

https://gerrit.wikimedia.org/r/1192633

brennen changed the task status from Open to In Progress.Sep 30 2025, 11:16 PM
brennen claimed this task.

After updating analytics-refinery-maven-release, this one succeeded: https://integration.wikimedia.org/ci/view/All/job/analytics-refinery-maven-release/48/console

Based on utils/jjb-diff.sh output, I've updated:

  • analytics-refinery-maven-release
  • wikidata-query-flink-swift-plugin-maven-release
  • wikidata-query-rdf-maven-release
  • wikimedia-event-utilities-maven-release
  • wmf-jvm-utils-maven-release

And merged https://gerrit.wikimedia.org/r/1192633

Leaving this open for the moment in case there are loose ends here.

brennen triaged this task as Medium priority.
brennen moved this task from Waiting Response to Done or Declined on the User-brennen board.

Going ahead and resolving this, please reopen if anything breaks with those jobs.