Add a new jar package Maven repository manually

1. Log https://mvnrepository.com/ , corresponding jar package download required

2, win + R Open Command Prompt 

3、输入mvn install:install-file -Dfile=D:\commons-fileupload-1.3.3.jar -DgroupId=commons-fileupload -DartifactId=commons-fileupload -Dversion=1.3.3 -Dpackaging=jar

  Dfile: jar package path DgroupId, DartifactId, Dversion can find the appropriate information page to download jar package

  Do not Enter input command

4, after the successful installation (build success) → Eclipse's Window show view → other found maven repositories, open Local repositories in the local repository, right-click on the Rebuild Index to re-establish a repository indexes

5, the project's pom.xml to add the installed jar package

Guess you like

Origin www.cnblogs.com/curricle/p/11087953.html