Skip to content

Troubleshooting

lengors edited this page Sep 7, 2024 · 1 revision

This page provides solutions to common issues that may arise when using the maven-lombok-template.

Common Issues

Build Fails on Different OS/Java Version Combinations

If the build fails on specific OS/Java version combinations, ensure that all dependencies are compatible with those environments. Refer to the CI/CD logs for detailed error messages and address any incompatibilities.

GPG Signing Issues

If you encounter issues with GPG signing, verify that GPG is correctly set up on your machine. Make sure your private key is available and that the MAVEN_GPG_PASSPHRASE environment variable is correctly configured.

Publishing to Maven Central Fails

Ensure all required credentials are set in your environment or settings.xml file:

  • MAVEN_CENTRAL_USERNAME
  • MAVEN_CENTRAL_PASSWORD

Debugging Tips

  • CI/CD Logs: Always check the logs from your GitHub Actions workflows for detailed error messages.
  • Local Testing: Run ./mvnw clean install locally to ensure that everything works before pushing changes.