Skip to content

Conversation

jkebinger
Copy link
Collaborator

Problem

The publishing workflow was hanging for 54+ seconds (and sometimes timing out) due to the problematic version extraction command:

mvn help:evaluate -Dexpression=project.version -q -DforceStdout

The -q and -DforceStdout flags conflict, causing Maven to suppress the output it's waiting for.

Solution

Replace with the fast, reliable Maven exec approach:

mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec

Benefits

  • Faster: ~1.1s instead of 54+ seconds
  • 🔄 Reliable: No hanging or timeouts
  • 🏗️ Maven-native: Properly handles properties and inheritance
  • Tested: Confirmed working locally

Test Results

$ time mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec
1.0.1
real    0m1.109s

🤖 Generated with Claude Code

Replace hanging mvn help:evaluate command with fast Maven exec approach.
The -q -DforceStdout combination was causing workflows to hang for minutes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@jkebinger jkebinger requested a review from a team as a code owner September 26, 2025 21:50
Copy link

@jdwyah jdwyah left a comment

Choose a reason for hiding this comment

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

thanks

@jkebinger jkebinger merged commit 39c3d6b into main Sep 26, 2025
1 check 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