<!--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