There was a problem hiding this comment.
This pull request updates the CI/CD workflow by removing the GPG passphrase from the Maven settings, switching to -Dmaven.test.skip=true, and replacing the Maven-based version extraction with a shell command. It also removes several git fetch operations. Reviewers identified that removing the passphrase from settings without passing it as a property to the Maven command will break artifact signing. Additionally, the new grep/sed method for version extraction is considered fragile, and a more robust Python-based XML parsing approach is suggested.
Sorry, something went wrong.
| mvn -B clean deploy \ | ||
| -Dcheckstyle.skip \ | ||
| -DskipTests \ | ||
| -Dmaven.test.skip=true \ |
There was a problem hiding this comment.
The GPG passphrase was removed from settings.xml, but it is not being passed to the mvn deploy command. The maven-gpg-plugin requires the gpg.passphrase property to sign artifacts in batch mode. Even if MAVEN_GPG_PASSPHRASE is defined in the environment (as noted in the PR description), Maven will not automatically use it. You should explicitly pass it as a property.
| -Dmaven.test.skip=true \ | |
| -Dmaven.test.skip=true \ | |
| -Dgpg.passphrase="${MAVEN_GPG_PASSPHRASE}" \ |
Sorry, something went wrong.
There was a problem hiding this comment.
@gemini-code-assist This project uses maven-gpg-plugin version 3.2.8. In version 3.x, the plugin natively detects and reads the MAVEN_GPG_PASSPHRASE environment variable during batch execution.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for the clarification. You are correct that maven-gpg-plugin 3.x and later versions automatically detect the MAVEN_GPG_PASSPHRASE environment variable when running in batch mode. My previous concern regarding the explicit property passing is therefore resolved by your project's use of a modern plugin version.
Sorry, something went wrong.
There was a problem hiding this comment.
Is it possible to set the Key ID this way as well?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with one comment. Thanks!
Sorry, something went wrong.
| mvn -B clean deploy \ | ||
| -Dcheckstyle.skip \ | ||
| -DskipTests \ | ||
| -Dmaven.test.skip=true \ |
There was a problem hiding this comment.
Is it possible to set the Key ID this way as well?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.