Skip to content

Commit 57446bb

Browse files
committed
初始代码
1 parent cfb7dd5 commit 57446bb

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,15 @@ mvn clean install
327327

328328
发布包到Maven Repository中,使用mvn命令:
329329

330+
330331
```text
331-
mvn clean deploy -P release
332+
mvn release:prepare
333+
mvn clean deploy -P release # 如果此步出错,可以重复执行
334+
mvn release:perform
335+
```
336+
337+
```text
338+
332339
```
333340

334341
#### 其他开源项目

pom.xml

Lines changed: 21 additions & 25 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.0-SNA</version>
6+
<version>1.0.0-SNAPSHOT</version>
77
<name>kavahub-async-file</name>
88
<packaging>jar</packaging>
99

@@ -31,16 +31,7 @@
3131
<url>https://github.com/kavahub/async-file.git</url>
3232
<tag>HEAD</tag>
3333
</scm>
34-
<distributionManagement>
35-
<snapshotRepository>
36-
<id>ossrh</id>
37-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
38-
</snapshotRepository>
39-
<repository>
40-
<id>ossrh</id>
41-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
42-
</repository>
43-
</distributionManagement>
34+
4435

4536
<properties>
4637
<!-- Generic properties -->
@@ -53,7 +44,7 @@
5344

5445
<!-- maven plugin -->
5546
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
56-
<maven-release-plugin.veriosn>3.0.0-M4</maven-release-plugin.veriosn>
47+
<maven-release-plugin.version>3.0.0-M4</maven-release-plugin.version>
5748
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
5849
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
5950
<maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version>
@@ -151,13 +142,30 @@
151142
<artifactId>maven-compiler-plugin</artifactId>
152143
<version>${maven-compiler-plugin.version}</version>
153144
</plugin>
145+
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-release-plugin</artifactId>
149+
<version>${maven-release-plugin.version}</version>
150+
</plugin>
154151
</plugins>
155152
</build>
156153

157154
<profiles>
158155
<profile>
159156
<id>release</id>
160157

158+
<distributionManagement>
159+
<snapshotRepository>
160+
<id>ossrh</id>
161+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
162+
</snapshotRepository>
163+
<repository>
164+
<id>ossrh</id>
165+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
166+
</repository>
167+
</distributionManagement>
168+
161169
<build>
162170
<plugins>
163171
<plugin>
@@ -173,19 +181,6 @@
173181
</configuration>
174182
</plugin>
175183

176-
<plugin>
177-
<groupId>org.apache.maven.plugins</groupId>
178-
<artifactId>maven-release-plugin</artifactId>
179-
<version>${maven-release-plugin.version}</version>
180-
<configuration>
181-
<autoVersionSubmodules>true</autoVersionSubmodules>
182-
<useReleaseProfile>false</useReleaseProfile>
183-
<releaseProfiles>release</releaseProfiles>
184-
<goals>deploy</goals>
185-
<pushChanges>false</pushChanges>
186-
</configuration>
187-
</plugin>
188-
189184
<plugin>
190185
<groupId>org.apache.maven.plugins</groupId>
191186
<artifactId>maven-gpg-plugin</artifactId>
@@ -208,6 +203,7 @@
208203
<executions>
209204
<execution>
210205
<id>attach-sources</id>
206+
<phase>verify</phase>
211207
<goals>
212208
<goal>jar-no-fork</goal>
213209
</goals>

0 commit comments

Comments
 (0)