400 Repository version policy: SNAPSHOT does not allow version: 3.0.0 - Sonatype Nexus Repository - Sonatype Community
400 Repository version policy: SNAPSHOT does not allow version: 3.0.0
post by nehait3047 on May 1, 2020
neha verma
nehait3047
Hi I am trying to integrate my new nexus repository manager 3 in jenkins and I am getting following error:
Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.0.0: Could not transfer artifact org.apache.maven.plugins:maven-checkstyle-plugin:pom:3.0.0 from/to snapshots ( http://XXXX:8081/repository/sample-snap/): Transfer failed for http://XXXX:8081/repository/sample-snap/org/apache/maven/plugins/maven-checkstyle-plugin/3.0.0/maven-checkstyle-plugin-3.0.0.pom 400 Repository version policy: SNAPSHOT does not allow version: 3.0.0 -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-checkstyle-plugin:jar:3.0.0
post by dsawa on May 1, 2020
Dawid Sawa
dsawa
This is caused by the Version policy you selected for your sample-snap repository. You can change it in repository settings. You can read about version policies in our documentation.
version-policy