GPG
Gpg生成公私钥,密钥
1 |
|
1 |
|
发布key
1 |
|
查询发布是否成功
1 |
|
Maven配置
pom配置,release时需要javadoc,source以及gpg签名文件
1 |
|
maven settings配置
1 |
|
执行过程
1 |
|
验证
发布后需要在sonatype.org验证,验证成功后2小时后就可在中央仓库查询到
Travis Deploy配置
配置user和pwd
在项目根目录建/bin/settings.xml,同时在travis配置SONATYPE_USERNAME
、SONATYPE_PASSWORD
环境变量,并赋值
1 |
|
travis.yml配置
1 |
|
自定义shell
可以通过自定义shell,完成特定需要的任务
1 |
|
shell脚本需要授权
1 |
|