Use Nexus Upload snapshot version of the jar package to the server, but download not down, error message: Dependency ... not found
Later Baidu to a sentence:
MAVEN's built-in remote repository configuration, which turns off support for snapshot and prevents unstable builds
so the solution is most critical: add support for snapshot in the Setting.xml file in the Maven conf directory
<snapshots>
<enabled>true</enabled>
</snapshots>
<Profiles> < Profile> <ID>Central-repo</ID> <repositories> <Repository> <ID>Central</ID> <name>Central-repo</name> <URL>Http://******/central</URL> <releases> <enabled>True</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </Repository> </repositories> </ Profile> </Profiles> <Activeprofiles> <Activeprofile>Central-repo</Activeprofile> </Activeprofiles>
If you download the release version of the package and the snapshot version of the package at a different address, you can set this
< Profile> <repositories> <Repository> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> <ID>Releases</ID> <name>Release</name> <URL>http://***********/maven-releases/</URL> </Repository> <Repository> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <ID>Snapshots</ID> <name>Libs-snapshot</name> <URL>http://***************/maven-snapshots/</URL> </Repository> </repositories> <ID>Artifactory</ID> </ Profile>
Original articles, welcome reprint, reproduced please indicate the source!
NEXUS Upload to private warehouse snapshot package download not down