42
42
<groupId >org.apache.httpcomponents</groupId >
43
43
<artifactId >httpclient</artifactId >
44
44
<version >4.5.3</version >
45
- <scope >provided</scope >
45
+ <scope >provided</scope >
46
+ </dependency >
47
+ <dependency >
48
+ <groupId >io.netty</groupId >
49
+ <artifactId >netty-all</artifactId >
50
+ <version >4.1.6.Final</version >
51
+ <scope >provided</scope >
46
52
</dependency >
47
- <dependency >
48
- <groupId >io.netty</groupId >
49
- <artifactId >netty-all</artifactId >
50
- <version >4.1.6.Final</version >
51
- <scope >provided</scope >
52
- </dependency >
53
53
<dependency >
54
54
<groupId >com.squareup.okhttp3</groupId >
55
55
<artifactId >okhttp</artifactId >
56
56
<version >3.3.1</version >
57
- <scope >provided</scope >
57
+ <scope >provided</scope >
58
58
</dependency >
59
59
60
60
<dependency >
68
68
<groupId >org.slf4j</groupId >
69
69
<artifactId >slf4j-api</artifactId >
70
70
<version >1.7.7</version >
71
- <scope >provided</scope >
71
+ <scope >provided</scope >
72
72
</dependency >
73
73
74
- <dependency >
75
- <groupId >org.bouncycastle</groupId >
76
- <artifactId >bcprov-jdk15on</artifactId >
77
- <version >1.60</version >
78
- </dependency >
79
- <dependency >
80
- <groupId >org.bouncycastle</groupId >
81
- <artifactId >bcpkix-jdk15on</artifactId >
82
- <version >1.60</version >
83
- </dependency >
74
+ <dependency >
75
+ <groupId >org.bouncycastle</groupId >
76
+ <artifactId >bcprov-jdk15on</artifactId >
77
+ <version >1.60</version >
78
+ </dependency >
79
+ <dependency >
80
+ <groupId >org.bouncycastle</groupId >
81
+ <artifactId >bcpkix-jdk15on</artifactId >
82
+ <version >1.60</version >
83
+ </dependency >
84
84
85
85
<!-- Test Dependencies -->
86
86
107
107
108
108
<build >
109
109
<plugins >
110
+
110
111
<plugin >
111
- <groupId >org.sonatype.plugins</groupId >
112
- <artifactId >nexus-staging-maven-plugin</artifactId >
113
- <version >1.6.7</version >
114
- <extensions >true</extensions >
112
+ <groupId >org.apache.maven.plugins</groupId >
113
+ <artifactId >maven-release-plugin</artifactId >
114
+ <version >2.5.1</version >
115
+ </plugin >
116
+
117
+ <plugin >
118
+ <artifactId >maven-compiler-plugin</artifactId >
119
+ <version >3.5.1</version >
115
120
<configuration >
116
- <serverId >ossrh</serverId >
117
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
118
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
121
+ <source >${jdkVersion} </source >
122
+ <target >${jdkVersion} </target >
123
+ <compilerVersion >1.5</compilerVersion >
124
+ <showDeprecation >true</showDeprecation >
125
+ <showWarnings >true</showWarnings >
126
+ <debug >true</debug >
127
+ <fork >true</fork >
128
+ <compilerArgs >
129
+ <arg >-Xlint:unchecked</arg >
130
+ </compilerArgs >
131
+ </configuration >
132
+ </plugin >
133
+
134
+ <plugin >
135
+ <groupId >com.github.github</groupId >
136
+ <artifactId >site-maven-plugin</artifactId >
137
+ <version >0.12</version >
138
+ <configuration >
139
+ <message >Creating site for ${project.version} </message >
140
+ <server >github</server >
141
+ </configuration >
142
+ <executions >
143
+ <execution >
144
+ <goals >
145
+ <goal >site</goal >
146
+ </goals >
147
+ <phase >site</phase >
148
+ </execution >
149
+ </executions >
150
+ </plugin >
151
+
152
+ <plugin >
153
+ <groupId >org.apache.maven.plugins</groupId >
154
+ <artifactId >maven-surefire-plugin</artifactId >
155
+ <version >2.17</version >
156
+ <configuration >
157
+ <groups >cn.jpush.api.FastTests</groups >
158
+ <argLine >-Dfile.encoding=UTF-8</argLine >
159
+ <excludes >
160
+ <exclude >**/mock/*Test.java</exclude >
161
+ </excludes >
119
162
</configuration >
163
+ <dependencies >
164
+ <dependency >
165
+ <groupId >org.apache.maven.surefire</groupId >
166
+ <artifactId >surefire-junit47</artifactId >
167
+ <version >2.17</version >
168
+ </dependency >
169
+ </dependencies >
120
170
</plugin >
171
+
172
+ <!-- 参考 https://docs.github.com/cn/actions/language-and-framework-guides/publishing-java-packages-with-maven#about-package-configuration -->
173
+ <!-- 参考 https://github.com/actions/setup-java -->
174
+ <!-- 参考 https://central.sonatype.org/pages/apache-maven.html -->
175
+
176
+ <!-- Javadoc和源代码附件 -->
121
177
<plugin >
122
178
<groupId >org.apache.maven.plugins</groupId >
123
179
<artifactId >maven-source-plugin</artifactId >
144
200
</execution >
145
201
</executions >
146
202
</plugin >
203
+
204
+ <!-- GPG签名组件 -->
147
205
<plugin >
148
206
<groupId >org.apache.maven.plugins</groupId >
149
207
<artifactId >maven-gpg-plugin</artifactId >
155
213
<goals >
156
214
<goal >sign</goal >
157
215
</goals >
158
- <configuration >
159
- <!-- Prevent gpg from using pinentry programs -->
160
- <gpgArguments >
161
- <arg >--pinentry-mode</arg >
162
- <arg >loopback</arg >
163
- </gpgArguments >
164
- </configuration >
165
216
</execution >
166
217
</executions >
167
218
</plugin >
219
+
220
+ <!-- Nexus Staging Maven插件,用于部署和发布 -->
221
+ <plugin >
222
+ <groupId >org.sonatype.plugins</groupId >
223
+ <artifactId >nexus-staging-maven-plugin</artifactId >
224
+ <version >1.6.7</version >
225
+ <extensions >true</extensions >
226
+ <configuration >
227
+ <serverId >ossrh</serverId >
228
+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
229
+ <!-- 手动release -->
230
+ <autoReleaseAfterClose >false</autoReleaseAfterClose >
231
+ </configuration >
232
+ </plugin >
233
+
168
234
</plugins >
169
235
</build >
170
236
171
237
<distributionManagement >
172
238
<snapshotRepository >
173
239
<id >ossrh</id >
174
- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
240
+ <url >https://oss.sonatype.org/content/repositories/snapshots/ </url >
175
241
</snapshotRepository >
176
242
<repository >
177
243
<id >ossrh</id >
178
244
<url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
179
245
</repository >
180
246
</distributionManagement >
181
247
182
- </project >
248
+ <reporting >
249
+ <plugins >
250
+
251
+ <plugin >
252
+ <groupId >org.apache.maven.plugins</groupId >
253
+ <artifactId >maven-project-info-reports-plugin</artifactId >
254
+ <version >2.8.1</version >
255
+ <reportSets >
256
+ <reportSet >
257
+ <reports >
258
+ <report >dependencies</report >
259
+ <report >license</report >
260
+ <report >scm</report >
261
+ </reports >
262
+ </reportSet >
263
+ </reportSets >
264
+ </plugin >
265
+
266
+ <plugin >
267
+ <groupId >org.apache.maven.plugins</groupId >
268
+ <artifactId >maven-javadoc-plugin</artifactId >
269
+ <version >2.10.3</version >
270
+ <configuration >
271
+ <overview >resources/javadoc-overview.html</overview >
272
+ </configuration >
273
+ </plugin >
274
+
275
+ </plugins >
276
+ </reporting >
277
+
278
+ </project >
0 commit comments