Skip to content

Commit 70c4bf5

Browse files
committed
发布代码
1 parent 91f6261 commit 70c4bf5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ mvn release:perform -Prelease
339339
mvn clean deploy -Prelease
340340
```
341341

342+
发布包
343+
```text
344+
mvn nexus-staging:release
345+
```
346+
342347
删除staging包
343348

344349
```text
@@ -353,5 +358,7 @@ mvn nexus-staging:drop -Prelease
353358

354359
- [vsCode利用git连接github](https://www.jianshu.com/p/f836da434e18)
355360
- [如何将自己的代码发布到Maven中央仓库](https://www.cnblogs.com/songyz/p/11387978.html)
361+
- [Deploying to OSSRH with Apache Maven - Introduction](https://central.sonatype.org/publish/publish-maven/)
362+
356363

357364

pom.xml

Lines changed: 2 additions & 3 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

@@ -205,7 +205,6 @@
205205
<executions>
206206
<execution>
207207
<id>attach-sources</id>
208-
<phase>verify</phase>
209208
<goals>
210209
<goal>jar-no-fork</goal>
211210
</goals>

0 commit comments

Comments
 (0)