NEXUS Upload to private warehouse snapshot package download not down

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.