Common maven Repository URLs:
http://mvnrepository.com/
http://search.maven.org/
http://repository.sonatype.org/content/groups/public/
http://people.apache.org/repo/m2-snapshot-repository/
http://people.apache.org/repo/m2-incubating-repository/
demo to add a Ojdbc-10.2.0.4.0.jar jar package:
1.1 Login http://mvnrepository.com/This address, enter the keyword of the JAR package you are searching for in the search field:
1.2 Select the version of the jar package you want to download:
1.3 Download the jar package:
Maven installs the JAR Package command:
Here is the jar package information in:<!--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>
Use the MAVEN command to move the jar package to Maven's local repository.
Grammar:
1 |
mvn install:install-file -Dfile=jar包的位置(参数一) -DgroupId=groupId(参数二) -DartifactId=artifactId(参数三) -Dversion=version(参数四) -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:
1 |
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 downloaded local jar to the MAVEN repository