File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -325,30 +325,33 @@ Thread-7
325325mvn clean install
326326```
327327
328- 升级版本号,并发布包到Maven Repository中,使用mvn命令:
328+ #### 发布项目
329+
330+ 首先,确保项目可以正确构建。然后执行下面的命令:
329331
330332``` text
331- mvn release:clean -Prelease
332333mvn release:prepare -Prelease
333334mvn release:perform -Prelease
334335```
335336
336- 直接发布snapshot包
337+ 上面操作将包上传到了Staging Repository,需要转入Release Repository,执行命令:
337338
338339``` text
339- mvn clean deploy -Prelease
340+ mvn nexus-staging:release
340341```
341342
342- 发布包
343+ 以上操作全部成功,发布完成。
344+
345+ 发布SNAPSHOT包到仓库,命令如下:
346+
343347``` text
344- mvn nexus-staging:release
348+ mvn clean deploy -Prelease
345349```
346350
347- 删除staging包
351+ 取消Staging Repository中的包,命令如下:
348352
349353``` text
350- mvn nexus-staging:drop
351- ```
354+ mvn nexus-staging:drop
352355
353356#### 其他开源项目
354357
Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >io.github.kavahub</groupId >
55 <artifactId >kavahub-async-file</artifactId >
6- <version >1.0.1 -SNAPSHOT</version >
6+ <version >1.0.0 -SNAPSHOT</version >
77 <name >kavahub-async-file</name >
88 <packaging >jar</packaging >
99
2929 <connection >scm:git:git@github.com:kavahub/async-file.git</connection >
3030 <developerConnection >scm:git:git@github.com:kavahub/async-file.git</developerConnection >
3131 <url >https://github.com/kavahub/async-file.git</url >
32- <tag >kavahub-async-file-1.0.0 </tag >
32+ <tag >HEAD </tag >
3333 </scm >
3434
3535
You can’t perform that action at this time.
0 commit comments