Skip to content

OSSRH Credentials for iot.milo project

I am attempting a release via GH Actions and my release task is failing with the following error:

Error:  Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy (injected-nexus-deploy) on project milo: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy failed: Nexus connection problem to URL [https://oss.sonatype.org/ ]: "username" is blank! -> [Help 1]

I suspect this is related to the upcoming OSSRH EOL changes: #5854

At the moment my release workflow references the following secrets:

      - name: Install GPG secret key
        run: |
          cat <(echo -e "${{ secrets.ORG_GPG_PRIVATE_KEY }}") | gpg --batch --import
          gpg --list-secret-keys --keyid-format LONG

      - name: Publish package
        run: mvn -B clean deploy -P release
        env:
          MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
          MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
          MAVEN_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}

Do these need to be updated, and have they been updated for the Eclipse Milo org / repo?

Thank you.

Edited by Kevin Herron