1.上传本地jar到本地gradle仓库
task installLocal(type: Copy) { from 'lib/filter.jar' // 替换为本地JAR文件的实际路径 into "${System.properties['user.home']}/.m2/repository/cn/togeek/spot-market/filter/latest" // 替换为Maven坐标的实际信息 }
2.上传本地jar到本地maven仓库
mvn install:install-file -Dfile=D:\Download\hdpm-plateform\libs\java_memcached-1.0.0.jar -DgroupId=com.danga -DartifactId=java_memcached -Dversion=1.0.0 -Dpackaging=jar
3.上传本地jar到私服仓库
https://blog.csdn.net/qq_34874784/article/details/120787437
标签:1.0,杂谈,jar,gradle,maven,本地,上传 From: https://www.cnblogs.com/g177w/p/17596399.html