本地maven仓库迁移

1
https://agent-install.oss-cn-hangzhou.aliyuncs.com/migrate-local-repo-tool.jar

分开release 和 snapshot 上传

提前备份好仓库,并复制一份新的,分别生成release 和 snapshot

1
2
find release -name "*SNAPSHOT*" -type d -exec rm -rf {} \;  
find snapshot -name "*RELEASE*" -type d -exec rm -rf {} \;
1
2
3
4
5
6
java 
-jar migrate-local-repo-tool.jar
-cd "/$HOME/.m2/repository/"
-t "http://10.21.11.11/repository/releases/"
-u admin
-p admin123