Error 'Failed to deploy artifacts: Could not transfer artifact' even it is uploaded

Hello,

I’m encountering an error message stating ‘Failed to deploy artifacts: Could not transfer artifact’ when deploying a project to the Nexus Repository. This is despite the artifact being successfully deployed to Nexus.

the Whole message is following:
*Failed to deploy artifacts: Could not transfer artifact *
status code: 400, reason phrase: Repository does not allow updating assets: releases (400)

Any idea why this error even it is successfull performed.

Your repository is configured to prevent overwriting existing artifacts.

I know that, but if the artifact does not exist I should not receive the error message when I deploy it.