jar包打入maven本地仓库

Maven地址

示例是shiro

<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-web -->
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-web</artifactId>
    <version>1.10.0</version>
</dependency>

mvn install:install-file  -DgroupId=org.apache.shiro   -DartifactId=shiro-web   -Dversion=1.10.0  -Dpackaging=jar  -Dfile=C:\Users\DELL\Downloads\shiro-web-1.10.0.jar

<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-core -->
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-core</artifactId>
    <version>1.10.0</version>
</dependency>

mvn install:install-file  -DgroupId=org.apache.shiro   -DartifactId=shiro-core   -Dversion=1.10.0  -Dpackaging=jar  -Dfile=C:\Users\DELL\Downloads\shiro-core-1.10.0.jar


<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring -->
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-spring</artifactId>
    <version>1.10.0</version>
</dependency>
mvn install:install-file  -DgroupId=org.apache.shiro   -DartifactId=shiro-spring   -Dversion=1.10.0  -Dpackaging=jar  -Dfile=C:\Users\DELL\Downloads\shiro-spring-1.10.0.jar


<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-cas -->
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-cas</artifactId>
    <version>1.10.0</version>
</dependency>
mvn install:install-file  -DgroupId=org.apache.shiro   -DartifactId=shiro-cas   -Dversion=1.10.0  -Dpackaging=jar  -Dfile=C:\Users\DELL\Downloads\shiro-cas-1.10.0.jar

成功图示

参数修改对应

mvn install:install-file  -DgroupId=org.springframework.security   -DartifactId=spring-security-crypto   -Dversion=5.6.2  -Dpackaging=jar  -Dfile=C:\Users\DELL\Desktop\spring-security-crypto-5.6.2.jar

记Maven命令打包到本地库*.pom文件打包不完整的解决思路
https://blog.csdn.net/qq_16291159/article/details/109576252

mvn install:install-file -DgroupId=gid -DartifactId=aid -Dversion=version -Dfile=xxx.jar -Dpackaging=jar -DpomFile=本地的pom.xml路径

https://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
http://t.zoukankan.com/lixuwu-p-5855031.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值