Nexus-repository-publish configuration issue

I am trying to publish a .jar file to my maven-snapshot repository in a Bitbucket pipeline via the nexus-repository-publish:0.0.1 pipe. Below is the configuration:

- artifact_name=$(find target -type f -printf "%f")
- echo $artifact_name
- echo $MAVEN_REGISTRY
- pipe: sonatype/nexus-repository-publish:0.0.1
    variables:
        FILENAME: 'target/$artifact_name'
        ATTRIBUTES: '-CgroupId=com.victoriatech.community -CartifactId=vt-betcentral-community -Cversion=$provider-$package_version-SNAPSHOT -Aextension=jar'
        USERNAME: '$REGISTRY_USERNAME'
        PASSWORD: '$REGISTRY_PASSWORD'
        SERVER_URL: 'https://$MAVEN_REGISTRY/'
        REPOSITORY: 'maven-snapshots'

I am getting a 400 Error and can’t figure out what to do. Tried following the troubleshooting steps on this link 400 Bad Request error Publishing an artifact - The Central Repository Documentation but still not able to fix it.