将工程在本地发布

1
mvn deploy -DaltDeploymentRepository=cayzlh-mvn-repo::default::file:F:/github/mavenRepository/repository/

将 file: 目录发布到GitHub

将 file: 目录发布到GitHub

在pom文件中加入:

1
2
3
4
5
<repository>
<id>cayzlh-mvn-repo</id>
<name>cayzlh-mvn-repo</name>
<url>https://raw.github.com/cayzlh/mavenRepository/master/repository</url>
</repository>

Enjoy it.