# Maven Deploy validation failed: Invalid signature for file

**URL:** https://community.sonatype.com/t/maven-deploy-validation-failed-invalid-signature-for-file/12023
**Category:** Central Repository
**Created:** [February 6, 2024, 1:49pm UTC](https://community.sonatype.com/t/maven-deploy-validation-failed-invalid-signature-for-file/12023 "2024-02-06T13:49:26Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![Shadman\_Adman](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@Shadman\_Adman](https://community.sonatype.com/u/Shadman_Adman)
#### Post date: [February 24, 2025, 7:58pm UTC](https://community.sonatype.com/t/maven-deploy-validation-failed-invalid-signature-for-file/12023/14 "2025-02-24T19:58:38Z")

</div>

Hello. I had the same error.In my case The problem was in the signing section. I fix it by apply the signing manually:

add the plugin in your gradle:

` id("signing")`

then config it:

```auto
signing {
    useInMemoryPgpKeys(
        keystoreProperties["signing.keyId"].toString(),
        File(keystoreProperties["signing.secretKeyFile"].toString()).readText(),
        keystoreProperties["signing.password"].toString()
    )
}

```

hope it helps someone. Happy coding

---

_[View the full topic](https://community.sonatype.com/t/maven-deploy-validation-failed-invalid-signature-for-file/12023)._
