Skip to content

Conversation

Copy link

Copilot AI commented Oct 29, 2025

Summary

Fixed the issue where releases 3.1.0 and 3.1.1 (and future releases) are missing from Maven Central by adding proper publishing configuration and automation.

Changes Made

  • Add distributionManagement configuration to pom.xml for Maven Central (OSSRH)
  • Add nexus-staging-maven-plugin for automated OSSRH deployment
  • Create GitHub Actions workflow for automated Maven Central publishing on releases
  • Add RELEASING.md documentation
  • Verify the configuration is correct by reviewing changes
  • Run tests - all passing
  • Code review - no issues found
  • Security check - no vulnerabilities detected
  • Fix git-secrets check failure

What This Enables

Once the required GitHub secrets are configured (OSSRH_USERNAME, OSSRH_TOKEN, GPG_PRIVATE_KEY, GPG_PASSPHRASE), future releases will automatically publish to Maven Central when a GitHub release is created.

Next Steps for Repository Maintainers

  1. Configure the required GitHub secrets (see RELEASING.md)
  2. Create a new release (e.g., 3.1.3 or re-release 3.1.2) to test the automated publishing
  3. The workflow will automatically publish to Maven Central via OSSRH

Security Summary

No vulnerabilities detected by CodeQL analysis.

Original prompt

This section details on the original issue you should resolve

<issue_title>Missing Releases on Maven Central?</issue_title>
<issue_description>I noticed the most recent releases - 3.1.0 and 3.1.1 - are both missing from Maven Central: https://repo1.maven.org/maven2/com/onelogin/onelogin-java-sdk/

Is there a plan to have them return, or should these releases not be used for some reason?</issue_description>

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


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Add distributionManagement for OSSRH in pom.xml
- Add nexus-staging-maven-plugin for automated deployment
- Create GitHub Actions workflow for automated publishing on releases
- Add RELEASING.md documentation for release process

Co-authored-by: Subterrane <5290140+Subterrane@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing releases 3.1.0 and 3.1.1 on Maven Central Add Maven Central publishing infrastructure Oct 29, 2025
Copilot AI requested a review from Subterrane October 29, 2025 16:21
@Subterrane
Copy link
Contributor

@copilot Can you address or explain the failing check?

Replace hardcoded placeholder values in RELEASING.md with environment variable syntax to avoid triggering git-secrets scanner

Co-authored-by: Subterrane <5290140+Subterrane@users.noreply.github.com>
Copy link
Author

Copilot AI commented Oct 29, 2025

@copilot Can you address or explain the failing check?

The git-secrets check was failing because the example Maven settings.xml in RELEASING.md contained placeholder text like <password>your-sonatype-password</password> which triggered the scanner's pattern matching for potential hardcoded credentials.

Fixed in commit 563b6f2 by replacing the placeholder values with environment variable syntax (${env.OSSRH_USERNAME} and ${env.OSSRH_PASSWORD}), which is both a better practice and doesn't trigger the security scanner.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repository.sonatype.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.11/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.11/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.11 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.11/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/onelogin-java-sdk/onelogin-java-sdk org.codehaus.plexus.classworlds.launcher.Launcher -B package --no-transfer-progress --file pom.xml (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@Subterrane Subterrane marked this pull request as ready for review December 2, 2025 21:38
@Subterrane Subterrane merged commit e50abd3 into master Dec 2, 2025
1 check passed
@Subterrane Subterrane deleted the copilot/fix-missing-releases-maven-central branch December 2, 2025 22:27
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.

Missing Releases on Maven Central?

2 participants