|
108 | 108 | <maven.deploy.plugin.version>3.0.0-M1</maven.deploy.plugin.version> |
109 | 109 | <maven.flatten.plugin.version>1.2.5</maven.flatten.plugin.version> |
110 | 110 | <maven.clean.plugin.version>3.1.0</maven.clean.plugin.version> |
| 111 | + <central.publishing.maven.plugin.version>0.8.0</central.publishing.maven.plugin.version> |
111 | 112 | <okhttp.version>2.7.5</okhttp.version> |
112 | 113 | <httpclient.version>4.5.14</httpclient.version> |
113 | 114 | <jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version> |
|
217 | 218 | <execution> |
218 | 219 | <id>attach-sources</id> |
219 | 220 | <goals> |
220 | | - <goal>jar</goal> |
| 221 | + <goal>jar-no-fork</goal> |
221 | 222 | </goals> |
222 | 223 | </execution> |
223 | 224 | </executions> |
|
229 | 230 | <executions> |
230 | 231 | <execution> |
231 | 232 | <id>attach-javadocs</id> |
| 233 | + <phase>package</phase> |
232 | 234 | <goals> |
233 | 235 | <goal>jar</goal> |
234 | 236 | </goals> |
|
240 | 242 | <name>date</name> |
241 | 243 | </tag> |
242 | 244 | </tags> |
| 245 | + <show>public</show> |
| 246 | + <charset>UTF-8</charset> |
| 247 | + <encoding>UTF-8</encoding> |
| 248 | + <docencoding>UTF-8</docencoding> |
| 249 | + <links> |
| 250 | + <link>http://docs.oracle.com/javase/8/docs/api</link> |
| 251 | + </links> |
| 252 | + <doclint>none</doclint> |
| 253 | + <excludePackageNames> |
| 254 | + com.tencent.polaris.*.example,com.tencent.polaris.*.example.* |
| 255 | + </excludePackageNames> |
| 256 | + <doctitle>Tencent Polaris Java SDK ${project.version} API</doctitle> |
| 257 | + <windowtitle>Tencent Polaris Java SDK ${project.version} API |
| 258 | + </windowtitle> |
243 | 259 | </configuration> |
244 | 260 | </plugin> |
245 | 261 | <plugin> |
|
282 | 298 | </filesets> |
283 | 299 | </configuration> |
284 | 300 | </plugin> |
| 301 | + <plugin> |
| 302 | + <groupId>org.sonatype.central</groupId> |
| 303 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 304 | + <version>${central.publishing.maven.plugin.version}</version> |
| 305 | + <extensions>true</extensions> |
| 306 | + <configuration> |
| 307 | + <publishingServerId>central-portal</publishingServerId> |
| 308 | + <excludeArtifacts> |
| 309 | + <excludeArtifact>polaris-examples</excludeArtifact> |
| 310 | + <excludeArtifact>circuitbreaker-example</excludeArtifact> |
| 311 | + <excludeArtifact>common-breaker</excludeArtifact> |
| 312 | + <excludeArtifact>instance-breaker-example</excludeArtifact> |
| 313 | + <excludeArtifact>method-breaker-example</excludeArtifact> |
| 314 | + <excludeArtifact>service-breaker-example</excludeArtifact> |
| 315 | + <excludeArtifact>configuration-example</excludeArtifact> |
| 316 | + <excludeArtifact>discovery-example</excludeArtifact> |
| 317 | + <excludeArtifact>location-example</excludeArtifact> |
| 318 | + <excludeArtifact>quickstart-example</excludeArtifact> |
| 319 | + <excludeArtifact>quickstart-example-consumer</excludeArtifact> |
| 320 | + <excludeArtifact>quickstart-example-provider</excludeArtifact> |
| 321 | + <excludeArtifact>ratelimit-example</excludeArtifact> |
| 322 | + <excludeArtifact>global-limiter-example</excludeArtifact> |
| 323 | + <excludeArtifact>ratelimit-remote-consumer</excludeArtifact> |
| 324 | + <excludeArtifact>ratelimit-remote-provider</excludeArtifact> |
| 325 | + <excludeArtifact>local-limiter-example</excludeArtifact> |
| 326 | + <excludeArtifact>ratelimit-local-consumer</excludeArtifact> |
| 327 | + <excludeArtifact>ratelimit-local-provider</excludeArtifact> |
| 328 | + <excludeArtifact>router-example</excludeArtifact> |
| 329 | + <excludeArtifact>router-multienv-example</excludeArtifact> |
| 330 | + <excludeArtifact>router-multienv-gateway</excludeArtifact> |
| 331 | + <excludeArtifact>router-multienv-provider</excludeArtifact> |
| 332 | + <excludeArtifact>router-version-example</excludeArtifact> |
| 333 | + <excludeArtifact>router-version-consumer</excludeArtifact> |
| 334 | + <excludeArtifact>router-version-provider</excludeArtifact> |
| 335 | + </excludeArtifacts> |
| 336 | + </configuration> |
| 337 | + </plugin> |
285 | 338 | </plugins> |
286 | 339 | </build> |
287 | 340 |
|
288 | 341 | <profiles> |
289 | | - <profile> |
290 | | - <id>sonatype</id> |
291 | | - <repositories> |
292 | | - <repository> |
293 | | - <id>nexus-snapshots</id> |
294 | | - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
295 | | - <releases> |
296 | | - <enabled>false</enabled> |
297 | | - </releases> |
298 | | - <snapshots> |
299 | | - <enabled>true</enabled> |
300 | | - <updatePolicy>always</updatePolicy> |
301 | | - </snapshots> |
302 | | - </repository> |
303 | | - <repository> |
304 | | - <id>nexus-releases</id> |
305 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> |
306 | | - <releases> |
307 | | - <enabled>true</enabled> |
308 | | - </releases> |
309 | | - <snapshots> |
310 | | - <enabled>false</enabled> |
311 | | - </snapshots> |
312 | | - </repository> |
313 | | - </repositories> |
314 | | - </profile> |
315 | 342 | <profile> |
316 | 343 | <id>javadoc-lint</id> |
317 | 344 | <activation> |
|
325 | 352 | <id>release</id> |
326 | 353 | <build> |
327 | 354 | <plugins> |
328 | | - <plugin> |
329 | | - <groupId>org.apache.maven.plugins</groupId> |
330 | | - <artifactId>maven-deploy-plugin</artifactId> |
331 | | - <version>${maven.deploy.plugin.version}</version> |
332 | | - <configuration> |
333 | | - <skip>${skip.maven.deploy}</skip> |
334 | | - </configuration> |
335 | | - </plugin> |
336 | 355 | <plugin> |
337 | 356 | <groupId>org.apache.maven.plugins</groupId> |
338 | 357 | <artifactId>maven-gpg-plugin</artifactId> |
|
347 | 366 | </execution> |
348 | 367 | </executions> |
349 | 368 | </plugin> |
350 | | - <plugin> |
351 | | - <groupId>org.apache.maven.plugins</groupId> |
352 | | - <artifactId>maven-source-plugin</artifactId> |
353 | | - <version>${maven.source.plugin.version}</version> |
354 | | - <executions> |
355 | | - <execution> |
356 | | - <id>attach-sources</id> |
357 | | - <goals> |
358 | | - <goal>jar-no-fork</goal> |
359 | | - </goals> |
360 | | - </execution> |
361 | | - </executions> |
362 | | - </plugin> |
363 | | - <plugin> |
364 | | - <groupId>org.apache.maven.plugins</groupId> |
365 | | - <artifactId>maven-javadoc-plugin</artifactId> |
366 | | - <version>${maven.javadoc.plugin.version}</version> |
367 | | - <executions> |
368 | | - <execution> |
369 | | - <id>attach-javadocs</id> |
370 | | - <phase>package</phase> |
371 | | - <goals> |
372 | | - <goal>jar</goal> |
373 | | - </goals> |
374 | | - </execution> |
375 | | - </executions> |
376 | | - <configuration> |
377 | | - <tags> |
378 | | - <tag> |
379 | | - <name>date</name> |
380 | | - </tag> |
381 | | - </tags> |
382 | | - <show>public</show> |
383 | | - <charset>UTF-8</charset> |
384 | | - <encoding>UTF-8</encoding> |
385 | | - <docencoding>UTF-8</docencoding> |
386 | | - <links> |
387 | | - <link>http://docs.oracle.com/javase/8/docs/api</link> |
388 | | - </links> |
389 | | - <doclint>none</doclint> |
390 | | - <excludePackageNames> |
391 | | - com.tencent.polaris.*.example,com.tencent.polaris.*.example.* |
392 | | - </excludePackageNames> |
393 | | - <doctitle>Tencent Polaris Java SDK ${project.version} API</doctitle> |
394 | | - <windowtitle>Tencent Polaris Java SDK ${project.version} API |
395 | | - </windowtitle> |
396 | | - </configuration> |
397 | | - </plugin> |
398 | 369 | </plugins> |
399 | 370 | </build> |
400 | 371 | </profile> |
401 | 372 | </profiles> |
402 | 373 |
|
403 | | - <distributionManagement> |
404 | | - <snapshotRepository> |
405 | | - <id>ossrh</id> |
406 | | - <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
407 | | - |
408 | | - </snapshotRepository> |
| 374 | + <repositories> |
409 | 375 | <repository> |
410 | | - <id>ossrh</id> |
411 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 376 | + <name>Central Portal Snapshots</name> |
| 377 | + <id>central-portal-snapshots</id> |
| 378 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 379 | + <releases> |
| 380 | + <enabled>false</enabled> |
| 381 | + </releases> |
| 382 | + <snapshots> |
| 383 | + <enabled>true</enabled> |
| 384 | + <updatePolicy>always</updatePolicy> |
| 385 | + </snapshots> |
412 | 386 | </repository> |
413 | | - </distributionManagement> |
| 387 | + </repositories> |
414 | 388 | </project> |
0 commit comments