赞
踩
E:\workspace\maven\repository
<distributionManagement>
<repository>
<id>ijfxu-repository</id>
<url>file:E:\workspace\maven\repository</url>
</repository>
</distributionManagement>
eg:https://gitee.com/ijfxu/maven.git
cd E:\workspace\maven\
git init
git add repository/*
git commit -m 'deploy xxx'
git remote add origin git@gitee.com:xwintop/maven.git
git push origin master
注意: 将.gitignore中 以下内容删除,否则无法上传jar包
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
因为码云使用了gitee.com/ u s e r a c c o u n t / {user_account}/ useraccount/{project_name}/raw/${branch}这个域名用于raw文件下载。所以使用这个maven仓库,只要在pom.xml里增加:
<repositories>
<repository>
<id>xwintop-maven</id>
<url>https://gitee.com/ijfxu/maven/raw/master/repository</url>
</repository>
</repositories>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。