# gitRepoTest
**Repository Path**: superziyear/gitRepoTest
## Basic Information
- **Project Name**: gitRepoTest
- **Description**: 仅为个人测试仓库配置使用
- **Primary Language**: Unknown
- **License**: MulanPSL-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-04-28
- **Last Updated**: 2022-12-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
### 1、在github创建一个maven项目
### 2、编写pom文件
```xml
local-repo-release
GitHub Release
file://${project.basedir}/maven-repo
maven-source-plugin
attach-sources
package
jar-no-fork
maven-javadoc-plugin
attach-javadocs
package
jar
```
### 3、执行部署命令
```shell
mvn deploy
```
### 4、提交代码到github
### 5、配置GitHub Pages

这样,把全部内容推送至GitHub后,即可作为静态网站访问Maven的repo
它的地址是 https://ziyear.github.io/gitRepoTest/maven-repo/
版本1.0.0对应的jar包地址是:
https://ziyear.github.io/gitRepoTest/maven-repo/org/example/gitRepoTest/1.0.0/gitRepoTest-1.0.0.jar
现在,如果其他人希望引用这个Maven包,我们可以告知如下依赖即可:
```xml
org.example
gitRepoTest
1.0.0
```
但是,除了正常导入依赖外,对方还需要再添加一个的声明,即使用方完整的pom.xml如下:
```xml
github-rich-repo
The Maven Repository on Github
https://ziyear.github.io/gitRepoTest/maven-repo/
```