1 parent 5881ba1 commit 362260bCopy full SHA for 362260b
1 file changed
pom.xml
@@ -178,6 +178,10 @@
178
<dependency>
179
<groupId>com.squareup.okhttp3</groupId>
180
<artifactId>mockwebserver</artifactId>
181
+ <!-- 直接依赖显式钉版本:Maven 4 对 BOM 管理的裁决与 Maven 3 不同,
182
+ 不钉死会解析到 5.x mockwebserver,调用 4.12 okhttp 不存在的
183
+ TaskRunner 构造器(CI 实证 NoSuchMethodError)。 -->
184
+ <version>${okhttp3.version}</version>
185
<scope>test</scope>
186
</dependency>
187
</dependencies>
0 commit comments