Maven_ Modify setting, change to own or OSC open source China [to solve SQLITE-JDBC in the central warehouse can not find]

Source: Internet
Author: User



Because the project to use to SQLite, although there are ready-made jars, but consider the project's easy-to-use unified management, decided to use Maven



Results tangled half a day sqlite-jdbc in the MAVEN default warehouse is not found at all, so modified setting adopt open source China based on Neuxs



The Warehouse


 
 
<dependency>
            <groupId>com.github.axet.sqlite4java</groupId>
            <artifactId>sqlite4java</artifactId>
            <version>0.282-3</version>
        </dependency>
        <dependency>
            <groupId>org.xerial</groupId>
            <artifactId>sqlite-jdbc</artifactId>
            <version>3.7.2</version>
        </dependency>

Modified: C:\Users\Administrator\.m2\settings.xml


 <mirrors>
        <!-- mirror | Specifies a repository mirror site to use instead of a given
            repository. The repository that | this mirror serves has an ID that matches
            the mirrorOf element of this mirror. IDs are used | for inheritance and direct
            lookup purposes, and must be unique across the set of mirrors. | -->
        <mirror>
            <id>nexus-osc</id>
            <mirrorOf>*</mirrorOf>
            <name>Nexus osc</name>
            <url>http://maven.oschina.net/content/groups/public/</url>
        </mirror>
    </mirrors> 

Restart Tool


Related Article

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.