Maven manually puts the jar into the local Maven library

Execute the following command for the jar to be imported

mvn install:install-file -Dfile=D:\xxx.jar -DgroupId=com.xxx -DartifactId=xxx -Dversion=1.0.1 -Dpackaging=jar

illustrate:

  • -Dfile The file to be imported, the absolute path or the relative path is determined by yourself.
  • -DgroupId group
  • -DartifactId module name in the group
  • -Dversion version
  • -Dpackaging package type

Guess you like

Origin blog.csdn.net/jl15988/article/details/132024901