|
217 | 217 | <execution> |
218 | 218 | <id>attach-sources</id> |
219 | 219 | <goals> |
220 | | - <goal>jar</goal> |
| 220 | + <goal>jar-no-fork</goal> |
221 | 221 | </goals> |
222 | 222 | </execution> |
223 | 223 | </executions> |
|
229 | 229 | <executions> |
230 | 230 | <execution> |
231 | 231 | <id>attach-javadocs</id> |
| 232 | + <phase>package</phase> |
232 | 233 | <goals> |
233 | 234 | <goal>jar</goal> |
234 | 235 | </goals> |
|
240 | 241 | <name>date</name> |
241 | 242 | </tag> |
242 | 243 | </tags> |
| 244 | + <show>public</show> |
| 245 | + <charset>UTF-8</charset> |
| 246 | + <encoding>UTF-8</encoding> |
| 247 | + <docencoding>UTF-8</docencoding> |
| 248 | + <links> |
| 249 | + <link>http://docs.oracle.com/javase/8/docs/api</link> |
| 250 | + </links> |
| 251 | + <doclint>none</doclint> |
| 252 | + <excludePackageNames> |
| 253 | + com.tencent.polaris.*.example,com.tencent.polaris.*.example.* |
| 254 | + </excludePackageNames> |
| 255 | + <doctitle>Tencent Polaris Java SDK ${project.version} API</doctitle> |
| 256 | + <windowtitle>Tencent Polaris Java SDK ${project.version} API |
| 257 | + </windowtitle> |
243 | 258 | </configuration> |
244 | 259 | </plugin> |
245 | 260 | <plugin> |
|
282 | 297 | </filesets> |
283 | 298 | </configuration> |
284 | 299 | </plugin> |
| 300 | + <plugin> |
| 301 | + <groupId>org.apache.maven.plugins</groupId> |
| 302 | + <artifactId>maven-deploy-plugin</artifactId> |
| 303 | + <version>${maven.deploy.plugin.version}</version> |
| 304 | + <configuration> |
| 305 | + <skip>${skip.maven.deploy}</skip> |
| 306 | + </configuration> |
| 307 | + </plugin> |
285 | 308 | </plugins> |
286 | 309 | </build> |
287 | 310 |
|
288 | 311 | <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 | 312 | <profile> |
316 | 313 | <id>javadoc-lint</id> |
317 | 314 | <activation> |
|
325 | 322 | <id>release</id> |
326 | 323 | <build> |
327 | 324 | <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 | 325 | <plugin> |
337 | 326 | <groupId>org.apache.maven.plugins</groupId> |
338 | 327 | <artifactId>maven-gpg-plugin</artifactId> |
|
347 | 336 | </execution> |
348 | 337 | </executions> |
349 | 338 | </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 | 339 | </plugins> |
399 | 340 | </build> |
400 | 341 | </profile> |
401 | 342 | </profiles> |
402 | 343 |
|
403 | 344 | <distributionManagement> |
404 | 345 | <snapshotRepository> |
405 | | - <id>ossrh</id> |
406 | | - <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
407 | | - |
| 346 | + <id>central-portal</id> |
| 347 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
408 | 348 | </snapshotRepository> |
409 | 349 | <repository> |
410 | | - <id>ossrh</id> |
411 | | - <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 350 | + <id>central-portal</id> |
| 351 | + <url>https://ossrh-staging-api.central.sonatype.com/service/local/</url> |
412 | 352 | </repository> |
413 | 353 | </distributionManagement> |
| 354 | + |
| 355 | + <repositories> |
| 356 | + <repository> |
| 357 | + <name>Central Portal Snapshots</name> |
| 358 | + <id>central-portal-snapshots</id> |
| 359 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 360 | + <releases> |
| 361 | + <enabled>false</enabled> |
| 362 | + </releases> |
| 363 | + <snapshots> |
| 364 | + <enabled>true</enabled> |
| 365 | + <updatePolicy>always</updatePolicy> |
| 366 | + </snapshots> |
| 367 | + </repository> |
| 368 | + </repositories> |
414 | 369 | </project> |
0 commit comments