Cant release project non released dependencies

I am building a project in a pipeline. I am getting Build Failure Error: Can’t release the project due to non-released dependencies.

Multi-module java project using Maven as the Build tool and Nexus as repository manager in Jenkins pipeline.

When the artifact named as -SNAPSHOT, I was able to build a snapshot, generate war file, upload it to Nexus but during the next cycle in the Build phase, it fails with the error: Can’t release the project due to non-released dependencies. I don’t have any control over the scripts/steps in the pipeline.

You can’t release a snapshot version, all versions must be release versions.