Skip to content

Commit e85b03d

Browse files
committed
发布
1 parent 3a239bf commit e85b03d

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ mvn clean install
329329

330330

331331
```text
332-
mvn release:prepare
333-
mvn clean deploy -P release # 如果此步出错,可以重复执行
334-
mvn release:perform
332+
mvn clean
333+
mvn release:prepare -Prelease
334+
mvn release:perform -Prelease
335335
```
336336

337337
```text
338-
338+
mvn nexus-staging:drop -Prelease
339339
```
340340

341341
#### 其他开源项目

pom.xml

Lines changed: 20 additions & 6 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

@@ -49,6 +49,7 @@
4949
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
5050
<maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version>
5151
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
52+
<nexus-staging-maven-plugin.version>1.6.7</nexus-staging-maven-plugin.version>
5253

5354
<!-- thrid lib -->
5455
<junit-jupiter.version>5.8.1</junit-jupiter.version>
@@ -143,11 +144,6 @@
143144
<version>${maven-compiler-plugin.version}</version>
144145
</plugin>
145146

146-
<plugin>
147-
<groupId>org.apache.maven.plugins</groupId>
148-
<artifactId>maven-release-plugin</artifactId>
149-
<version>${maven-release-plugin.version}</version>
150-
</plugin>
151147
</plugins>
152148
</build>
153149

@@ -168,6 +164,12 @@
168164

169165
<build>
170166
<plugins>
167+
<plugin>
168+
<groupId>org.apache.maven.plugins</groupId>
169+
<artifactId>maven-release-plugin</artifactId>
170+
<version>${maven-release-plugin.version}</version>
171+
</plugin>
172+
171173
<plugin>
172174
<groupId>org.apache.maven.plugins</groupId>
173175
<artifactId>maven-surefire-plugin</artifactId>
@@ -233,6 +235,18 @@
233235
<target>1.8</target>
234236
</configuration>
235237
</plugin>
238+
239+
<plugin>
240+
<groupId>org.sonatype.plugins</groupId>
241+
<artifactId>nexus-staging-maven-plugin</artifactId>
242+
<version>${nexus-staging-maven-plugin.version}</version>
243+
<extensions>true</extensions>
244+
<configuration>
245+
<serverId>ossrh</serverId>
246+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
247+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
248+
</configuration>
249+
</plugin>
236250
</plugins>
237251
</build>
238252
</profile>

0 commit comments

Comments
 (0)