Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Description

Snapshot deployments to Sonatype OSSRH were failing due to a typo in the POM configuration—an extra > character in the repository URL made it invalid.

Resolves #(issue)

Changes

  • Fixed distributionManagement/snapshotRepository/url in root pom.xml (line 305)
  • Changed >https://central.sonatype.com/repository/maven-snapshots/ to https://central.sonatype.com/repository/maven-snapshots/

Checklist:

  • Public methods are documented
  • Public methods are tested
  • New and existing tests pass when run locally
  • There are no new warnings or errors
Original prompt

This section details on the original issue you should resolve

<issue_title>[Chore]: Investigate and fix failure to publish snapshots to Sonatype</issue_title>
<issue_description>### What

Snapshot publishing to Sonatype is failing for the BerryCloud/xapi-java repository. The problem involves the configuration for the snapshot repository (id 'central', URL 'https://central.sonatype.com/repository/maven-snapshots/'), Maven deploy commands, or related plugin/auth changes that are preventing successful upload of SNAPSHOT artifacts.

Why

This chore is necessary to restore snapshot publishing, which is essential for continuous integration, dependency testing, and early access builds. Without snapshot deployments, teams cannot properly test changes, access up-to-date builds, or distribute development versions.

Notes

The issue may be caused by changes to Sonatype snapshot coordinates, authentication requirements, or Maven plugin compatibility. Example steps to reproduce:

  1. Run mvn deploy or CI snapshot workflow
  2. Observe publishing failure (artifacts remain local, no upload)
    Please investigate necessary updates to configuration, credentials, or documentation to restore publishing.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 15, 2025
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failure to publish snapshots to Sonatype Fix malformed snapshot repository URL preventing Sonatype publishing Nov 15, 2025
Copilot AI requested a review from thomasturrell November 15, 2025 12:51
@thomasturrell thomasturrell marked this pull request as ready for review November 15, 2025 13:38
@sonarqubecloud
Copy link

@thomasturrell thomasturrell merged commit 053ab60 into main Nov 15, 2025
6 checks passed
@thomasturrell thomasturrell deleted the copilot/fix-snapshot-publishing-sonatype branch November 15, 2025 16:26
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.

[Chore]: Investigate and fix failure to publish snapshots to Sonatype

2 participants