2020 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
2121 <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
2222 <boot .version>2.3.9.RELEASE</boot .version>
23+ <skipTests >true</skipTests >
2324 </properties >
2425
2526 <parent >
4344
4445 <dependencyManagement >
4546 <dependencies >
46-
47- <!-- springBoot-test-->
4847 <dependency >
4948 <groupId >org.springframework.boot</groupId >
5049 <artifactId >spring-boot-starter-test</artifactId >
5150 <version >${boot.version} </version >
5251 </dependency >
53- <!-- JUnit 5 -->
5452 <dependency >
5553 <groupId >org.junit.jupiter</groupId >
5654 <artifactId >junit-jupiter</artifactId >
5755 <version >5.9.2</version >
5856 <scope >test</scope >
5957 </dependency >
60-
61- <!-- Mockito -->
6258 <dependency >
6359 <groupId >org.mockito</groupId >
6460 <artifactId >mockito-core</artifactId >
6561 <version >3.6.28</version >
6662 <scope >test</scope >
6763 </dependency >
68-
69- <!-- Mockito JUnit Jupiter -->
7064 <dependency >
7165 <groupId >org.mockito</groupId >
7266 <artifactId >mockito-junit-jupiter</artifactId >
7367 <version >3.6.28</version >
7468 <scope >test</scope >
7569 </dependency >
76-
77- <!-- AssertJ -->
7870 <dependency >
7971 <groupId >org.assertj</groupId >
8072 <artifactId >assertj-core</artifactId >
8577 </dependencyManagement >
8678
8779 <dependencies >
88-
89- <!-- TEST -->
90- <!-- JUnit 5 -->
9180 <dependency >
9281 <groupId >org.junit.jupiter</groupId >
9382 <artifactId >junit-jupiter</artifactId >
9483 <scope >test</scope >
9584 </dependency >
96-
97- <!-- Mockito -->
9885 <dependency >
9986 <groupId >org.mockito</groupId >
10087 <artifactId >mockito-core</artifactId >
10188 <scope >test</scope >
10289 </dependency >
103-
104- <!-- Mockito JUnit Jupiter -->
10590 <dependency >
10691 <groupId >org.mockito</groupId >
10792 <artifactId >mockito-junit-jupiter</artifactId >
10893 <scope >test</scope >
10994 </dependency >
110-
111- <!-- AssertJ -->
11295 <dependency >
11396 <groupId >org.assertj</groupId >
11497 <artifactId >assertj-core</artifactId >
11598 <scope >test</scope >
11699 </dependency >
117100 </dependencies >
118101
119- <url >
120- https://github.com/Time-Machine-Lab/TmlFoundation.git
121- </url >
102+ <url >https://github.com/Time-Machine-Lab/TmlFoundation.git</url >
122103
123104 <licenses >
124105 <license >
129110 </license >
130111 </licenses >
131112
113+ <!-- 切换到“OSSRH Staging API 兼容服务”的发布端点 -->
132114 <distributionManagement >
133115 <repository >
134116 <id >ossrh</id >
135- <name >Nexus Release Repository </name >
136- <url >https://s01.oss .sonatype.org /service/local/staging/deploy/maven2/</url >
117+ <name >OSSRH Staging API (Central) </name >
118+ <url >https://ossrh-staging-api.central .sonatype.com /service/local/staging/deploy/maven2/</url >
137119 </repository >
120+ <!-- 如需快照,也可在 settings.xml 单独配 snapshotRepositoryUrl:
121+ https://central.sonatype.com/repository/maven-snapshots/ -->
138122 </distributionManagement >
139123
140124 <build >
187171 </executions >
188172 </plugin >
189173
174+ <plugin >
175+ <groupId >org.sonatype.central</groupId >
176+ <artifactId >central-publishing-maven-plugin</artifactId >
177+ <version >0.9.0</version >
178+ <extensions >true</extensions >
179+ <configuration >
180+ <publishingServerId >ossrh</publishingServerId >
181+ <autoPublish >true</autoPublish >
182+ </configuration >
183+ </plugin >
184+
185+ <!-- maven-deploy-plugin 按“PUT 上传”即可,端点在 distributionManagement 中已切换 -->
190186 <plugin >
191187 <groupId >org.apache.maven.plugins</groupId >
192188 <artifactId >maven-deploy-plugin</artifactId >
193189 <version >3.1.2</version >
190+ <executions >
191+ <execution >
192+ <id >default-deploy</id >
193+ <phase >deploy</phase >
194+ <goals >
195+ <goal >deploy</goal >
196+ </goals >
197+ <configuration >
198+ <skip >true</skip >
199+ </configuration >
200+ </execution >
201+ </executions >
202+ <configuration >
203+ <skip >true</skip >
204+ </configuration >
194205 </plugin >
195206 </plugins >
196207 </build >
203214 </scm >
204215
205216 <profiles >
206- <!-- Deployment profile (required so these plugins are only used when deploying) -->
217+ <!-- Deployment profile(保持不变) -->
207218 <!-- 下面这个标签里的不能改 -->
208219 <profile >
209220 <id >deploy</id >
226237 </build >
227238 </profile >
228239 </profiles >
229- </project >
240+ </project >
0 commit comments