File tree Expand file tree Collapse file tree
src/main/java/io/github/kubesys/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 </dependencies >
6969 <build >
7070 <plugins >
71+ <!-- 添加 Sonar 插件 -->
72+ <plugin >
73+ <groupId >org.sonarsource.scanner.maven</groupId >
74+ <artifactId >sonar-maven-plugin</artifactId >
75+ <version >${maven.sonar.version} </version >
76+ <configuration >
77+ <sonar .host.url>http://139.9.165.93:31040/</sonar .host.url>
78+ </configuration >
79+ </plugin >
7180 <plugin >
7281 <groupId >org.apache.maven.plugins</groupId >
7382 <artifactId >maven-assembly-plugin</artifactId >
212221 </execution >
213222 </executions >
214223 </plugin >
215- <!-- 添加 Sonar 插件 -->
216- <plugin >
217- <groupId >org.sonarsource.scanner.maven</groupId >
218- <artifactId >sonar-maven-plugin</artifactId >
219- <version >${maven.sonar.version} </version >
220- <configuration >
221- <sonar .host.url>http://139.9.165.93:31040/</sonar .host.url>
222- </configuration >
223- </plugin >
224224 </plugins >
225225 </build >
226226 </profile >
227+ <profile >
228+ <id >sonar</id >
229+ <activation >
230+ <activeByDefault >true</activeByDefault >
231+ </activation >
232+ <properties >
233+ <!-- 确保没有将 SonarQube 地址硬编码为 localhost:9000 -->
234+ <sonar .host.url>http://139.9.165.93:31040/</sonar .host.url>
235+ <sonar .login>admin</sonar .login>
236+ <sonar .password>Onceas!@#</sonar .password>
237+ </properties >
238+ </profile >
227239 </profiles >
228240 <distributionManagement >
229241 <repository >
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ protected CloseableHttpClient createDefaultHttpClient(KubernetesAdminConfig kac)
273273 ConnectionConfig connectionConfig = ConnectionConfig .custom ()
274274 .setConnectTimeout (Timeout .ZERO_MILLISECONDS )
275275 .setSocketTimeout (Timeout .ZERO_MILLISECONDS )
276- .setTimeToLive (TimeValue .ofDays (365 * 100 ))
276+ .setTimeToLive (TimeValue .ofDays (36500L ))
277277 .build ();
278278
279279 connManager .setDefaultConnectionConfig (connectionConfig );
You can’t perform that action at this time.
0 commit comments