Skip to content

CPBR-3961 | Fix Broken Local Docker Build Command in base-java - #2154

Open
Swayam Prakash Kar (swkar-conf) wants to merge 3 commits into
masterfrom
docs/fix-base-java-docker-build-cmd
Open

CPBR-3961 | Fix Broken Local Docker Build Command in base-java#2154
Swayam Prakash Kar (swkar-conf) wants to merge 3 commits into
masterfrom
docs/fix-base-java-docker-build-cmd

Conversation

@swkar-conf

@swkar-conf Swayam Prakash Kar (swkar-conf) commented Jul 24, 2026

Copy link
Copy Markdown

Change Description

mvn clean package -Pdocker -DskipTests hangs resolving io.fabric8:docker-maven-plugin, because -Pdocker alone doesn't pin its version. This PR switches to -P docker-fabric8 instead, in both base-java and base-java-micro since they carried the same line.

Ref: https://confluentinc.atlassian.net/browse/CPBR-3961

Testing

Ran mvn clean package -P docker-fabric8 -DskipTests locally. The plugin resolves and the build proceeds, then stops on an unrelated pre-existing gap (log4j:1.2.12 isn't in any configured repo, so checkstyle can't resolve).

-Pdocker alone, the bug: Plugin not found in any plugin repository: io.fabric8:docker-maven-plugin, then BUILD FAILURE.

image

With the fabric8 profile, no plugin-not-found error. These two were captured with the fuller CI form of the command, before review trimmed it to -P docker-fabric8 -DskipTests, but the plugin resolution being fixed is the same.

image

Gets past plugin metadata resolution into real build steps (clean:3.1.0:clean, buildnumber:1.4:create). The 401 warnings above that point are pre-existing and unrelated.

image

-Pdocker alone doesn't pin the io.fabric8:docker-maven-plugin version,
so mvn clean package -Pdocker -DskipTests hangs resolving it. Swap in
the jenkins,docker-fabric8 profile combination CI actually uses.

(CPBR-3947)
@swkar-conf
Swayam Prakash Kar (swkar-conf) requested a review from a team as a code owner July 24, 2026 05:05
Copilot AI review requested due to automatic review settings July 24, 2026 05:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Not ready to approve

The updated README build command depends on an undocumented environment variable ($DOCKER_DEV_REGISTRY), making the copy/paste instruction potentially incorrect for typical local use.

Pull request overview

Updates the base-java documentation to reflect the Maven profile combination used in CI, addressing a reported hang when building local Docker images with -Pdocker alone.

Changes:

  • Replaced the README’s local build command with the CI-aligned Maven invocation using jenkins,docker-fabric8.
  • Added a brief explanation for why the profile combination is required and linked to the Semaphore CI config for reference.
File summaries
File Description
base-java/README.md Updates local build instructions and explains the CI profile combination used to avoid fabric8 plugin resolution issues.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread base-java/README.md Outdated
…ild command

Copilot review caught it: the var is never introduced in this doc and
expands to empty for most readers, contradicting the earlier
trailing-slash requirement. Omitting it uses Maven's placeholder/
default, confirmed working locally.

(CPBR-3947)
@swkar-conf Swayam Prakash Kar (swkar-conf) changed the title docs(base-java): fix broken local docker build command CPBR-3961: docs(base-java): fix broken local docker build command Jul 24, 2026

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.

cp-base-java-micro also has this same command, did we verify that?

Comment thread base-java/README.md Outdated
CI flags (--batch-mode, retry handler, dependency:analyze) don't belong
in a local dev command, and dropping -DskipTests defeats the point of
a quick local build. -P docker-fabric8 alone (no jenkins profile)
already pins the fabric8 plugin version correctly, confirmed locally,
same as Mihir suggested. Updated the explanatory line to match.

(CPBR-3961)
@swkar-conf Swayam Prakash Kar (swkar-conf) changed the title CPBR-3961: docs(base-java): fix broken local docker build command CPBR-3961 | Fix Broken Local Docker Build Command in base-java Aug 4, 2026
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.

3 participants