<dependency>
<groupId>org.example</groupId>
<artifactId>vat-common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
将jar包安装到本地仓库:
mvn install:install-file -DgroupId=org.example -DartifactId=vat-common -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=G:\vat-parent\vat-common\target\vat-common-1.0-SNAPSHOT.jar