Skip to content

Add Deploy Snapshot to Maven Central Portal workflow - #559

Merged
vibhutikumar07 merged 11 commits into
developfrom
central_maven_snapshot_fix
Jul 31, 2026
Merged

Add Deploy Snapshot to Maven Central Portal workflow#559
vibhutikumar07 merged 11 commits into
developfrom
central_maven_snapshot_fix

Conversation

@vibhutikumar07

Copy link
Copy Markdown
Contributor

Describe your changes

This PR introduces a new CI workflow to deploy SNAPSHOT artifacts directly to Sonatype Central Portal Snapshots repository, enabling teams to test pre-release versions before an official release.

Any documentation

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist before requesting a review

  • I follow Java Development Guidelines for SAP
  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.
  • I have ran integration tests on my cloud environment.
  • I have validated blackduck portal for any vulnerability after my commit.

Upload Screenshots/lists of the scenarios tested

  • I have Uploaded Screenshots or added lists of the scenarios tested in description

The composite action runs clean deploy internally so the artifact
shuttle between build and deploy jobs was redundant and causing
download failures due to workspace conflicts after checkout.
Updated pom to use Central Portal snapshots
Child module had its own distributionManagement pointing to Artifactory.
Without overriding it in the profile, Maven hits Artifactory for metadata
during deploy and gets a 401. This profile redirects to Maven Central
snapshots when -P deploy-central-snapshot is active.
…eploy-central-snapshot profile

With extensions=true in pluginManagement, central-publishing-maven-plugin
replaces the entire deploy lifecycle, making maven-deploy-plugin unreachable.
Setting extensions=false within this profile restores standard deploy behavior
so maven-deploy-plugin can push directly to the Central Snapshots URL.
Comment thread .github/actions/newrelease/action.yml
@vibhutikumar07
vibhutikumar07 merged commit c20ff70 into develop Jul 31, 2026
9 checks passed
@vibhutikumar07
vibhutikumar07 deleted the central_maven_snapshot_fix branch July 31, 2026 11:15
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