Skip to content

Fix Maven Central publishing - #29

Merged
AkaZver merged 1 commit into
masterfrom
feature/update-29.07.2026-2
Jul 29, 2026
Merged

Fix Maven Central publishing#29
AkaZver merged 1 commit into
masterfrom
feature/update-29.07.2026-2

Conversation

@AkaZver

@AkaZver AkaZver commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Problem

Maven Central publishing job failed with HTTP 500 error, but the build was marked as successful because curl returns exit code 0 even on HTTP errors.

Solution

Error Handling

  • Added --fail flag to curl to make build fail on HTTP errors
  • Added -v flag for verbose logging to help with debugging

Bundle Verification

  • Added new step to verify bundle structure before upload
  • Shows bundle contents and size for transparency

Improved Bundle Creation

  • Added file listing before creating zip archive
  • Shows final bundle size

Changes

  • .github/workflows/main.yml: Enhanced publish-maven-central job with better error handling and verification

Testing

After merging, this will help identify the root cause of the HTTP 500 error from Sonatype.

- Add --fail flag to curl to fail build on HTTP errors
- Add verbose logging (-v) for better debugging
- Add bundle structure verification step
- Improve bundle creation with file listing
@sonarqubecloud

Copy link
Copy Markdown

@AkaZver
AkaZver merged commit fc223fd into master Jul 29, 2026
6 checks passed
@AkaZver
AkaZver deleted the feature/update-29.07.2026-2 branch July 29, 2026 07:47
@AkaZver AkaZver self-assigned this Jul 29, 2026
@AkaZver AkaZver added the bug Something isn't working label Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant