Install the third-party jar package to the local maven warehouse

Take the following jar package as an example
Insert picture description here
. The first one is to
enter the directory where the jar package is located and run
mvn install:install-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dfile=fastjson-1.1.37 .jar -Dpackaging=jar
The second type
----open cmd and run
mvn install:install-file -DgroupId=com.alibaba -DartifactId=fastjson -Dversion=1.1.37 -Dpackaging=jar -Dfile= C:\my_java \Teaching materials\Data: maven【Advanced】\Install third-party jar package\fastjson-1.1.37.jar
Here should write the current location of the jar package to be installed

Guess you like

Origin blog.csdn.net/he1234555/article/details/113852873