I’m attempting to publish my first jars to the Sonatype OSS snapshot repo. Running ‘gradle publishToMavenLocal’ works perfectly. All the POMs and artifacts are generated properly and have the correct values. Running ‘gradle publish’ fails with the following error:
Running ‘gradle publish --stacktrace’ doesn’t give any more useful information.
Now, the error message is correct - the path to the metadata doesn’t exist: this is the first time I’m creating a snapshot version. I assumed the plugin would detect this and automatically create the path and the first version of maven-metadata.xml. Is this assumption incorrect? Am I doing something wrong with ‘maven-publish’?