Skip to content

fix maven publish script#221

Merged
xwm1992 merged 1 commit intoapache:mainfrom
xwm1992:fix-maven-publish
Dec 22, 2025
Merged

fix maven publish script#221
xwm1992 merged 1 commit intoapache:mainfrom
xwm1992:fix-maven-publish

Conversation

@xwm1992
Copy link
Copy Markdown
Contributor

@xwm1992 xwm1992 commented Dec 22, 2025

Fixes #issue_id

Motivation

Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.

Modifications

Describe the modifications you've done.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Copilot AI review requested due to automatic review settings December 22, 2025 11:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the Maven publish script by updating repository URLs and adding GPG plugin configuration. The changes migrate from Sonatype's s01 instance to Apache's official repository infrastructure.

Key Changes

  • Added GPG plugin configuration with agent-based secure passphrase handling and commented optional settings for CI environments
  • Updated Nexus repository URLs from s01.oss.sonatype.org to repository.apache.org across all deployment locations

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

<!-- <gpgExecutable>gpg</gpgExecutable> -->
<!--
<arguments>
<argument>&#45;&#45;pinentry-mode</argument>
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The HTML entity encoding &#45;&#45; is used instead of plain text -- in this XML comment. Since this is inside an XML comment block, you should use the literal double dash -- rather than HTML entities. The HTML entity encoding is unnecessary here and makes the comment harder to read.

Suggested change
<argument>&#45;&#45;pinentry-mode</argument>
<argument>--pinentry-mode</argument>

Copilot uses AI. Check for mistakes.
@@ -296,7 +314,7 @@
<extensions>true</extensions>
<configuration>
<serverId>sonatype</serverId>
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The serverId and repository IDs are still named "sonatype" but the URLs have been changed to Apache's repository. This creates a naming inconsistency where the identifier suggests Sonatype but the actual repository is Apache. Consider renaming these IDs from "sonatype" to something more appropriate like "apache" or "apache-repository" to better reflect the actual repository being used.

Copilot uses AI. Check for mistakes.
Comment on lines 326 to 330
<id>sonatype</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>sonatype</id>
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The repository ID "sonatype" is inconsistent with the actual repository URL which points to Apache's repository. This ID should match the serverId configured in the nexus-staging-maven-plugin (line 316) and should be renamed to better reflect that it's an Apache repository rather than Sonatype.

Copilot uses AI. Check for mistakes.
@xwm1992 xwm1992 merged commit 0682505 into apache:main Dec 22, 2025
10 checks 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