<repository>
<id>fengyunhe</id>
<name>fengyunhe</name>
<url>https://raw.github.com/fengyunhe/fengyunhe-wechat-mp/master/</url>
</repository>
例如我的GitHub用户是fengyunhe那上面依赖仓库地址就是 https://raw.github.com/fengyunhe/fengyunhe-wechat-mp/master/ 备注: 1、上面的地址直接输入返回为404,页面是无法看到的 2、master 一定要写上,否则会无法下载 3、如果本地项目依赖的groupId、artifactId跟本地项目中的maven项目groupId、artifactId相对应,则会默认依赖本地项目而不去服务端下载。 4、具体依赖项目 配置中 groupId、artifactId 一定要与依赖项目的groupId、artifactId一致。
<groupId>com.fengyunhe</groupId>
<artifactId>fengyunhe-wechat-mp</artifactId>
<version>1.2.0-SNAPSHOT</version>
tips:
本文由wp2Blog导入,原文链接:http://devonios.com/maven-dependency-from-github.html