You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Error: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project arex-common: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: Cannot decipher credentials to be used with Nexus! org.sonatype.plexus.components.sec.dispatcher.shaded.SecDispatcherException: java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory) -> [Help 1]
I have checked similar issues: #91, but did not fix this problem.
mr3
changed the title
The process '/usr/bin/gpg' failed with exit code 2
java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory)
Jul 15, 2022
I did have the same issue. The problem was that I misread the documentation. server-username and server-password are actually the name of the environment variable (and not the value) that contain repectively the username and the password. (see here)
Instead of having:
- name: Set up Apache Maven Centraluses: actions/setup-java@v4with: # running setup-java again overwrites the settings.xml...server-username: ${{secrets.username}}
Do this:
- name: Set up Apache Maven Centraluses: actions/setup-java@v4with: # running setup-java again overwrites the settings.xml...server-username: THIS_IS_A_VARIABLE_USERNAME
- name: Publishrun: mvn deployenv:
THIS_IS_A_VARIABLE_USERNAME: ${{secrets.username}}
Description:
Error: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project arex-common: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: Cannot decipher credentials to be used with Nexus! org.sonatype.plexus.components.sec.dispatcher.shaded.SecDispatcherException: java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory) -> [Help 1]
I have checked similar issues: #91, but did not fix this problem.
Task version:
actions/setup-java@v3
Platform:
Runner type:
Repro steps:
The problem github action workflow runs: https://github.com/arextest/arex-common/actions/runs/2675590433
Expected behavior:
The job would complete successfully.
Actual behavior:
An error is printed and the step and job are failed.
The text was updated successfully, but these errors were encountered: