IDEA将本地的Jar包添加到个人的maven仓库中

install:install-file -Dfile=<Jar包的地址> 
                     -DgroupId=<Jar包的GroupId> 
                     -DartifactId=<Jar包的引用名称> 
                     -Dversion=<Jar包的版本> 
                     -Dpackaging=<Jar的打包方式>

install:install-file -Dfile=D:\mybatis-generator-core-1.3.2-ztd.jar -DgroupId=org.mybatis.generator -DartifactId=mybatis-generator-core -Dversion=1.3.2-ztd -Dpackaging=Jar
 

导入成功后,在pom.xml里面引入即可

<dependency>
   <groupId>org.mybatis.generator</groupId>
   <artifactId>mybatis-generator-core</artifactId>
   <version>1.3.2-ztd</version>
</dependency>

猜你喜欢

转载自blog.csdn.net/SirLZF/article/details/103561766