Skip to content

Commit de97b93

Browse files
maven修改
1 parent 534773e commit de97b93

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

pom.xml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
6+
<name>SWCJ-core</name>
7+
<description>
8+
link: china:https://blog.midreamsheep.live/2022/11/11/SWCJ/
9+
english:https://blog.midreamsheep.live/2022/11/11/english/SWCJ/SWCJ/
10+
</description>
711
<groupId>live.midreamsheep.swcj</groupId>
812
<artifactId>SWCJ-core</artifactId>
9-
<version>1.0-SNAPSHOT</version>
13+
<version>1.0.0</version>
1014

1115
<!--项目url-->
1216
<url>https://github.com/microDreamSheep/SWCJ</url>
@@ -81,12 +85,18 @@
8185
</plugin>
8286
</plugins>
8387
</build>
88+
89+
90+
91+
92+
93+
94+
8495
<profiles>
8596
<profile>
8697
<id>release</id>
8798
<build>
8899
<plugins>
89-
90100
<!-- Source -->
91101
<plugin>
92102
<groupId>org.apache.maven.plugins</groupId>
@@ -129,14 +139,14 @@
129139
</executions>
130140
</plugin>
131141
<plugin>
132-
<groupId>org.sonatype.plugins</groupId>
133-
<artifactId>nexus-staging-maven-plugin</artifactId>
134-
<version>1.6.7</version>
135-
<extensions>true</extensions>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-release-plugin</artifactId>
144+
<version>2.5.3</version>
136145
<configuration>
137-
<serverId>ossrh</serverId>
138-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
139-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
146+
<autoVersionSubmodules>true</autoVersionSubmodules>
147+
<useReleaseProfile>false</useReleaseProfile>
148+
<releaseProfiles>release</releaseProfiles>
149+
<goals>deploy</goals>
140150
</configuration>
141151
</plugin>
142152
<!-- Gpg Signature -->
@@ -147,7 +157,7 @@
147157
<executions>
148158
<execution>
149159
<!-- id 与 setting.xml 的 gpg 配置中的 id 对应-->
150-
<id>ossrh</id>
160+
<id>release</id>
151161
<phase>verify</phase>
152162
<goals>
153163
<goal>sign</goal>
@@ -160,11 +170,11 @@
160170
</build>
161171
<distributionManagement>
162172
<snapshotRepository>
163-
<id>ossrh</id>
173+
<id>release</id>
164174
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
165175
</snapshotRepository>
166176
<repository>
167-
<id>ossrh</id>
177+
<id>release</id>
168178
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
169179
</repository>
170180
</distributionManagement>

0 commit comments

Comments
 (0)