Maven: Local jar package hit the warehouse offline

Often encountered in traditional industries in the development environment can not connect the Internet, resulting in the need to build an offline library, and later if you need to upgrade the jar, you need to be upgraded to an offline library jar package

mvn install:install-file -Dfile={jar在本地的路径} -DgroupId={jar groupId} -DartifacId={jar artifacId} -Dversion={jar version} -Dpackaging =jar

 

Guess you like

Origin www.cnblogs.com/nilezy/p/11539846.html