(1) installed in the local maven repository
We assume that the package need to be introduced to myjar-1.0.jar
(1.1) open cmd, enter the directory where myjar-1.0.jar
(1.2)执行如下命令:mvn install:install-file -Dfile=myjar-1.0.jar -DgroupId=com.ws.sample -DartifactId=myjar -Dversion=1.0 -Dpackaging=jar
Note: install: install-file there is no space between the -file and install, measurements can be set according to their needs
Then go to your local repository look whether there is a corresponding file