-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.FileNotFoundException: /home/runner/.m2/settings-security.xml (No such file or directory) #357
Comments
Please ignore ths issue. I have fixed it, misconfiguration. |
Can you please post solution how you resolve it. I am having same issue |
Can you share what did you change to fix it? Thanks. |
Can you please post solution how you resolve it. I am having same issue |
Hello, I did have the same issue. The problem was that I misread the documentation. Instead of having: - name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
...
server-username: ${{secrets.username}} Do this: - name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
...
server-username: THIS_IS_A_VARIABLE_USERNAME
- name: Publish
run: mvn deploy
env:
THIS_IS_A_VARIABLE_USERNAME: ${{secrets.username}} |
server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD
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: