Skip to content

Commit 58dd720

Browse files
committed
发布
1 parent 63c433f commit 58dd720

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -325,30 +325,33 @@ Thread-7
325325
mvn clean install
326326
```
327327

328-
升级版本号,并发布包到Maven Repository中,使用mvn命令:
328+
#### 发布项目
329+
330+
首先,确保项目可以正确构建。然后执行下面的命令:
329331

330332
```text
331-
mvn release:clean -Prelease
332333
mvn release:prepare -Prelease
333334
mvn 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

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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

@@ -29,7 +29,7 @@
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

0 commit comments

Comments
 (0)