Manually add the download to the local jar package to the MAVEN repository

Source: Internet
Author: User

<!--HTTPS://MVNREPOSITORY.COM/ARTIFACT/OJDBC/OJDBC--
<!--(parameter i): The true storage path of the Ojdbc-10.2.0.4.0.jar package downloaded to the local--><dependency> <groupid>ojdbc</groupid >-----------------(parameter b) <artifactId>ojdbc</artifactId>-----------(Parameter III) <version> 10.2.0.4.0</version>------------(parameter IV) </dependency>

Grammar:

MVN Install:install-file-dfile=jar Package Position (parameter i)-dgroupid=groupid (parameter II)-dartifactid=artifactid (Parameter III)-dversion=version ( Parameter four)-dpackaging=jar

I put "Ojdbc-10.2.0.4.0.jar" under "D:\Program files\mvn\",

Note:"program Files" in the middle of the space , so to add double quotes, the other three parameters, copied from the above can be, the following is the command I installed Ojdbc-10.2.0.4.0.jar package use:

mvn install:install-file -Dfile="D:\Program Files\mvn\ojdbc-10.2.0.4.0.jar"-DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar

The following points need to be noted:
1. Note "-" must not be missing the "-" after the install is no space
2. Note the path of the jar package in "-dfile" and the name of the jar package.
3. Note The cmd command prompt to see if the jar package was successfully replicated in the local repository.

Focus: The jar package is installed by default under "C:\Users\Administrator\.m2\repository\", in fact the above (parameter two, parameter three, parameter four) is to specify the installation specific installation path.

( You can also change the parameters two, three, four, in fact, change the installation path ).

Ojdbc-10.2.0.4.0.jar Package Installation Complete:

Manually add the download to the local jar package to the MAVEN repository

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.