|
3 | 3 |
|
4 | 4 | <groupId>cn.jpush.api</groupId>
|
5 | 5 | <artifactId>jpush-client</artifactId>
|
6 |
| - <version>3.4.7-SNAPSHOT</version> |
| 6 | + <version>3.4.7</version> |
7 | 7 | <packaging>jar</packaging>
|
8 | 8 | <url>https://github.com/jpush/jpush-api-java-client</url>
|
9 | 9 | <name>JPush API Java Client</name>
|
|
229 | 229 | </dependency>
|
230 | 230 | </dependencies>
|
231 | 231 | </plugin>
|
| 232 | + |
| 233 | + <!-- 参考 https://docs.github.com/cn/actions/language-and-framework-guides/publishing-java-packages-with-maven#about-package-configuration --> |
| 234 | + <!-- 参考 https://github.com/actions/setup-java --> |
| 235 | + <!-- 参考 https://central.sonatype.org/pages/apache-maven.html --> |
| 236 | + |
| 237 | + <!-- Javadoc和源代码附件 --> |
| 238 | + <plugin> |
| 239 | + <groupId>org.apache.maven.plugins</groupId> |
| 240 | + <artifactId>maven-source-plugin</artifactId> |
| 241 | + <version>2.2.1</version> |
| 242 | + <executions> |
| 243 | + <execution> |
| 244 | + <id>attach-sources</id> |
| 245 | + <goals> |
| 246 | + <goal>jar-no-fork</goal> |
| 247 | + </goals> |
| 248 | + </execution> |
| 249 | + </executions> |
| 250 | + </plugin> |
| 251 | + <plugin> |
| 252 | + <groupId>org.apache.maven.plugins</groupId> |
| 253 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 254 | + <version>2.9.1</version> |
| 255 | + <executions> |
| 256 | + <execution> |
| 257 | + <id>attach-javadocs</id> |
| 258 | + <goals> |
| 259 | + <goal>jar</goal> |
| 260 | + </goals> |
| 261 | + </execution> |
| 262 | + </executions> |
| 263 | + </plugin> |
| 264 | + |
| 265 | + <!-- GPG签名组件 --> |
| 266 | + <plugin> |
| 267 | + <groupId>org.apache.maven.plugins</groupId> |
| 268 | + <artifactId>maven-gpg-plugin</artifactId> |
| 269 | + <version>1.5</version> |
| 270 | + <executions> |
| 271 | + <execution> |
| 272 | + <id>sign-artifacts</id> |
| 273 | + <phase>verify</phase> |
| 274 | + <goals> |
| 275 | + <goal>sign</goal> |
| 276 | + </goals> |
| 277 | + </execution> |
| 278 | + </executions> |
| 279 | + </plugin> |
| 280 | + |
| 281 | + <!-- Nexus Staging Maven插件,用于部署和发布 --> |
| 282 | + <plugin> |
| 283 | + <groupId>org.sonatype.plugins</groupId> |
| 284 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 285 | + <version>1.6.7</version> |
| 286 | + <extensions>true</extensions> |
| 287 | + <configuration> |
| 288 | + <serverId>ossrh</serverId> |
| 289 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 290 | + <!-- 手动release --> |
| 291 | + <autoReleaseAfterClose>false</autoReleaseAfterClose> |
| 292 | + </configuration> |
| 293 | + </plugin> |
| 294 | + |
232 | 295 | </plugins>
|
233 | 296 | </build>
|
234 | 297 |
|
| 298 | + <distributionManagement> |
| 299 | + <snapshotRepository> |
| 300 | + <id>ossrh</id> |
| 301 | + <url>https://oss.sonatype.org/content/repositories/snapshots/</url> |
| 302 | + </snapshotRepository> |
| 303 | + <repository> |
| 304 | + <id>ossrh</id> |
| 305 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 306 | + </repository> |
| 307 | + </distributionManagement> |
| 308 | + |
235 | 309 | <reporting>
|
236 | 310 | <plugins>
|
237 | 311 | <plugin>
|
|
0 commit comments