When I run
./gradlew publish --info
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':publishMavenPublicationToNexusRepository'.
> Failed to publish publication 'maven' to repository 'nexus'
> Could not PUT 'http://167.99.236.170:8081/repository/Exercise6Maven/com/example/my-app/1.0-SNAPSHOT/maven-metadata.xml'. Received status code 400 from server: Repository version policy: RELEASE does not allow metadata in path: com/example/my-app/1.0-SNAPSHOT/maven-metadata.xml
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
2 actionable tasks: 2 executed
Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
Watching 1 directories to track changes