Maven installation will depend to a local warehouse

Want to rely on second party libraries join Maven local repository, or download the tripartite library use Ali's Maven repository, but which depends on the version is not high enough, is not new, you can rely on your local repository Maven, then the future can be read directly It took without dependence associated with the specified location of the local storage. And, you use a dependent, will automatically be required for import-dependent cascade, if Mavne no local repository, library download tripartite imported from Maven central repository; if there is no second party libraries, you also build Maven remote repository (or called Maven PW), import downloaded from a remote Maven repository.
(One of the library: The project relies production; second party libraries: dependent on the enterprise's other works produced; tripartite library: dependent on the production of other companies; Reference: https: //blog.csdn.net/haoranhaoshi/article/details/ 85534877)
(dependent on local Maven specified storage location and packaged using Maven; reference: https: //blog.csdn.net/haoranhaoshi/article/details/90300894)

Installed JDK, install Maven (Reference: https: //www.runoob.com/maven/maven-setup.html), then enter the cmd:
Syntax:
mvn the install: the install package-JAR File DFILE = position -DgroupId = groupId -DartifactId = artifactId -Dversion = version -Dpackaging = jar

举例:
mvn install:install-file -Dfile=C:\Users\hao\Desktop\slf4j-log4j12-1.7.5.jar -DgroupId=slf4j -DartifactId=log4j12 -Dversion=1.7.5 -Dpackaging=jar

Jar packages are installed by default in " C: \ the Users Administrator or your user name \ .m2 \ Repository \ \ " down.
More use, reference:
Maven investigation (installation, use, in combination IDEA): HTTPS: //blog.csdn.net/haoranhaoshi/article/details/89792420
IDEA used Maven: https: //blog.csdn.net/haoranhaoshi / Article this article was / the Details / 89,841,323
Maven to export the package, the package will depend on the integration of the project export business code, as well as a comprehensive summary of the main Java command like: https: //blog.csdn.net/haoranhaoshi/article/details/90300894

Guess you like

Origin blog.csdn.net/haoranhaoshi/article/details/93315635