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
325
325
mvn clean install
326
326
```
327
327
328
- 升级版本号,并发布包到Maven Repository中,使用mvn命令:
328
+ #### 发布项目
329
+
330
+ 首先,确保项目可以正确构建。然后执行下面的命令:
329
331
330
332
``` text
331
- mvn release:clean -Prelease
332
333
mvn release:prepare -Prelease
333
334
mvn release:perform -Prelease
334
335
```
335
336
336
- 直接发布snapshot包
337
+ 上面操作将包上传到了Staging Repository,需要转入Release Repository,执行命令:
337
338
338
339
``` text
339
- mvn clean deploy -Prelease
340
+ mvn nexus-staging:release
340
341
```
341
342
342
- 发布包
343
+ 以上操作全部成功,发布完成。
344
+
345
+ 发布SNAPSHOT包到仓库,命令如下:
346
+
343
347
``` text
344
- mvn nexus-staging:release
348
+ mvn clean deploy -Prelease
345
349
```
346
350
347
- 删除staging包
351
+ 取消Staging Repository中的包,命令如下:
348
352
349
353
``` text
350
- mvn nexus-staging:drop
351
- ```
354
+ mvn nexus-staging:drop
352
355
353
356
#### 其他开源项目
354
357
Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >io.github.kavahub</groupId >
5
5
<artifactId >kavahub-async-file</artifactId >
6
- <version >1.0.1 -SNAPSHOT</version >
6
+ <version >1.0.0 -SNAPSHOT</version >
7
7
<name >kavahub-async-file</name >
8
8
<packaging >jar</packaging >
9
9
29
29
<connection >scm:git:git@github.com:kavahub/async-file.git</connection >
30
30
<developerConnection >scm:git:git@github.com:kavahub/async-file.git</developerConnection >
31
31
<url >https://github.com/kavahub/async-file.git</url >
32
- <tag >kavahub-async-file-1.0.0 </tag >
32
+ <tag >HEAD </tag >
33
33
</scm >
34
34
35
35
You can’t perform that action at this time.
0 commit comments