Skip to content

Commit c9a48e6

Browse files
committed
chore: add debug step for Maven settings.xml content in Sonatype publish workflow
1 parent 4075f4a commit c9a48e6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/publish-sonatype.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ jobs:
5757
run: |
5858
gpg --list-secret-keys --keyid-format LONG
5959
60+
- name: Debug settings.xml content
61+
run: |
62+
echo "=== Maven settings.xml content ==="
63+
if [ -f ~/.m2/settings.xml ]; then
64+
cat ~/.m2/settings.xml
65+
else
66+
echo "settings.xml not found at ~/.m2/settings.xml"
67+
find ~/.m2 -name "settings.xml" -exec cat {} \; 2>/dev/null || echo "No settings.xml found in ~/.m2"
68+
fi
69+
echo "=== End of settings.xml content ==="
70+
6071
- name: Build & publish via central publishing plugin
6172
env:
6273
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

0 commit comments

Comments
 (0)